Skip to content

Update to three.js r98#219

Merged
jsantell merged 1 commit intomasterfrom
r98
Nov 16, 2018
Merged

Update to three.js r98#219
jsantell merged 1 commit intomasterfrom
r98

Conversation

@jsantell
Copy link
Contributor

Updates three.js to r98.

Reference Issue

Fixes #147

],
};

const onwarn = (warning, warn) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@cdata cdata left a comment

Choose a reason for hiding this comment

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

LGTM 👍

"dependencies": {
"@polymer/lit-element": "^0.6.2",
"three": "^0.94.0"
"three": "^0.98.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

'lib/third_party/three/GLTFLoader.js': [
'DDSLoader',
'BufferGeometryUtils',
'DRACOLoader',
Copy link
Contributor

Choose a reason for hiding this comment

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

Will we eventually include this for draco support?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, if we want to bundle it, but imagine we'd need a different solution. This expects THREE.DRACOLoader so to avoid changing the source code that will get clobbered on the next three.js update, the warnings are muted. For DRACO specifically, I think we can set that in CachedGLTFLoader, rather than modifying GLTFLoader outside of the ES Module changes

this.model = new Model();
this.shadow = new StaticShadow();
this.light = new AmbientLight(0xffffff, 1);
this.light.name = 'AmbientLight';
Copy link
Contributor

Choose a reason for hiding this comment

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

Was name removed from objects at some point?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cdata name is default an empty string, so this helps some debugging

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.

Upgrade to three r98

2 participants