Description
The QuadOverdraw
field is a member of the SceneCameraDebugMode
enumeration in the Sandbox API. It represents a debug mode that visualizes quad overdraw in the scene. Quad overdraw occurs when multiple layers of geometry are rendered on top of each other, which can lead to performance issues. This mode helps developers identify and optimize areas of their scene where overdraw is excessive.
Usage
To use the QuadOverdraw
mode, set the camera's debug mode to SceneCameraDebugMode.QuadOverdraw
. This will change the camera's rendering to highlight areas with high overdraw, allowing you to make necessary adjustments to your scene's geometry or rendering techniques.
Example
// Example of setting the camera debug mode to QuadOverdraw
SceneCamera camera = new SceneCamera();
camera.DebugMode = SceneCameraDebugMode.QuadOverdraw;