Parameters used to set the clearcoat (f32) and clearcoatRoughness (f32) values.
OptionalextensionsUsed?: GLTFExtensionsUsedextensionsUsed to check if clearcoat is enabled.
OptionalclearcoatTexture?: ShaderTextureDescriptorClearcoat texture descriptor (mixing both clearcoat factor in the R channel and roughness in the G channel) to use if any.
OptionalclearcoatFactorTexture?: ShaderTextureDescriptorClearcoat factor texture descriptor (using the R channel) to use if any.
OptionalclearcoatRoughnessTexture?: ShaderTextureDescriptorClearcoat roughness texture descriptor (using the G channel) to use if any.
clearcoat (f32) and clearcoatRoughness (f32) values set.
Set the
clearcoat(f32) andclearcoatRoughness(f32) values from the material clearcoat variables and eventual clearcoat textures.