Parameters used to set the anisotropy values.
OptionalextensionsUsed?: GLTFExtensionsUsedextensionsUsed to check if anisotropy is enabled.
OptionalanisotropyTexture?: ShaderTextureDescriptorAnisotropy texture descriptor (using the RGB channel) to use if any. 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 anisotropy.
anisotropy (f32), anisotropyVector (vec2f), as well as alphaT (f32), anisotropyT (vec3f) and anisotropyB (vec3f) values set.
Set the
anisotropy(f32),anisotropyVector(vec2f), as well asalphaT(f32),anisotropyT(vec3f) andanisotropyB(vec3f) values from the material anisotropy variables,TBNmatrix and eventual anisotropy texture.