r7248 - trunk/darkplaces

divverent at icculus.org divverent at icculus.org
Mon May 7 14:23:23 EDT 2007


Author: divverent
Date: 2007-05-07 14:23:22 -0400 (Mon, 07 May 2007)
New Revision: 7248

Modified:
   trunk/darkplaces/gl_rmain.c
Log is attached.
fix glsl model lighting on unlit maps (normal vector was calculated as (0,0,0) as there was no contribution from the map -> GLSL calls normalize() on that -> (nan,nan,nan), which apparently counts as black).
The fix replaces these zero normal vectors by (0,0,1) (which vector is actually chosen does not matter, as its contribution is scaled by zero anyway).


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20070507.182323.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20070507/00b705ba/attachment.diff>


More information about the twilight-commits mailing list