   GLSL Sampler2D Constructor?
  I can't seem to find it but does anyone know what the constructor arguments for a Sampler2D object in GLSL are?I noticed that when you specify the value from OpenGL it's a simple integer but I can't seem to give it a default value in my shader.[Edited by - X Abstract X on June 5, 2010 1:08:39 AM]
  Can you try to rephrase your question a little bit? It doesn't make much sense to me, a sampler doesn't have a constructor.Are you referring to the glUniform1i arguments? The integer you supply refers to the texture slot. 0 samples from texture bound to GL_TEXTURE0, 1 samples from texture at GL_TEXTURE1, etc.   ;  Hey I know what the value represents but I can't seem to assign it a value from inside the shader source.  I basically wanted to know if I could set a default value for a Sampler2D from inside my shader?   ;  No I don't think you can do that.Orange Book:"There are constructors for all the built-in types (except samplers) ..."   ;  Ok thanks.Edit: Thanks for citing the book.[Edited by - X Abstract X on June 5, 2010 2:02:44 AM]