← Back to demosHomePrevious demo
THREE.JS / FOUNDATIONS

Read the pixels.

A shader writes known linear-sRGB values into a float WebGLRenderTarget. The same target is displayed through a screen pass while readRenderTargetPixels exposes one RGBA sample.

Initializing

Creating the float render target and screen pass.

Backend
-
Target
-
Pixel
-
RGBA float
-
Sample
-
Float readback boundary

sceneRTT → WebGLRenderTarget(FloatType) → readRenderTargetPixels → sceneScreen

This lab proves the selected float readback contract only. The official torus scene, mouse-driven coordinates, Stats presentation, extension matrix, native device performance, and whole-example fidelity remain separate.