|
@@ -1,4 +1,4 @@
|
|
-import { LinearFilter, LinearMipmapLinearFilter, LinearMipmapNearestFilter, NearestFilter, NearestMipmapLinearFilter, NearestMipmapNearestFilter, RGBFormat, RGBAFormat, DepthFormat, DepthStencilFormat, UnsignedShortType, UnsignedIntType, UnsignedInt248Type, FloatType, HalfFloatType, MirroredRepeatWrapping, ClampToEdgeWrapping, RepeatWrapping, sRGBEncoding } from '../../constants.js';
|
|
|
|
|
|
+import { LinearFilter, LinearMipmapLinearFilter, LinearMipmapNearestFilter, NearestFilter, NearestMipmapLinearFilter, NearestMipmapNearestFilter, RGBFormat, RGBAFormat, DepthFormat, DepthStencilFormat, UnsignedShortType, UnsignedIntType, UnsignedInt248Type, FloatType, HalfFloatType, MirroredRepeatWrapping, ClampToEdgeWrapping, RepeatWrapping } from '../../constants.js';
|
|
import * as MathUtils from '../../math/MathUtils.js';
|
|
import * as MathUtils from '../../math/MathUtils.js';
|
|
import { createElementNS } from '../../utils.js';
|
|
import { createElementNS } from '../../utils.js';
|
|
|
|
|
|
@@ -128,7 +128,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- function getInternalFormat( internalFormatName, glFormat, glType, encoding ) {
|
|
|
|
|
|
+ function getInternalFormat( internalFormatName, glFormat, glType/*, encoding*/ ) {
|
|
|
|
|
|
if ( isWebGL2 === false ) return glFormat;
|
|
if ( isWebGL2 === false ) return glFormat;
|
|
|
|
|
|
@@ -162,7 +162,9 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
|
|
|
if ( glType === _gl.FLOAT ) internalFormat = _gl.RGBA32F;
|
|
if ( glType === _gl.FLOAT ) internalFormat = _gl.RGBA32F;
|
|
if ( glType === _gl.HALF_FLOAT ) internalFormat = _gl.RGBA16F;
|
|
if ( glType === _gl.HALF_FLOAT ) internalFormat = _gl.RGBA16F;
|
|
- if ( glType === _gl.UNSIGNED_BYTE ) internalFormat = ( encoding === sRGBEncoding ) ? _gl.SRGB8_ALPHA8 : _gl.RGBA8;
|
|
|
|
|
|
+ //if ( glType === _gl.UNSIGNED_BYTE ) internalFormat = ( encoding === sRGBEncoding ) ? _gl.SRGB8_ALPHA8 : _gl.RGBA8;
|
|
|
|
+ if ( glType === _gl.UNSIGNED_BYTE ) internalFormat = _gl.RGBA8;
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|