Explorar o código

Merge pull request #18357 from Mugen87/dev29

Examples: Fix vertex color setting in ball shooter.
Michael Herzog %!s(int64=5) %!d(string=hai) anos
pai
achega
e62cb59571
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/webxr_vr_ballshooter.html

+ 1 - 1
examples/webxr_vr_ballshooter.html

@@ -146,7 +146,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 );