Jump to content

View more

Image of the Day

I've done more tweaks to my color palette selector. #gamedev #screenshotsaturday #madewithunity https://t.co/aJXrC4ruRg
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Different program stages

4: Adsense

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   

226
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






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.