Re: Porting a depth peeling example to modern OpenGL
Posted by Lili on Oct 10, 2013; 8:35pm
URL: https://forum.jogamp.org/Porting-a-depth-peeling-example-to-modern-OpenGL-tp4030224p4030227.html
I am not sure I am understanding the questions but
1. Yes, gl_TexCoord[] is deprecated
2. I see that you have 5 pairs of vertex and fragment shaders. What you probably want to do is create 5 shader programs each one executing one of the shader pairs and then switch among programs to use the one you need at the time. Each shader program (vertex shader) should accept its own uniform variables and they may be different than what the other programs accept.
I hope this is somewhat helpful. Maybe I can help you further if I better understand the question.