Explorar o código

Examples: Clean up.

Mugen87 %!s(int64=5) %!d(string=hai) anos
pai
achega
717e4b66ab
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      examples/webgl_interactive_lines.html

+ 4 - 2
examples/webgl_interactive_lines.html

@@ -94,13 +94,15 @@
 
 					var object;
 
+					var lineMaterial = new THREE.LineBasicMaterial( { color: Math.random() * 0xffffff } );
+
 					if ( Math.random() > 0.5 ) {
 
-						object = new THREE.Line( lineGeometry );
+						object = new THREE.Line( lineGeometry, lineMaterial );
 
 					} else {
 
-						object = new THREE.LineSegments( lineGeometry );
+						object = new THREE.LineSegments( lineGeometry, lineMaterial );
 
 					}