[iortcw] 136/152: All: Rend2: Fix fog color

Simon McVittie smcv at debian.org
Fri Sep 8 10:40:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.5a
in repository iortcw.

commit b9af6a08d73be04b6e0086d16fe189532eb4d706
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Wed Oct 19 18:17:30 2016 -0400

    All: Rend2: Fix fog color
---
 MP/code/rend2/tr_bsp.c | 6 +++---
 SP/code/rend2/tr_bsp.c | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/MP/code/rend2/tr_bsp.c b/MP/code/rend2/tr_bsp.c
index c4b7984..b045a8b 100644
--- a/MP/code/rend2/tr_bsp.c
+++ b/MP/code/rend2/tr_bsp.c
@@ -2798,9 +2798,9 @@ static void R_LoadFogs( lump_t *l, lump_t *brushesLump, lump_t *sidesLump ) {
 
 		out->parms = shader->fogParms;
 
-		out->colorInt = ColorBytes4( shader->fogParms.color[0] * tr.identityLight,
-									 shader->fogParms.color[1] * tr.identityLight,
-									 shader->fogParms.color[2] * tr.identityLight, 1.0 );
+		out->colorInt = ColorBytes4 ( shader->fogParms.color[0],
+			                          shader->fogParms.color[1],
+			                          shader->fogParms.color[2], 1.0 );
 
 		d = shader->fogParms.depthForOpaque < 1 ? 1 : shader->fogParms.depthForOpaque;
 		out->tcScale = 1.0f / ( d * 8 );
diff --git a/SP/code/rend2/tr_bsp.c b/SP/code/rend2/tr_bsp.c
index 480744b..08e9e21 100644
--- a/SP/code/rend2/tr_bsp.c
+++ b/SP/code/rend2/tr_bsp.c
@@ -2787,9 +2787,9 @@ static void R_LoadFogs( lump_t *l, lump_t *brushesLump, lump_t *sidesLump ) {
 
 		out->parms = shader->fogParms;
 
-		out->colorInt = ColorBytes4( shader->fogParms.color[0] * tr.identityLight,
-									 shader->fogParms.color[1] * tr.identityLight,
-									 shader->fogParms.color[2] * tr.identityLight, 1.0 );
+		out->colorInt = ColorBytes4 ( shader->fogParms.color[0],
+			                          shader->fogParms.color[1],
+			                          shader->fogParms.color[2], 1.0 );
 
 		d = shader->fogParms.depthForOpaque < 1 ? 1 : shader->fogParms.depthForOpaque;
 		out->tcScale = 1.0f / ( d * 8 );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list