-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Soft shadows #3731
Soft shadows #3731
Conversation
@@ -135,6 +136,7 @@ define([ | |||
//>>includeEnd('debug'); | |||
|
|||
this.enabled = false; | |||
this._softShadows = defaultValue(options.softShadows, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we expose this as a settable option? If it is too painful to make it dynamic, we should at least be able to set it through Scene/Widget/Viewer at construction time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't work dynamically now as all shadow receivers would need to recompile their shaders, but I can make it public for construction time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
If you didn't already, can you please update the shadows roadmap to include looking into other sampling strategies? |
Looks good! Just those comments. @bagnell can merge when ready. |
Ready. |
For #2594
I'm using a basic 3x3 filter right now, so the results are alright but nothing special. Also included in this PR is simplifying the shaders a bit for point lights that don't use cube maps.