Polymer: Fix upside-down projective textures

We need to Y-invert the projection texcoords when sampling
from the lightmap.

git-svn-id: https://svn.eduke32.com/eduke32@2055 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2011-10-02 03:09:20 +00:00
parent 7c4b84a8f2
commit e7c735418f

View file

@ -456,7 +456,7 @@ _prprogrambit prprogrambits[PR_BIT_COUNT] = {
"uniform sampler2D lightMap;\n" "uniform sampler2D lightMap;\n"
"\n", "\n",
// frag_prog // frag_prog
" lightTexel = texture2D(lightMap, gl_TexCoord[2].st / gl_TexCoord[2].q).rgb;\n" " lightTexel = texture2D(lightMap, vec2(gl_TexCoord[2].s, -gl_TexCoord[2].t) / gl_TexCoord[2].q).rgb;\n"
"\n", "\n",
}, },
{ {