Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: opengl es and multipass shader

  1. #1
    Junior Member Regular Contributor
    Join Date
    Apr 2010
    Posts
    110

    opengl es and multipass shader

    hello.
    How i can use multi pass rendering with 2 pass shader in opengl es 2.0?
    I would use this for webgl.
    Is possible?
    thanks.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Aug 2001
    Location
    Norrkoping, Sweden
    Posts
    119

    Re: opengl es and multipass shader

    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
    JavaScript to interface to OpenGL, you should be able to
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •