g0l3m
12-19-2006, 02:40 AM
Hello all,
If my frag shader has something like
uniform sampled2D tex0;
uniform sampled2D tex1;
uniform sampled2D tex2;
do these automagicaly get initialised to
tex0 = 0;
tex1 = 1;
tex2 = 2;
?
Or do I need to set them from my application using all the glGetUnifromLocation and glUniform
cheers,
g.
If my frag shader has something like
uniform sampled2D tex0;
uniform sampled2D tex1;
uniform sampled2D tex2;
do these automagicaly get initialised to
tex0 = 0;
tex1 = 1;
tex2 = 2;
?
Or do I need to set them from my application using all the glGetUnifromLocation and glUniform
cheers,
g.