book_4_sparkGenerated
code_blocksInput

Description

The Diffuse field is a member of the SceneCameraDebugMode enumeration in the Sandbox API. It represents a debug mode for the scene camera that focuses on rendering the diffuse component of materials. This mode is useful for developers and artists who need to analyze how diffuse lighting affects the appearance of objects in the scene.

Usage

To use the Diffuse debug mode, set the scene camera's debug mode to SceneCameraDebugMode.Diffuse. This will render the scene with an emphasis on the diffuse properties of materials, allowing you to inspect how light interacts with surfaces without the influence of other material properties like specular highlights or reflections.

Example

// Example of setting the scene camera to Diffuse debug mode
SceneCamera camera = Scene.Current.Camera;
camera.DebugMode = SceneCameraDebugMode.Diffuse;