Skip to content

Commit 8ef0b35

Browse files
authored
Fix env_sun being hidden when under the centre of view (#1839)
1 parent edb0214 commit 8ef0b35

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/game/client/glow_overlay.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ void CGlowOverlay::UpdateSkyGlowObstruction( float zFar, bool bCacheFullSceneSta
159159
if ( PixelVisibility_IsAvailable() )
160160
{
161161
// Trace a ray at the object.
162+
#ifdef NEO
163+
Vector pos = CurrentViewOrigin() + m_vDirection * zFar * 0.99f;
164+
#else
162165
Vector pos = CurrentViewOrigin() + m_vDirection * zFar * 0.999f;
166+
#endif
163167

164168
// UNDONE: Can probably do only the pixelvis query in this case if you can figure out where
165169
// to put it - or save the position of this trace

0 commit comments

Comments
 (0)