]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
change texcoord assignments in Cg shader back to the way it was, because
[xonotic/darkplaces.git] / gl_rmain.c
index 88e7a8106458ef18a980522742779ec8528a0a06..39b2d3a3e620844a2d985ac0d87b2e0f8d68ae65 100644 (file)
@@ -2786,10 +2786,10 @@ const char *builtincgshaderstring =
 "out float4 EyeVectorModelSpaceFogPlaneVertexDist : TEXCOORD4,\n"
 "#endif\n"
 "#if defined(MODE_LIGHTSOURCE) || defined(MODE_LIGHTDIRECTION)\n"
-"out float3 LightVector : TEXCOORD5,\n"
+"out float3 LightVector : TEXCOORD1,\n"
 "#endif\n"
 "#ifdef MODE_LIGHTSOURCE\n"
-"out float3 CubeVector : TEXCOORD6,\n"
+"out float3 CubeVector : TEXCOORD3,\n"
 "#endif\n"
 "#if defined(MODE_LIGHTDIRECTIONMAP_MODELSPACE) || defined(MODE_DEFERREDGEOMETRY) || defined(USEREFLECTCUBE)\n"
 "out float3 VectorS : TEXCOORD5, // direction of S texcoord (sometimes crudely called tangent)\n"
@@ -2892,10 +2892,10 @@ const char *builtincgshaderstring =
 "float4 EyeVectorModelSpaceFogPlaneVertexDist : TEXCOORD4,\n"
 "#endif\n"
 "#if defined(MODE_LIGHTSOURCE) || defined(MODE_LIGHTDIRECTION)\n"
-"float3 LightVector : TEXCOORD5,\n"
+"float3 LightVector : TEXCOORD1,\n"
 "#endif\n"
 "#ifdef MODE_LIGHTSOURCE\n"
-"float3 CubeVector : TEXCOORD6,\n"
+"float3 CubeVector : TEXCOORD3,\n"
 "#endif\n"
 "#ifdef MODE_DEFERREDLIGHTSOURCE\n"
 "float4 ModelViewPosition : TEXCOORD0,\n"