Description
The ShaderIDColor
field is a member of the SceneCameraDebugMode
enumeration in the Sandbox API. This field represents a specific debug mode that visualizes shader IDs using colors. It is useful for developers who need to debug or analyze the shader assignments in a scene by providing a visual representation of different shader IDs.
Usage
To use the ShaderIDColor
debug mode, set the camera's debug mode to SceneCameraDebugMode.ShaderIDColor
. This will render the scene with colors representing different shader IDs, allowing you to easily identify and debug shader usage across the scene.
Example
// Example of setting the camera debug mode to ShaderIDColor
SceneCamera camera = new SceneCamera();
camera.DebugMode = SceneCameraDebugMode.ShaderIDColor;
// This will render the scene with colors representing different shader IDs.