Skip to content

Commit a70b90b

Browse files
committed
Updated builds.
1 parent 888b6be commit a70b90b

File tree

2 files changed

+333
-312
lines changed

2 files changed

+333
-312
lines changed

build/three.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,14 @@
414414

415415
},
416416

417+
// https://en.wikipedia.org/wiki/Linear_interpolation
418+
419+
lerp: function ( x, y, t ) {
420+
421+
return ( 1 - t ) * x + t * y;
422+
423+
},
424+
417425
// http://en.wikipedia.org/wiki/Smoothstep
418426

419427
smoothstep: function ( x, min, max ) {
@@ -17632,6 +17640,17 @@
1763217640

1763317641
_gl.pixelStorei( _gl.UNPACK_FLIP_Y_WEBGL, texture.flipY );
1763417642
_gl.pixelStorei( _gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha );
17643+
17644+
if ( texture.isDataTexture && texture.unpackAlignment !== 1 &&
17645+
exports.Math.isPowerOfTwo( texture.image.width ) === false &&
17646+
texture.format === RGBFormat &&
17647+
texture.type === UnsignedByteType ) {
17648+
17649+
console.warn( 'THREE.WebGLRenderer: Changed unpackAlignment to 1. See #9566.', texture );
17650+
texture.unpackAlignment = 1;
17651+
17652+
}
17653+
1763517654
_gl.pixelStorei( _gl.UNPACK_ALIGNMENT, texture.unpackAlignment );
1763617655

1763717656
var image = clampToMaxSize( texture.image, capabilities.maxTextureSize );

0 commit comments

Comments
 (0)