robot_2Generated
code_blocksInput

Description

The Mode property of the Tonemapping class specifies which tonemapping algorithm to use for color grading. Tonemapping is a technique used in graphics to map one set of colors to another, often to approximate the appearance of high dynamic range images in a medium that has a more limited dynamic range.

Usage

To use the Mode property, you need to have an instance of the Tonemapping class. You can then set the Mode property to one of the available TonemappingMode values to change the tonemapping algorithm used for rendering.

Example

// Create an instance of the Tonemapping class
Tonemapping tonemapping = new Tonemapping();

// Set the tonemapping mode to a specific algorithm
// Assuming TonemappingMode is an enum with values like Reinhard, ACES, etc.
tonemapping.Mode = TonemappingMode.Reinhard;

// Apply the tonemapping settings to a camera
CameraComponent camera = new CameraComponent();
SceneCamera sceneCamera = new SceneCamera();
tonemapping.SetupCamera(camera, sceneCamera);