[quake3-commits] [ioquake/ioq3] 95b241: OpenGL2 don't try to dlight surfaces that had all ...
Zack Middleton
zturtleman at gmail.com
Tue Jun 10 22:53:21 EDT 2014
Branch: refs/heads/master
Home: https://github.com/ioquake/ioq3
Commit: 95b241b8ba3d7eacf5e8a9dfbab45aab907b4b6c
https://github.com/ioquake/ioq3/commit/95b241b8ba3d7eacf5e8a9dfbab45aab907b4b6c
Author: Zack Middleton <zturtleman at gmail.com>
Date: 2014-06-10 (Tue, 10 Jun 2014)
Changed paths:
M code/renderergl2/tr_world.c
Log Message:
-----------
OpenGL2 don't try to dlight surfaces that had all dlights culled
In the renderers, dlightbits are never cleared from world surfaces.
The dlight image does not repeat, so if it draws on extra surfaces it's
not visible.
However if using a repeating image (tr.defaultImage instead of tr.dlightImage);
* In OpenGL1 image is only drawn on surfaces close to dlight origin.
* In OpenGL2 image is draw on surfaces clearly outside the dlight radius, including past non-dlighted surfaces.
It seems there was a similar issue with pshadowBits. So update surface
dlightBits even if 0, like already done for pshadowBits. This causes
only surfaces close to origin to be affected. (Though it is a little
farther than in OpenGL1.)
I have no idea why this isn't a problem in OpenGL1.
More information about the quake3-commits
mailing list