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 overlays.

Usage

To use the DrawScreenQuad method, you need to have a CommandList instance. You will also need a Material that defines how the quad should be rendered, and a Color to apply to the quad.

Call this method when you want to draw a quad that covers the entire screen, such as for applying a shader effect across the whole viewport.

Example

// Example of using DrawScreenQuad
var commandList = new CommandList();
var material = new Material("path/to/material");
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);