Description
The SceneCameraDebugMode.NormalMap
field is a member of the SceneCameraDebugMode
enumeration in the Sandbox API. This field represents a debug mode for the scene camera that visualizes world-space normals. It is useful for developers who need to inspect the normal vectors of surfaces in the scene, which can be critical for debugging lighting and shading issues.
Usage
To use the NormalMap
debug mode, set the scene camera's debug mode to SceneCameraDebugMode.NormalMap
. This will render the scene with colors representing the world-space normals of each surface, allowing you to visually inspect the direction each surface is facing.
Example
// Example of setting the scene camera to NormalMap debug mode
SceneCamera.DebugMode = SceneCameraDebugMode.NormalMap;