mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
OpenGL2: Fix still projecting sun shadows onto nothing
Increase the range for clamping the screen shadow depth to 1.0 (nothing drawn). Old epsilon ~0.00000006, new 0.001. This fixes it on another computer.
This commit is contained in:
parent
4c19ff2b55
commit
a575c1c710
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ void main()
|
|||
|
||||
vec4 shadowpos = u_ShadowMvp * biasPos;
|
||||
|
||||
if ( depth >= 1.0 - DEPTH_MAX_ERROR )
|
||||
if ( depth >= 0.999 )
|
||||
{
|
||||
result = 1.0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue