Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Different program stages


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 Jacob Jingle   Members   -  Reputation: 209

Like
0Likes
Like

Posted 28 February 2013 - 10:18 AM

I'm a newbie to OpenGL, so here it goes: How do I remove one fragment shader stage for another? Would I 
just use glUseProgramStages(...GL_FRAGMENT_SHADER_BIT...) on the new fragment shader and would it 
then remove the other one? Can a pipeline have more than one fragment shader in use? :/

Like this?

Draw call:

glUseProgramStages(vert shader)

glUseProgramStages(first frag shader)

draw stuff;

glUseProgramStages(second frag shader)

draw stuff



Ad:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS