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

VSM Shadows: Add support for setting the number of blur samples #22272

Merged
merged 9 commits into from
Aug 5, 2021

Conversation

gkjohnson
Copy link
Collaborator

Related issue: --

Description

Adds support for setting the number of blur samples in the separable blur passes when using VSM shadow maps. Previously a fixed count of 8 samples was being used which is more than needed to get a good blur in some cases and a lot less than needed in others.

With this PR the user can set the amount of blur samples using the blurSamples field:

directionalLight.shadow.blurSamples = 10;
radius DEV 4 samples 8 samples 16 samples
2 image image image image
16 image image image image

@mrdoob
Copy link
Owner

mrdoob commented Aug 5, 2021

Nice!

@mrdoob mrdoob added this to the r132 milestone Aug 5, 2021
@mrdoob mrdoob merged commit ea1a342 into mrdoob:dev Aug 5, 2021
@mrdoob
Copy link
Owner

mrdoob commented Aug 5, 2021

Thanks!

@gkjohnson gkjohnson deleted the vsm-shadow-improvements branch August 5, 2021 14:56
@joshuaellis joshuaellis mentioned this pull request Aug 8, 2021
10 tasks
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