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 data for 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 retrieve the color texture reference.
Example usage:
RenderTargetHandle renderTarget = new RenderTargetHandle();
var colorTextureRef = renderTarget.ColorTexture;
// Use colorTextureRef for rendering operations
Example
RenderTargetHandle renderTarget = new RenderTargetHandle();
var colorTextureRef = renderTarget.ColorTexture;
// Use colorTextureRef for rendering operations