Преглед на файлове

Using DynamicGeometry in decals example.

Mr.doob преди 11 години
родител
ревизия
6f6327b55a
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 3
      examples/webgl_decals.html

+ 2 - 3
examples/webgl_decals.html

@@ -111,9 +111,8 @@
 			light.position.set( 1, 0.75, 0.5 );
 			light.position.set( 1, 0.75, 0.5 );
 			scene.add( light );
 			scene.add( light );
 
 
-			line = new THREE.Line( new THREE.Geometry( ), new THREE.LineBasicMaterial( { linewidth: 4 }) );
-			line.geometry.vertices.push( new THREE.Vector3( 0, 0, 0 ) );
-			line.geometry.vertices.push( new THREE.Vector3( 0, 0, 0 ) );
+			line = new THREE.Line( new THREE.DynamicGeometry(), new THREE.LineBasicMaterial( { linewidth: 4 } ) );
+			line.geometry.vertices.push( new THREE.Vector3(), new THREE.Vector3() );
 			scene.add( line );
 			scene.add( line );
 
 
 			loadLeePerrySmith();
 			loadLeePerrySmith();

粤ICP备19079148号