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

Improve shadow robustness #4950

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Improve shadow robustness #4950

merged 1 commit into from
Nov 20, 2024

Conversation

swift502
Copy link
Contributor

@swift502 swift502 commented Nov 19, 2024

Reference Issue

#4943

Make objects cast shadows from top facing geometry. Specifically, this improves the appearance of hard shadows cast from non-manifold geometry, which has holes on the bottom.

The softer shadows become, the less effect this change has.

Before, after:
image
image
image

Testing

I didn't actually manage to get the build setup on windows, so I have no idea if the code works. Let me know if there's an easy way to build/deploy so I can confirm functionality.

@swift502
Copy link
Contributor Author

I tested in a Linux VM and seems to work 👌

image

Copy link
Contributor

@elalish elalish left a comment

Choose a reason for hiding this comment

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

Good call, thanks!

@elalish elalish merged commit a43bb47 into google:master Nov 20, 2024
3 checks passed
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