From f958a2d166d520a8941ed6fc6cce478e9f7f6e50 Mon Sep 17 00:00:00 2001 From: meatspace Date: Sun, 28 Sep 2025 19:36:16 -0800 Subject: [PATCH 1/2] 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 From 2931accbc85ec28464de4f2e3f769f6eaf29c3c4 Mon Sep 17 00:00:00 2001 From: meatspace Date: Tue, 17 Feb 2026 16:39:55 -0600 Subject: [PATCH 2/2] also fix here forgots --- 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 de7641230bd..ccce152ab06 100644 --- a/sp/src/game/client/glow_overlay.cpp +++ b/sp/src/game/client/glow_overlay.cpp @@ -207,7 +207,7 @@ void CGlowOverlay::UpdateGlowObstruction( const Vector &vToGlow, bool bCacheFull if ( m_bInSky ) { const CViewSetup *pViewSetup = view->GetViewSetup(); - Vector pos = CurrentViewOrigin() + m_vDirection * (pViewSetup->zFar * 0.999f); + Vector pos = CurrentViewOrigin() + m_vDirection * (pViewSetup->zFar * 0.99f); pixelvis_queryparams_t params; params.Init( pos, m_flProxyRadius, CalcGlowAspect() ); params.bSizeInScreenspace = true;