[GEM-dev] svn update break rectangular texture with shader
IOhannes m zmoelnig
zmoelnig at iem.at
Wed Jan 20 14:57:36 CET 2010
> I have never used (yet !) gl_TextureMatrix in my shaders :)
nobody had, because there was the silent assumption, that nobody would
touch the texture matrix.
> Always used something like this :
> Vertex :
> texcoord1 = gl_MultiTexCoord0.st;
> Fragment :
> vec4 color = texture2DRect(mytextA, texcoord1);
> So i should use now :
> vec4 color = texture2DRect(mytextA, gl_TextureMatrix * texcoord1); ?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
More information about the GEM-dev