Description
The ClearFlags.Color
field is a member of the ClearFlags
enumeration in the Sandbox namespace. It represents the color buffer, which is the visible part of the rendering process. This flag is used to specify that the color buffer should be cleared before rendering a scene using a SceneCamera
.
Usage
Use the ClearFlags.Color
flag when you want to clear the color buffer before rendering a new frame. This is typically used in rendering pipelines to ensure that the previous frame's color data does not interfere with the current frame's rendering.
Example
// Example of using ClearFlags.Color in a rendering setup
SceneCamera camera = new SceneCamera();
camera.ClearFlags = ClearFlags.Color;
// This will clear the color buffer before rendering the scene
camera.Render();