From 6c42a04f8a0f6084a4b7a297de032960904f272f Mon Sep 17 00:00:00 2001 From: SanyaSho Date: Thu, 4 Aug 2022 16:47:14 +0300 Subject: [PATCH] game: fix env_sun sprite disappearing when you look at it --- game/client/glow_overlay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/client/glow_overlay.cpp b/game/client/glow_overlay.cpp index 72915e3c..3e63fb36 100644 --- a/game/client/glow_overlay.cpp +++ b/game/client/glow_overlay.cpp @@ -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