Explorar o código

fixed item size

Jaume Sanchez %!s(int64=7) %!d(string=hai) anos
pai
achega
65d0fe6135
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/js/MarchingCubes.js

+ 1 - 1
examples/js/MarchingCubes.js

@@ -761,7 +761,7 @@ THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors )
 		if (this.hasPositions) geo.addAttribute( 'position', new THREE.BufferAttribute(posArray,3));
 		if (this.hasNormals) geo.addAttribute( 'normal', new THREE.BufferAttribute(normArray,3));
 		if (this.hasColors) geo.addAttribute( 'color', new THREE.BufferAttribute(colorArray,3));
-		if (this.hasUvs) geo.addAttribute( 'uv', new THREE.BufferAttribute(uvArray,3));
+		if (this.hasUvs) geo.addAttribute( 'uv', new THREE.BufferAttribute(uvArray,2));
 
 		return geo;