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.
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.
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.
// 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);