Implementing the KHR_materials_emissive_strength extension
The metallic-roughness core model supports light emission, but before the introduction of the KHR_materials_emissive_strength
extension, it was difficult to control the intensity of a material’s light emission. This made it challenging to create realistic glowing objects or materials that function as light sources in a scene.
The KHR_materials_emissive_strength
extension overcomes this limitation by introducing a new property called emissiveStrength. This property allows for precise control over the intensity of a material’s emitted light. With values ranging from 0.0
for no emission to higher values for increased intensity, artists and designers gain more control over the lighting in their scenes.
Getting ready
The source code for this recipe can be found in Chapter07/07_EmissiveStrength/
.
How to do it…
This extension is one of the simplest to implement. All it requires is loading an intensity value and...