void DrawScreenQuad( Material material, Color color )

book_4_sparkGenerated
code_blocksInput

Description

The DrawScreenQuad method is used to render a full-screen quad using a specified material and color. This is typically used for post-processing effects or rendering overlays.

Usage

To use the DrawScreenQuad method, you need to have a CommandList instance. Call this method with a Material that defines the shader and rendering properties, and a Color to tint the quad.

Example

// Create a new CommandList instance
var commandList = new CommandList();

// Define the material to use for the screen quad
Material myMaterial = new Material();

// Define the color to tint the quad
Color tintColor = new Color(1.0f, 0.5f, 0.5f, 1.0f); // RGBA

// Draw the screen quad
commandList.DrawScreenQuad(myMaterial, tintColor);