IOhannes m zmölnig escribió:
use rectangle textures ([rectangle 1( to [pix_texture]).
Do I have to set it to all the [pix_texture] objects that "create" the textures, or only to the one using the shader?
That is, having
[gemhead] | (...something...) | | [texunit 1( |/ [pix_texture] //let's call it texture 1
[gemhead] | (...something...) | | [texunit 2( |/ [pix_texture] //let's call it texture 2
[gemhead] | (... vertex&fragment stuff) | [glsl_program] | [pix_texture] //be it "*" | [square 4]
Do I send [rectangle 1( to textures 1 and 2 or to "*"? Or both?
Thanks m.