Sfoglia il codice sorgente

Update webxr_vr_cubes.html

Michael Herzog 5 anni fa
parent
commit
898f3510d7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/webxr_vr_cubes.html

+ 1 - 1
examples/webxr_vr_cubes.html

@@ -140,7 +140,7 @@
 						geometry.setAttribute( 'position', new THREE.Float32BufferAttribute( [ 0, 0, 0, 0, 0, - 1 ], 3 ) );
 						geometry.setAttribute( 'position', new THREE.Float32BufferAttribute( [ 0, 0, 0, 0, 0, - 1 ], 3 ) );
 						geometry.setAttribute( 'color', new THREE.Float32BufferAttribute( [ 0.5, 0.5, 0.5, 0, 0, 0 ], 3 ) );
 						geometry.setAttribute( 'color', new THREE.Float32BufferAttribute( [ 0.5, 0.5, 0.5, 0, 0, 0 ], 3 ) );
 
 
-						var material = new THREE.LineBasicMaterial( { vertexColors: true, blending: THREE.AdditiveBlending } );
+						var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors, blending: THREE.AdditiveBlending } );
 
 
 						return new THREE.Line( geometry, material );
 						return new THREE.Line( geometry, material );