mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 06:06:50 +00:00
game: fix env_sun sprite disappearing when you look at it
This commit is contained in:
parent
38209fe326
commit
6c42a04f8a
@ -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…
Reference in New Issue
Block a user