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

updating shadowMap constructor to take context instead of scene #4926

Merged
merged 4 commits into from
Jan 26, 2017

Conversation

rahwang
Copy link
Contributor

@rahwang rahwang commented Jan 26, 2017

Reverting changes to shadowMap constructor made in #4890.

@@ -137,11 +137,11 @@ define([
*/
function ShadowMap(options) {
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
var scene = options.scene;
var context = options.context;
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this object is not meant to be constructed directly, it is OK for it to take context, but let's remove it from the above doc:

* @param {Context} options.context The context in which to create the shadow map.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok! Fixed.

@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 26, 2017

Thanks @rahwang!

@pjcozzi pjcozzi merged commit f89fca8 into CesiumGS:master Jan 26, 2017
@rahwang rahwang deleted the pass-context-to-shadowMap branch March 30, 2017 16:19
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