Method FillColor
FillColor(RenderTexture, Color)
Fills an entire render texture with a uniform color.
public static void FillColor(RenderTexture targetRT, Color color)
Parameters
targetRTRenderTextureThe destination render texture to overwrite.
colorColorThe 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.