patriciogonzalezvivo / glslEditor

Simple WebGL Fragment Shader Editor
http://editor.thebookofshaders.com
MIT License
2.36k stars 241 forks source link

backbuffer uniform #47

Closed Chosko closed 6 years ago

Chosko commented 6 years ago

Is there a way to get the backbuffer as a sampler2D uniform?

patriciogonzalezvivo commented 6 years ago

Hi! glslEditor share most of the features that glslViewer... please take a look on how to use multiple buffers using #define BUFFER0, BUFFER1, etc... https://github.com/patriciogonzalezvivo/glslViewer

patriciogonzalezvivo commented 6 years ago

Yes, each buffer is store in a u_bufferN sampler2D. Please read the documentation of glslViewer and the examples

Sent from my iPhone

On Nov 7, 2018, at 1:50 PM, Ruben Caliandro notifications@github.com wrote:

Is there a way to get the backbuffer as a sampler2D uniform?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Chosko commented 6 years ago

Thank you!