Conversation
001106f to
842c8b1
Compare
|
Added some more commits. I fixed a funny bug with |
586a547 to
038043c
Compare
|
|
038043c to
244932f
Compare
Thanks for the info. I think I'll keep the commit since it doesn't make the code any longer, and if nothing else it serves the documentational purpose of showing that only 3 channels are use in |
Also fix reversed naming of lat/long and fix wrong comments.
In one step of light grid processing, values were converted from sRGB to linear and stored in bytes. This unnecessarily loses precision during the calculation.
Set the alpha byte to 255 so the image uploading code will choose an RGB format.
Don't create the light grid direction image if deluxe mapping is disabled.
The direction vector encoding was wrong.
Sometimes color values were slightly greater than 1; this led to an incorrect float color -> byte color conversion. Fix it by clamping the colors in Tess_AddTetrahedron.
Don't use R_LightForPoint which has some levels of tweaking and interpolation.
244932f to
3f78683
Compare
A few light grid-related cleanups/optimizations that do not change the functionality.