void DrawScreenQuad( Material material, Color color )

robot_2Generated
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 operations that require a full-screen pass.

Usage

To use the DrawScreenQuad method, you need to have a CommandList instance. You will also need a Material that defines the shader and properties for rendering, and a Color to apply to the quad.

Call this method when you want to render a quad that covers the entire screen, such as for applying screen-space effects or overlays.

Example

// Example usage of DrawScreenQuad
var commandList = new CommandList();
var material = new Material("path/to/shader");
var color = new Color(1.0f, 0.5f, 0.5f, 1.0f); // RGBA color

// Draw a full-screen quad with the specified material and color
commandList.DrawScreenQuad(material, color);