Jump to content
  • Advertisement
Sign in to follow this  
BornToCode

Seperate Programs/glUniform issue

This topic is 2111 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The problem i am running into is that i am getting location clashes. When i create an seperate program for a vertex/pixel shader. Where both of them have an sampler object. The Id in both the vertex and pixel are 1 which makes sense. But how do i go about assigning an different texture for the vertex and pixel shader at the same time, when the id is 1 for both. glUniform does not take the program id has a parameter that would tell it which uniform in which shader to update. So is there anyway to do this.

 

Thanks

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!