Hello
I kind of stuck to read any data of pixels from the engine
My goal is to read and set pixels from textures, just a little hint is probably enough.
Thank you all for your time
The playground: http://babylonjs-playground.com/#1I5MDT#2
i think i looking for this, but i cant get it to work:
Best
try this i am sorry i cant get time for complete your PG
var ReadTexture = function (txt, w, h) {
var gl = document.getElementById('renderCanvas')
.getContext("webgl", { preserveDrawingBuffer: true }) ||
eng.get().canvas.getContext("experimental-webgl", { preserveDrawingBuffer: true });
var fb = gl.createFramebuffer();
gl.bindFramebuffer(gl.FRAMEBUFFER, fb);
gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, txt, 0);
va