PDA

View Full Version : How to bind the texture



Itun.itu
04-10-2011, 03:13 PM
How to bind the texture to the specific variable in shader?

TEXTURE0 -> text0
TEXTURE1 -> text1
....

Alfonse Reinheart
04-10-2011, 03:31 PM
The OpenGL Wiki (http://www.opengl.org/wiki/GLSL_Sampler#Binding_textures_to_samplers) is your friend.