TextureSample

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

Reads the color at the single point specified by U / V and outputs it as Sampled Color and Brightness (0.299R + 0.587G + 0.114B). Whereas RTAverage covers the whole screen, this one looks at just the single texel you aim at.

  • U / V default 0.5 (clamped to 0–1)
  • Disconnecting the input resets it to black / 0

Readback happens once every 3 frames, and because reading back from the GPU is asynchronous, the value lags by several frames. If you sweep U/V quickly, the color you get is from a slightly earlier position.

Input ports

Port IDType
Render TextureRenderTexture
Ufloat
Vfloat

Output ports

Port IDType
Sampled ColorColor
Brightnessfloat

Scriptable members

PathType
uInputfloat
vInputfloat

Synapse Apps (scripting)

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

Also referenced from