On Sat, Sep 18, 2010 at 11:44:28AM -0400, Safety0ff wrote: > On 10-09-18 11:32 AM, Giel van Schijndel wrote: >> What happens when you remove the "invariant gl_Position;" >> specification? >> >> Also do you know which version of GLSL your drivers are using? I'm >> guessing an #if __VERSION__, may be required. (ftransform() is >> deprecated in GLSL 1.30 and OpenGL ES's GLSL version simply doesn't >> implement it). > I had the same issue, adding "#version 120" in the vertex shader > seems to have fixed it for me, > using > 120 results in: > > 0(15) : warning C7533: global variable gl_Color is deprecated after version > 120 > 0(18) : warning C7533: global variable gl_TexCoord is deprecated after > version 120 > 0(18) : warning C7533: global variable gl_TextureMatrix is deprecated after > version 120 > 0(18) : warning C7533: global variable gl_MultiTexCoord0 is deprecated after > version 120 > 0(21) : warning C7533: global variable gl_ModelViewProjectionMatrix is > deprecated after version 120 > 0(21) : warning C7533: global variable gl_Vertex is deprecated after version > 120
Aye, those variables are part of the fixed function pipeline. GLSL versions after 120 (130, etc.) are intended for OpenGL ES 2.0 and OpenGL 3.0 which rip out the fixed function pipeline. From these versions and upwards global data (the matrices) should be passed as uniforms, while per-vertex data (including the vertex coordinate vector itself, gl_Vertex) should be passed as vertex-attribute data. -- Giel
signature.asc
Description: Digital signature
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
