Browse Source

Merge pull request #7242 from WestLangley/dev-circle

CircleBufferGeometry: fix normals bug
Mr.doob 9 years ago
parent
commit
fbc81c83ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extras/geometries/CircleBufferGeometry.js

+ 1 - 1
src/extras/geometries/CircleBufferGeometry.js

@@ -28,7 +28,7 @@ THREE.CircleBufferGeometry = function ( radius, segments, thetaStart, thetaLengt
 	var uvs = new Float32Array( vertices * 2 );
 
 	// center data is already zero, but need to set a few extras
-	normals[ 3 ] = 1.0;
+	normals[ 2 ] = 1.0;
 	uvs[ 0 ] = 0.5;
 	uvs[ 1 ] = 0.5;