book_4_sparkGenerated
code_blocksInput

Description

The ClearFlags.None field is a member of the ClearFlags enumeration in the Sandbox namespace. It represents a state where no buffers are cleared before rendering a scene using a SceneCamera. This can be useful when you want to preserve the current contents of the render target and avoid any automatic clearing.

Usage

Use ClearFlags.None when you want to maintain the existing contents of the render target without clearing any buffers. This is particularly useful in scenarios where you need to render additional elements on top of an existing scene without affecting the underlying content.

Example

// Example of using ClearFlags.None
SceneCamera camera = new SceneCamera();
camera.ClearFlags = ClearFlags.None;

// This will render the scene without clearing any buffers, preserving the current render target contents.