float ExposureCompensation { get; set; }

robot_2Generated
code_blocksInput

Description

The ExposureCompensation property in the Tonemapping class is used to adjust the exposure level of the camera when auto exposure is enabled. This property allows you to fine-tune the exposure to achieve the desired brightness in your scene.

Usage

To use the ExposureCompensation property, ensure that the AutoExposureEnabled property is set to true. You can then set the ExposureCompensation value to adjust the exposure level. The value should be within the range of 0 to 5, with a step of 0.01.

Example

// Assuming 'tonemapping' is an instance of the Tonemapping class

// Enable auto exposure
tonemapping.AutoExposureEnabled = true;

// Set exposure compensation to 2.5
// This will adjust the exposure level to be brighter
// or darker based on the current auto exposure settings
// and the specified compensation value.
tonemapping.ExposureCompensation = 2.5f;