Define the KHR_materials_anisotropy extension materials options.

interface GLTFMaterialsAnisotropyExtension {
    anisotropyStrength?: number;
    anisotropyRotation?: number;
    anisotropyTexture?: ITextureInfo;
}

Properties

anisotropyStrength?: number

The anisotropy strength. When the anisotropyTexture is present, this value is multiplied by the texture's B channel. Default to 0.

anisotropyRotation?: number

The rotation of the anisotropy in tangent, bitangent space, measured in radians counter-clockwise from the tangent. When the anisotropyTexture is present, this value provides additional rotation to the vectors in the texture. Default to 0.

anisotropyTexture?: ITextureInfo

The anisotropy texture. R and G channels represent the anisotropy direction in [-1, 1] tangent, bitangent space to be rotated by the anisotropy rotation. The B channel contains strength as [0, 1] to be multiplied by the anisotropyStrength.