From 13243ffeae26158ecab722f34d142d86bcdb8c38 Mon Sep 17 00:00:00 2001 From: plagman Date: Sat, 28 Mar 2009 16:50:46 +0000 Subject: [PATCH] Tie mirror map reflections to specular map texels. git-svn-id: https://svn.eduke32.com/eduke32@1282 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 524bf0079..9c002ff1d 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -301,7 +301,7 @@ _prprogrambit prprogrambits[PR_BIT_COUNT] = { " mirrorCoords += 100.0 * (normalTexel.rg - 0.5);\n" " }\n" " mirrorTexel = texture2DRect(mirrorMap, mirrorCoords);\n" - " result = vec4((result.rgb * result.a) + (mirrorTexel.rgb * (1.0 - result.a)), result.a);\n" + " result = vec4((result.rgb * (1.0 - specTexel.a)) + (mirrorTexel.rgb * specTexel.rgb * specTexel.a), result.a);\n" "\n", }, {