]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - shader_glsl.h
UNMERGE! Refactored R_UpdateEntityLighting to CL_UpdateEntityShading, which sets...
[xonotic/darkplaces.git] / shader_glsl.h
index 90d5d770db2fe73fc52326f6e4dcb1479dc51a28..a69dbbc520163e221eebf409ad95a20900ad3134 100644 (file)
@@ -37,6 +37,9 @@
 "# endif\n",
 "#endif\n",
 "\n",
+"#if (defined(GLSL120) || defined(GLSL130) || defined(GLSL140) || defined(GLES)) && defined(VERTEX_SHADER)\n"
+"invariant gl_Position; // fix for lighting polygons not matching base surface\n",
+"# endif\n",
 "#if defined(GLSL130) || defined(GLSL140)\n",
 "precision highp float;\n",
 "# ifdef VERTEX_SHADER\n",