Hi there. For a 2d game I'm creating, I wanted to add some colored lights. I imagine this could be done the following way:
1) Render the background --- 2) Render the colored lights (sprites) to "layer 1" 3) Render every sprite in the foreground to "layer 2" 4) In combination with the use of gl.glBlendFunc(), render layer 2 on top of layer 1, 5) Render the result on top of the background. However, when looking for a solution to this, I looked at Framebuffers and render-to-texture solutions. But none really worked - most likely due to my lack of experience with OpenGL. Any good suggestions? Or code examples/resources, in case of a OpenGL solution? Thanks -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
