Browse Source

game: fix env_sun sprite disappearing when you look at it

pull/100/head
SanyaSho 2 years ago
parent
commit
6c42a04f8a
  1. 2
      game/client/glow_overlay.cpp

2
game/client/glow_overlay.cpp

@ -159,7 +159,7 @@ void CGlowOverlay::UpdateSkyGlowObstruction( float zFar, bool bCacheFullSceneSta @@ -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…
Cancel
Save