Table of Contents

Method FillColor

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

FillColor(RenderTexture, Color)

Fills an entire render texture with a uniform color.

public static void FillColor(RenderTexture targetRT, Color color)

Parameters

targetRT RenderTexture

The destination render texture to overwrite.

color Color

The color to write into every pixel of targetRT.

Remarks

The method uses a compute shader loaded from Resources and dispatches it over the full render texture using thread groups derived from the destination resolution.