three-base 2.0.82 → 2.0.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "2.0.82",
3
+ "version": "2.0.84",
4
4
  "description": "three 3d three-base",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
package/threeLoader.js CHANGED
@@ -73,6 +73,7 @@ class ThreeLoader extends EventDispatcher {
73
73
  videoDom.preload = "auto";
74
74
  videoDom.playsInline = true;
75
75
  videoDom.src = src;
76
+ videoDom.crossOrigin = "anonymous";
76
77
  videoDom.play();
77
78
  const firstOptoin = () => {
78
79
  videoDom.pause();
@@ -154,9 +155,9 @@ class ThreeLoader extends EventDispatcher {
154
155
  else if (["stl"].includes(suffix)) {
155
156
  await threeLoader.stlLoader.loadAsync(url).then(geometry => {
156
157
  Object3d = new Mesh(geometry, new MeshStandardMaterial({
157
- color: "#f1fbff",
158
- metalness: 0.79,
159
- roughness: 0.56,
158
+ color: "#eeeeee",
159
+ metalness: 0,
160
+ roughness: 0.5,
160
161
  envMapIntensity: 0.4
161
162
  }));
162
163
  }).catch(() => {
package/threeLoader.ts CHANGED
@@ -90,6 +90,7 @@ class ThreeLoader extends EventDispatcher {
90
90
  videoDom.preload = "auto";
91
91
  videoDom.playsInline = true;
92
92
  videoDom.src = src;
93
+ videoDom.crossOrigin = "anonymous";
93
94
  videoDom.play();
94
95
  const firstOptoin = () => {
95
96
  videoDom.pause();
@@ -185,9 +186,9 @@ class ThreeLoader extends EventDispatcher {
185
186
  } else if (["stl"].includes(suffix)) {
186
187
  await threeLoader.stlLoader.loadAsync(url).then(geometry => {
187
188
  Object3d = new Mesh(geometry, new MeshStandardMaterial({
188
- color: "#f1fbff",
189
- metalness: 0.79,
190
- roughness: 0.56,
189
+ color: "#eeeeee",
190
+ metalness: 0,
191
+ roughness: 0.5,
191
192
  envMapIntensity: 0.4
192
193
  }));
193
194
  }).catch(() => {