Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

build-threejs-app

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-threejs-app - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc