three-base 2.0.37 → 2.0.38
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/Sky/Sky.js +1 -1
- package/Sky/Sky.ts +1 -1
- package/package.json +1 -1
- package/threeLoader.js +1 -1
- package/threeLoader.ts +1 -1
package/Sky/Sky.js
CHANGED
|
@@ -14,7 +14,7 @@ export default class Sky extends Mesh {
|
|
|
14
14
|
constructor() {
|
|
15
15
|
super(Sky.geometry);
|
|
16
16
|
}
|
|
17
|
-
static geometry = new SphereGeometry(
|
|
17
|
+
static geometry = new SphereGeometry(5000, 100, 100);
|
|
18
18
|
material = new MeshBasicMaterial({
|
|
19
19
|
side: DoubleSide,
|
|
20
20
|
map: threeLoader.getTexture(blueskyJPG)
|
package/Sky/Sky.ts
CHANGED
package/package.json
CHANGED
package/threeLoader.js
CHANGED
|
@@ -60,7 +60,7 @@ class ThreeLoader extends EventDispatcher {
|
|
|
60
60
|
}
|
|
61
61
|
let texture = this.textureMap.get(src);
|
|
62
62
|
if (!texture) {
|
|
63
|
-
if (/\.mp4
|
|
63
|
+
if (/\.(mp4|mov)$/i.test(src)) {
|
|
64
64
|
const videoDom = document.createElement("video");
|
|
65
65
|
videoDom.autoplay = true;
|
|
66
66
|
videoDom.loop = true;
|
package/threeLoader.ts
CHANGED
|
@@ -75,7 +75,7 @@ class ThreeLoader extends EventDispatcher {
|
|
|
75
75
|
let texture = this.textureMap.get(src);
|
|
76
76
|
|
|
77
77
|
if (!texture) {
|
|
78
|
-
if (/\.mp4
|
|
78
|
+
if (/\.(mp4|mov)$/i.test(src)) {
|
|
79
79
|
const videoDom = document.createElement("video");
|
|
80
80
|
videoDom.autoplay = true;
|
|
81
81
|
videoDom.loop = true;
|