game: fix env_sun sprite disappearing when you look at it

This commit is contained in:
SanyaSho 2022-08-04 16:47:14 +03:00
parent 38209fe326
commit 6c42a04f8a

View File

@ -159,7 +159,7 @@ void CGlowOverlay::UpdateSkyGlowObstruction( float zFar, bool bCacheFullSceneSta
if ( PixelVisibility_IsAvailable() ) if ( PixelVisibility_IsAvailable() )
{ {
// Trace a ray at the object. // 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 // 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 // to put it - or save the position of this trace