[GEM-dev] svn update break rectangular texture with shader

IOhannes m zmoelnig zmoelnig at iem.at
Wed Jan 20 14:57:36 CET 2010


Jack wrote:
> I have never used (yet !) gl_TextureMatrix[0] 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[0] * texcoord1); ?
> ++

yes.

fnmasdr
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20100120/12387cb3/attachment.bin>


More information about the GEM-dev mailing list