game: fix env_sun sprite disappearing when you look at it
This commit is contained in:
parent
ef81226759
commit
4291e168de
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ void CGlowOverlay::UpdateSkyGlowObstruction( float zFar, bool bCacheFullSceneSta
|
|||
if ( PixelVisibility_IsAvailable() )
|
||||
{
|
||||
// Trace a ray at the object.
|
||||
Vector pos = CurrentViewOrigin() + m_vDirection * zFar * 0.999f;
|
||||
Vector pos = CurrentViewOrigin() + m_vDirection * zFar * 0.99f; //9f;
|
||||
|
||||
// UNDONE: Can probably do only the pixelvis query in this case if you can figure out where
|
||||
// to put it - or save the position of this trace
|
||||
|
|
Loading…
Reference in a new issue