WebGL Read pixels from floating point render target
Unfortunately it still seems that reading out RGBA components as bytes is the only way for WebGL. If you need to encode a float into a pixel value you can use the following: In your fractal shader (GLSL/HLSL): float shift_right (float v, float amt) { v = floor(v) + 0.5; return floor(v / exp2(amt)); } … Read more