Skip to content

Commit de34d4e

Browse files
committed
Updated builds.
1 parent 1c557fd commit de34d4e

File tree

3 files changed

+318
-310
lines changed

3 files changed

+318
-310
lines changed

build/three.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30386,6 +30386,10 @@
3038630386

3038730387
var v = iy / heightSegments;
3038830388

30389+
// special case for the poles
30390+
30391+
var uOffset = ( iy == 0 ) ? 0.5 / widthSegments : ( ( iy == heightSegments ) ? - 0.5 / widthSegments : 0 );
30392+
3038930393
for ( ix = 0; ix <= widthSegments; ix ++ ) {
3039030394

3039130395
var u = ix / widthSegments;
@@ -30400,12 +30404,12 @@
3040030404

3040130405
// normal
3040230406

30403-
normal.set( vertex.x, vertex.y, vertex.z ).normalize();
30407+
normal.copy( vertex ).normalize();
3040430408
normals.push( normal.x, normal.y, normal.z );
3040530409

3040630410
// uv
3040730411

30408-
uvs.push( u, 1 - v );
30412+
uvs.push( u + uOffset, 1 - v );
3040930413

3041030414
verticesRow.push( index ++ );
3041130415

0 commit comments

Comments
 (0)