setApplyToneMapping

fun setApplyToneMapping(isApplyToneMapping: Boolean)

Sets whether to apply tone mapping to the UnlitMaterial.

When enabled, the material color is compressed by the scene's tone mapper to map HDR / highly saturated colors into the displayable range, which yields a softer and slightly desaturated look. When disabled, the raw base color is output as-is, which is useful for UI / decal-like content that needs to keep its authored color.

Parameters

isApplyToneMapping

Whether to apply tone mapping. true: apply; false: do not apply.

Throws

IllegalStateException

If this material is closed or invalid.