Skip to content

Adjust glow_overlay ray trace position calculation#1785

Closed
lunairekitty wants to merge 1 commit intoValveSoftware:masterfrom
lunairekitty:master
Closed

Adjust glow_overlay ray trace position calculation#1785
lunairekitty wants to merge 1 commit intoValveSoftware:masterfrom
lunairekitty:master

Conversation

@lunairekitty
Copy link
Copy Markdown

Description:

Change the pos value of glow_overlay.cpp from Vector pos = CurrentViewOrigin() + m_vDirection * zFar * 0.999f; to Vector pos = CurrentViewOrigin() + m_vDirection * zFar * 0.99f;.

This fixes the issue of env_sun disappearing when directly under the crosshair, even when the crosshair sprite is not active.

Change the pos value form 0.999 to 0.99 to fix the issue of env_sun disappearing when directly under the crosshair, even when the crosshair sprite is not active.
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.

1 participant