RTAverage

Read with AI
All docs in one file (llms-full.txt)
RTAverage #Signal #Node
RTAverage

Downscales the incoming RenderTexture to 16×16, reads it back to the CPU, and outputs the average of all pixels as Average Color and its brightness (0.299R + 0.587G + 0.114B) as Brightness. It has no parameters.

  • Disconnecting the input resets it to black / 0

The readout happens once every 3 frames, and because the readback from the GPU is asynchronous, the values lag the current frame by several frames.

Input ports

Port IDType
Render TextureRenderTexture

Output ports

Port IDType
Average ColorColor
Brightnessfloat

Synapse Apps (scripting)

await synapse.modules.create({ type: "RTAverage" })

Pages linking here

Also referenced from