patriciogonzalezvivo / glslCanvas

Simple tool to load GLSL shaders on HTML Canvas using WebGL
http://patriciogonzalezvivo.github.io/glslCanvas/
MIT License
1.99k stars 183 forks source link

GL Canvas Back to MediaStream results in black frames. #70

Open ssshake opened 3 years ago

ssshake commented 3 years ago

Hello I am trying to convert the canvas back to a media stream so that I can send it over webrtc. I am calling .captureStream() on the canvas which I passed into new GlslCanvas(canvas).

However every frame is black. Any idea why? Do I need to perform some intermediary step?