build-threejs-app
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "bin": "dist/index.js", |
@@ -10,3 +10,3 @@ # Build ThreeJS App | ||
```bash | ||
npx build-threejs-app@latest | ||
npx build-threejs-app | ||
``` | ||
@@ -13,0 +13,0 @@ |
@@ -10,3 +10,3 @@ # Build ThreeJS App | ||
```bash | ||
npx build-threejs-app@latest | ||
npx build-threejs-app | ||
``` | ||
@@ -13,0 +13,0 @@ |
@@ -32,3 +32,3 @@ import Experience from "../Experience.js"; | ||
setModel() { | ||
this.model = this.bakeModel.getModel(); | ||
this.model = this.bakedModel.getModel(); | ||
this.model.position.y = 1; | ||
@@ -35,0 +35,0 @@ this.scene.add(this.model); |
@@ -29,12 +29,12 @@ import * as THREE from "three"; | ||
setLoaders() { | ||
this.loaders = {}; | ||
this.loaders.gltfLoader = new GLTFLoader(); | ||
this.loaders.dracoLoader = new DRACOLoader(); | ||
this.loaders.dracoLoader.setDecoderPath("/draco/"); | ||
this.loaders.gltfLoader.setDRACOLoader(this.loaders.dracoLoader); | ||
let dracoLoader = new DRACOLoader(); | ||
dracoLoader.setDecoderPath("/draco/"); | ||
this.loaders.textureLoader = new THREE.TextureLoader(); | ||
this.loaders.cubeTextureLoader = new THREE.CubeTextureLoader(); | ||
this.loaders.audioLoader = new THREE.AudioLoader(); | ||
this.loaders.fontLoader = new FontLoader(); | ||
this.loaders = { | ||
gltfLoader: new GLTFLoader().setDRACOLoader(dracoLoader), | ||
textureLoader: new THREE.TextureLoader(), | ||
cubeTextureLoader: new THREE.CubeTextureLoader(), | ||
audioLoader: new THREE.AudioLoader(), | ||
fontLoader: new FontLoader(), | ||
}; | ||
} | ||
@@ -41,0 +41,0 @@ |
@@ -10,3 +10,3 @@ # Build ThreeJS App | ||
```bash | ||
npx build-threejs-app@latest | ||
npx build-threejs-app | ||
``` | ||
@@ -13,0 +13,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7536493