|
@@ -28,7 +28,7 @@ THREE.RingGeometry = function ( innerRadius, outerRadius, thetaSegments, phiSegm
|
|
|
vertex.y = radius * Math.sin( segment );
|
|
|
|
|
|
this.vertices.push( vertex );
|
|
|
- uvs.push( new THREE.Vector2( ( vertex.x / radius + 1 ) / 2, - ( vertex.y / radius + 1 ) / 2 + 1 ) );
|
|
|
+ uvs.push( new THREE.Vector2( ( vertex.x / outerRadius + 1 ) / 2, ( vertex.y / outerRadius + 1 ) / 2 ) );
|
|
|
}
|
|
|
|
|
|
radius += radiusStep;
|
|
@@ -49,15 +49,15 @@ THREE.RingGeometry = function ( innerRadius, outerRadius, thetaSegments, phiSegm
|
|
|
var v2 = segment + thetaSegments + i;
|
|
|
var v3 = segment + thetaSegments + 1 + i;
|
|
|
|
|
|
- this.faces.push( new THREE.Face3( v1, v2, v3, [ n, n, n ] ) );
|
|
|
- this.faceVertexUvs[ 0 ].push( [ uvs[ v1 ], uvs[ v2 ], uvs[ v3 ] ]);
|
|
|
+ this.faces.push( new THREE.Face3( v1, v2, v3, [ n.clone(), n.clone(), n.clone() ] ) );
|
|
|
+ this.faceVertexUvs[ 0 ].push( [ uvs[ v1 ].clone(), uvs[ v2 ].clone(), uvs[ v3 ].clone() ]);
|
|
|
|
|
|
v1 = segment + i;
|
|
|
v2 = segment + thetaSegments + 1 + i;
|
|
|
v3 = segment + 1 + i;
|
|
|
|
|
|
- this.faces.push( new THREE.Face3( v1, v2, v3, [ n, n, n ] ) );
|
|
|
- this.faceVertexUvs[ 0 ].push( [ uvs[ v1 ], uvs[ v2 ], uvs[ v3 ] ]);
|
|
|
+ this.faces.push( new THREE.Face3( v1, v2, v3, [ n.clone(), n.clone(), n.clone() ] ) );
|
|
|
+ this.faceVertexUvs[ 0 ].push( [ uvs[ v1 ].clone(), uvs[ v2 ].clone(), uvs[ v3 ].clone() ]);
|
|
|
|
|
|
}
|
|
|
}
|