From f958a2d166d520a8941ed6fc6cce478e9f7f6e50 Mon Sep 17 00:00:00 2001 From: meatspace Date: Sun, 28 Sep 2025 19:36:16 -0800 Subject: [PATCH] fix env_sun sprite disappearing when you look at it bug --- sp/src/game/client/glow_overlay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sp/src/game/client/glow_overlay.cpp b/sp/src/game/client/glow_overlay.cpp index 72915e3c5a6..de7641230bd 100644 --- a/sp/src/game/client/glow_overlay.cpp +++ b/sp/src/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; // 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