Skip to content

[ALL] Fix env_sun disappearing at certain view angles - #2064

Open
chocochocotorta wants to merge 1 commit into
ValveSoftware:masterfrom
chocochocotorta:env_sun_visibility
Open

chocochocotorta wants to merge 1 commit into
ValveSoftware:masterfrom
chocochocotorta:env_sun_visibility

Conversation

@chocochocotorta

@chocochocotorta chocochocotorta commented Sep 8, 2026

Copy link
Copy Markdown

The PR changes the final multiplier of the pos value in glow_overlay.cpp from 0,999f to 0.99f.
This fixes the env_sun entity dissapearing when looking at specific angles.

Tested both on TF2 and HL2:MP on the same map looking at the same position and angles.

Before:

image

After:

image

Closes ValveSoftware/Source-1-Games#7405.

@chocochocotorta

Copy link
Copy Markdown
Author

The Fix was proposed at Valve Developer Community and was already opened in the past by #1785, but the person deleted it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(Feature Request) Backport env_sun disappearing fix

1 participant