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

Fix previews #397

Merged
merged 3 commits into from
May 29, 2024
Merged

Fix previews #397

merged 3 commits into from
May 29, 2024

Conversation

BlackYps
Copy link
Collaborator

#390 had the unintended side-effect that the water in the previews looked really bad.

after #390:
neroxis_map_generator_snapshot_rs3yp2lri4hec_aqeaeaqiaeaqk_preview

this branch:
neroxis_map_generator_snapshot_yw3j5jzjesrgw_aqiaebqip5xeo4aahm_preview

@BlackYps BlackYps requested a review from Sheikah45 May 27, 2024 23:29
Copy link
Member

@Sheikah45 Sheikah45 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sunIllumination is not the proper name. The dot product effectively represents how much light from the sun angle makes it back to the camera position of the preview.

@BlackYps
Copy link
Collaborator Author

I changed it from reflectance because I first thought it was refering to some material property of the terrain. But what this mask actually stores is how bright the terrain is because of the illumination of the sun. We assume a diffuse reflection here (because there is no code to calculate specular reflection).

@BlackYps
Copy link
Collaborator Author

We could also call it irradiance

@Sheikah45
Copy link
Member

That would work

@Sheikah45 Sheikah45 merged commit 4718216 into develop May 29, 2024
1 check passed
@Sheikah45 Sheikah45 deleted the fix-preview branch June 22, 2024 10:34
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.

None yet

2 participants