From 747a242b80b48113cbf2922b1bdfa5d13640ac3b Mon Sep 17 00:00:00 2001 From: plagman Date: Sat, 16 May 2009 01:33:04 +0000 Subject: [PATCH] Unbreak specular maps (were broken because of mirror unbreaking). git-svn-id: https://svn.eduke32.com/eduke32@1383 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index 7cd4ce4d1..965fedebc 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -492,7 +492,7 @@ _prprogrambit prprogrambits[PR_BIT_COUNT] = { " gl_LightSource[0].diffuse.rgb * lightAttenuation * spotAttenuation;\n" " result += vec4(lightDiffuse * diffuseTexel.a * diffuseTexel.rgb * NdotL, 0.0);\n" "\n" - " if (isSpecularMapped == 1)\n" + " if (isSpecularMapped == 0)\n" " specTexel.rgb = diffuseTexel.rgb * diffuseTexel.a;\n" "\n" " lightSpecular = pow( max(dot(R, E), 0.0), specularMaterial.x * specTexel.a) * specularMaterial.y;\n"