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

Bandaid fix for dim lightmaps when using directional toggle #102723

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rudolph-B
Copy link
Contributor

@Rudolph-B Rudolph-B commented Feb 11, 2025

Fixes #102300, Although not properly.

I changed a attenuation factor from dot(p_normal, r_light_dir) to be sqrt(dot(p_normal, r_light_dir)). This only gets applied to omni and spot lights in the directional case. This seemed to minimize the differences between other lighting methods.

The example shown where baked with a texel scale of 16 using the mrp in #102300:
lightmap4dot4beta2.zip

Spotlight:

Directional Non-Directional Real Time
image image image

Omnilight:

Directional Non-Directional Real Time
image image image

@Rudolph-B
Copy link
Contributor Author

I'm still trying to find the root cause of the issue but thought this might be worth discussing.

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

Successfully merging this pull request may close these issues.

[4.4 Beta 2] Lightmaps too dim when using directional toggle
3 participants