Garrett Johnson 4 yıl önce
ebeveyn
işleme
0d64a86187
3 değiştirilmiş dosya ile 3 ekleme ve 12 silme
  1. 1 4
      example/cmptExample.js
  2. 1 4
      example/i3dmExample.js
  3. 1 4
      example/pntsExample.js

+ 1 - 4
example/cmptExample.js

@@ -5,14 +5,13 @@ import {
 	AmbientLight,
 	WebGLRenderer,
 	PerspectiveCamera,
-	Box3,
 	sRGBEncoding,
 	PCFSoftShadowMap,
 } from 'three';
 import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
 
 let camera, controls, scene, renderer;
-let box, dirLight;
+let dirLight;
 
 init();
 animate();
@@ -60,8 +59,6 @@ function init() {
 	const ambLight = new AmbientLight( 0xffffff, 0.05 );
 	scene.add( ambLight );
 
-	box = new Box3();
-
 	new CMPTLoader()
 		.load( '...' )
 		.then( res => {

+ 1 - 4
example/i3dmExample.js

@@ -5,7 +5,6 @@ import {
 	AmbientLight,
 	WebGLRenderer,
 	PerspectiveCamera,
-	Box3,
 	sRGBEncoding,
 	PCFSoftShadowMap,
 	Vector3,
@@ -15,7 +14,7 @@ import {
 import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
 
 let camera, controls, scene, renderer;
-let box, dirLight;
+let dirLight;
 
 init();
 animate();
@@ -63,8 +62,6 @@ function init() {
 	const ambLight = new AmbientLight( 0xffffff, 0.05 );
 	scene.add( ambLight );
 
-	box = new Box3();
-
 	new I3DMLoader()
 		.load( 'https://raw.githubusercontent.com/CesiumGS/3d-tiles-samples/master/tilesets/TilesetWithTreeBillboards/tree.i3dm' )
 		.then( res => {

+ 1 - 4
example/pntsExample.js

@@ -5,14 +5,13 @@ import {
 	AmbientLight,
 	WebGLRenderer,
 	PerspectiveCamera,
-	Box3,
 	sRGBEncoding,
 	PCFSoftShadowMap,
 } from 'three';
 import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
 
 let camera, controls, scene, renderer;
-let box, dirLight;
+let dirLight;
 
 init();
 animate();
@@ -60,8 +59,6 @@ function init() {
 	const ambLight = new AmbientLight( 0xffffff, 0.05 );
 	scene.add( ambLight );
 
-	box = new Box3();
-
 	new PNTSLoader()
 		.load( 'https://raw.githubusercontent.com/CesiumGS/3d-tiles-samples/master/tilesets/TilesetWithRequestVolume/points.pnts' )
 		.then( res => {