Parameters used to create the shader chunk.
OptionalextensionsUsed?: GLTFExtensionsUsedextensionsUsed to check if anisotropy is enabled.
Optionalgeometry?: GeometryGeometry to use to check for tangent and bitangent attributes.
OptionalcullMode?: GPUCullModeCulling mode used to update normal and TBN if needed.
OptionalflatShading?: booleanWhether to calculate flat normals.
OptionalnormalTexture?: ShaderTextureDescriptorNormal texture descriptor to use if any.
OptionalclearcoatNormalTexture?: ShaderTextureDescriptorClearcoat normal texture descriptor to use if any.
Set the
geometryNormal(vec3f) and eventuallytangent(vec3f) andbitangent(vec3f) values if a normal texture, clearcoat normal texture is set, or if anisotropy extension is enabled.Tangent and bitangent are calculated using derivatives if the Geometry
tangentandbitangentattributes are missing.