book_4_sparkGenerated
code_blocksInput

Description

The ColorTexture property provides a reference to the color texture associated with a render target. This property is part of the RenderTargetHandle struct within the Sandbox.Rendering namespace. It is used to access the color texture that is used in rendering operations.

Usage

To use the ColorTexture property, you need to have an instance of the RenderTargetHandle struct. You can then access the ColorTexture property to get a reference to the color texture.

Example

// Assuming 'renderTarget' is an instance of RenderTargetHandle
var colorTextureRef = renderTarget.ColorTexture;

// Use 'colorTextureRef' as needed for rendering operations