View Full Version : opengl es and multipass shader
04-20-2011, 09:38 AM
How i can use multi pass rendering with 2 pass shader in opengl es 2.0?
I would use this for webgl.
04-24-2011, 03:50 AM
You need to render to a "framebuffer object" (FBO), and
then change the role of that FBO and bind it as a texture
in the next pass. It is done the same way in "proper"
OpenGL, so apart from the difference in syntax when using
do it like FBO tutorials tell you.
You can find a number of good FBO and multipass rendering
tutorials and examples on the web. This is not the best
forum to ask questions that are not directly related to
GLSL, so for the FBO topic you will probably find better
help in the more general forums. Good luck!
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.