Jump to content
  • Advertisement
Sign in to follow this  
JohnnyCode

the same sampler on more uniforms

This topic is 3613 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

hello, I got me another problem. I have a certain amount of sampler2d uniforms in my shader. It is a fact that if I dont set the uniforms , they are defaultly set to 0 unit samlper. But also it is a fact that if more sampler2d uniforms are set to the same unit, they become black invalid. So I cant then sample from unit 0. Is there a way to set the uniform samplers to the same unit and sample from them in shader successfully?

Share this post


Link to post
Share on other sites
Advertisement
this simply force me to have an extra unused unit, to which I set uniform samplers I don't use in shader, so they do not block units I use.

Share this post


Link to post
Share on other sites
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!