I can write the float data in the texture and get data in the shader, moreover, after record in a texture in framebuffer, at the subsequent data read-out in shader I receive written float values, it means that textures working properly, but i can’t get this float values in javascript.
I do:
var buf = new Float32Array(3);
gl.readPixels(0, 0, 1, 1, gl.RGB, gl.FLOAT, buf);
Of course, I tried to to get data and as gl. RGBA and as gl. ALPHA…
But, I didn’t get any results.
I believe that it’s not that I’m writing, and in webgl limitations or OES_texture_float extension is not ported to the end, or with errors.