Sign in to follow this  

the same sampler on more uniforms

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this