Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VRAD] Added user-configurable scaling for light_environment samples #1116

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Unusuario2
Copy link

@Unusuario2 Unusuario2 commented Mar 15, 2025

Description

When working with low luxel scales or large surfaces in the Source engine, lighting from the environment light (with -softsun enabled) can appear dirty due to a low number of samples. This PR addresses the issue by improving sample density.

For Users:
Although the default value is 30, you can safely increase it up to 1024 or even 16384. Increasing this value has a negligible impact on computation time (a few seconds or minutes more). For optimal results:

Use -SunSamplesAreaLight 1024 for general improvements.
Use -SunSamplesAreaLight 4096 for very very large surfaces where extensive sunlight coverage occurs.

For example:
(Default value: 30)
image
(User value: 1024)
image

@Unusuario2 Unusuario2 changed the title [VRAD] Added user-configurable scaling for environment light samples [VRAD] Added user-configurable scaling for light_environment samples Mar 15, 2025
@Unusuario2 Unusuario2 force-pushed the VRAD--SunSamplesAreaLight-support branch from 11fab16 to c22db3f Compare March 16, 2025 14:53
Bitl added a commit to FIREFIGHT-RELOADED/FIREFIGHT-RELOADED-src-sdk-2013 that referenced this pull request Mar 31, 2025
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.

2 participants