diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-12-17 18:16:39 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-12-17 18:16:39 +0000 |
commit | 949101f5adbd99f68a9b7c5eb94d8e7f8a0ecb1f (patch) | |
tree | cd20c79a205c43b53bd51023f2bbcd9b942485ab /games/q3cellshading | |
parent | df94f28c268b0be35a1b1d4450cafd4a1b800886 (diff) | |
download | ports-949101f5adbd99f68a9b7c5eb94d8e7f8a0ecb1f.tar.gz ports-949101f5adbd99f68a9b7c5eb94d8e7f8a0ecb1f.zip |
Notes
Diffstat (limited to 'games/q3cellshading')
-rw-r--r-- | games/q3cellshading/files/patch-code__renderer__tr_light.c | 36 |
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]; |