aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/q3cellshading/files/patch-code__renderer__tr_light.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/games/q3cellshading/files/patch-code__renderer__tr_light.c b/games/q3cellshading/files/patch-code__renderer__tr_light.c
new file mode 100644
index 000000000000..d1de6d2257ae
--- /dev/null
+++ b/games/q3cellshading/files/patch-code__renderer__tr_light.c
@@ -0,0 +1,36 @@
+--- ./code/renderer/tr_light.c.orig Tue Jul 18 17:53:12 2006
++++ ./code/renderer/tr_light.c Sun Dec 17 13:16:04 2006
+@@ -222,21 +222,21 @@
+ // decode Y as sin( lat ) * sin( long )
+ // decode Z as cos( long )
+
+- (int)ent->ambientLight[0] /= (int)10;
+- (int)ent->ambientLight[1] /= (int)10;
+- (int)ent->ambientLight[2] /= (int)10;
++ ent->ambientLight[0] /= (int)10;
++ ent->ambientLight[1] /= (int)10;
++ ent->ambientLight[2] /= (int)10;
+
+- (int)ent->directedLight[0] /= (int)10;
+- (int)ent->directedLight[1] /= (int)10;
+- (int)ent->directedLight[2] /= (int)10;
++ ent->directedLight[0] /= (int)10;
++ ent->directedLight[1] /= (int)10;
++ ent->directedLight[2] /= (int)10;
+
+- (int)ent->ambientLight[0] *= (int)10;
+- (int)ent->ambientLight[1] *= (int)10;
+- (int)ent->ambientLight[2] *= (int)10;
++ ent->ambientLight[0] *= (int)10;
++ ent->ambientLight[1] *= (int)10;
++ ent->ambientLight[2] *= (int)10;
+
+- (int)ent->directedLight[0] *= (int)10;
+- (int)ent->directedLight[1] *= (int)10;
+- (int)ent->directedLight[2] *= (int)10;
++ ent->directedLight[0] *= (int)10;
++ ent->directedLight[1] *= (int)10;
++ ent->directedLight[2] *= (int)10;
+
+
+ normal[0] = tr.sinTable[(lat+(FUNCTABLE_SIZE/4))&FUNCTABLE_MASK] * tr.sinTable[lng];