brianchirls / Seriously.js

A real-time, node-based video effects compositor for the web built with HTML5, Javascript and WebGL
MIT License
3.87k stars 354 forks source link

seriously.three.js - access __webglframebuffer post r71 threejs #148

Closed damskii closed 7 years ago

damskii commented 7 years ago

seriously.three.js breaks from r71 three.js - access to the __webglFramebuffer was changed in the THREE.WebGLRenderTarget to I think - THREE.WebGLProperties file.

Below might be the new way to access props with the target, about a far as i got though...

r71 frameBuffer = target.__webglFramebuffer;

r71+ var props = renderer.properties.get(target);

damskii commented 7 years ago

var targetProperties = renderer.properties.get(target); var webglFramebuffer = targetProperties.__webglFramebuffer;

Confirmed the above code works to get webglFramebuffer from THREE.WebGLProperties for seriously & threejs r71+

eulphean commented 1 year ago

@damskii Thanks for this note. I'm at this point. How do you convert the webglFramebuffer into a gl texture that seriously is expecting?