Parameters to use to apply PBR shading.
OptionalreceiveShadows?: booleanWhether the shading function should account for current shadows. Default to false.
OptionalenvironmentMap?: EnvironmentMapEnvironmentMap to use for IBL shading if any.
OptionaltransmissionBackgroundTexture?: ShaderTextureDescriptorTransmission background texture descriptor to use for transmission if any.
OptionaltransmissiveInputColorSpace?: ColorSpaceWhether the opaque objects sampled by the transmission texture have been drawn in linear or srgb color space. Default to srgb.
OptionaltransmissiveInputToneMapping?: ToneMappingsThe tone mapping applied to the opaque objects sampled by the transmission texture, if any. Default to Khronos.
OptionalextensionsUsed?: GLTFExtensionsUsedglTF extensions used by the material for specifing shading if any.
outgoingLight.
Set the
outgoingLight(vec3f) using PBR shading.