提交 a70b90b4 编写于 作者: M Mr.doob

Updated builds.

上级 888b6be9
......@@ -414,6 +414,14 @@
},
// https://en.wikipedia.org/wiki/Linear_interpolation
lerp: function ( x, y, t ) {
return ( 1 - t ) * x + t * y;
},
// http://en.wikipedia.org/wiki/Smoothstep
smoothstep: function ( x, min, max ) {
......@@ -17632,6 +17640,17 @@
_gl.pixelStorei( _gl.UNPACK_FLIP_Y_WEBGL, texture.flipY );
_gl.pixelStorei( _gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha );
if ( texture.isDataTexture && texture.unpackAlignment !== 1 &&
exports.Math.isPowerOfTwo( texture.image.width ) === false &&
texture.format === RGBFormat &&
texture.type === UnsignedByteType ) {
console.warn( 'THREE.WebGLRenderer: Changed unpackAlignment to 1. See #9566.', texture );
texture.unpackAlignment = 1;
}
_gl.pixelStorei( _gl.UNPACK_ALIGNMENT, texture.unpackAlignment );
var image = clampToMaxSize( texture.image, capabilities.maxTextureSize );
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册