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

Updated builds.

上级 ae684a15
......@@ -151,6 +151,7 @@ THREE.UnsignedShortType = 1012;
THREE.IntType = 1013;
THREE.UnsignedIntType = 1014;
THREE.FloatType = 1015;
THREE.HalfFloatType = 1025;
// Pixel types
......@@ -17757,6 +17758,8 @@ THREE.WebGLRenderer = function ( parameters ) {
extensions.get( 'OES_texture_float' );
extensions.get( 'OES_texture_float_linear' );
extensions.get( 'OES_texture_half_float' );
extensions.get( 'OES_texture_half_float_linear' );
extensions.get( 'OES_standard_derivatives' );
if ( _logarithmicDepthBuffer ) {
......@@ -17942,6 +17945,12 @@ THREE.WebGLRenderer = function ( parameters ) {
};
this.supportsHalfFloatTextures = function () {
return extensions.get( 'OES_texture_half_float' );
};
this.supportsStandardDerivatives = function () {
return extensions.get( 'OES_standard_derivatives' );
......@@ -23174,7 +23183,7 @@ THREE.WebGLRenderer = function ( parameters ) {
extension = extensions.get( 'EXT_texture_filter_anisotropic' );
if ( extension && texture.type !== THREE.FloatType ) {
if ( extension && texture.type !== THREE.FloatType && texture.type !== THREE.HalfFloatType ) {
if ( texture.anisotropy > 1 || texture.__oldAnisotropy ) {
......@@ -23759,6 +23768,14 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( p === THREE.UnsignedIntType ) return _gl.UNSIGNED_INT;
if ( p === THREE.FloatType ) return _gl.FLOAT;
extension = extensions.get( 'OES_texture_half_float' );
if ( extension !== null ) {
if ( p === THREE.HalfFloatType ) return extension.HALF_FLOAT_OES;
}
if ( p === THREE.AlphaFormat ) return _gl.ALPHA;
if ( p === THREE.RGBFormat ) return _gl.RGB;
if ( p === THREE.RGBAFormat ) return _gl.RGBA;
......@@ -27053,12 +27070,10 @@ THREE.Curve.prototype.getUtoTmapping = function ( u, distance ) {
if ( comparison < 0 ) {
low = i + 1;
continue;
} else if ( comparison > 0 ) {
high = i - 1;
continue;
} else {
......@@ -27282,7 +27297,6 @@ THREE.CurvePath.prototype.getPoint = function( t ) {
return curve.getPointAt( u );
break;
}
i ++;
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册