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

Soft shadows #3731

Merged
merged 4 commits into from
Mar 21, 2016
Merged

Soft shadows #3731

merged 4 commits into from
Mar 21, 2016

Conversation

lilleyse
Copy link
Contributor

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.

@lilleyse
Copy link
Contributor Author

pcf_off
pcf

@@ -135,6 +136,7 @@ define([
//>>includeEnd('debug');

this.enabled = false;
this._softShadows = defaultValue(options.softShadows, false);
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK

@pjcozzi
Copy link
Contributor

pjcozzi commented Mar 21, 2016

If you didn't already, can you please update the shadows roadmap to include looking into other sampling strategies?

@pjcozzi
Copy link
Contributor

pjcozzi commented Mar 21, 2016

Looks good! Just those comments. @bagnell can merge when ready.

@lilleyse
Copy link
Contributor Author

Ready.

bagnell added a commit that referenced this pull request Mar 21, 2016
@bagnell bagnell merged commit 294e874 into shadows Mar 21, 2016
@bagnell bagnell deleted the shadows-soft branch March 21, 2016 19:14
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.

3 participants