|
@@ -98,7 +98,9 @@ const HalfFloatType = 1016;
|
|
|
const UnsignedShort4444Type = 1017;
|
|
|
const UnsignedShort5551Type = 1018;
|
|
|
const UnsignedInt248Type = 1020;
|
|
|
+const UnsignedInt5999Type = 35902;
|
|
|
const AlphaFormat = 1021;
|
|
|
+const RGBFormat = 1022;
|
|
|
const RGBAFormat = 1023;
|
|
|
const LuminanceFormat = 1024;
|
|
|
const LuminanceAlphaFormat = 1025;
|
|
@@ -17220,6 +17222,7 @@ function WebGLExtensions( gl ) {
|
|
|
getExtension( 'OES_texture_float_linear' );
|
|
|
getExtension( 'EXT_color_buffer_half_float' );
|
|
|
getExtension( 'WEBGL_multisampled_render_to_texture' );
|
|
|
+ getExtension( 'WEBGL_render_shared_exponent' );
|
|
|
|
|
|
},
|
|
|
|
|
@@ -23787,6 +23790,12 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if ( glFormat === _gl.RGB ) {
|
|
|
+
|
|
|
+ if ( glType === _gl.UNSIGNED_INT_5_9_9_9_REV ) internalFormat = _gl.RGB9_E5;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if ( glFormat === _gl.RGBA ) {
|
|
|
|
|
|
const transfer = forceLinearTransfer ? LinearTransfer : ColorManagement.getTransfer( colorSpace );
|
|
@@ -25674,6 +25683,7 @@ function WebGLUtils( gl, extensions ) {
|
|
|
if ( p === UnsignedByteType ) return gl.UNSIGNED_BYTE;
|
|
|
if ( p === UnsignedShort4444Type ) return gl.UNSIGNED_SHORT_4_4_4_4;
|
|
|
if ( p === UnsignedShort5551Type ) return gl.UNSIGNED_SHORT_5_5_5_1;
|
|
|
+ if ( p === UnsignedInt5999Type ) return gl.UNSIGNED_INT_5_9_9_9_REV;
|
|
|
|
|
|
if ( p === ByteType ) return gl.BYTE;
|
|
|
if ( p === ShortType ) return gl.SHORT;
|
|
@@ -25684,6 +25694,7 @@ function WebGLUtils( gl, extensions ) {
|
|
|
if ( p === HalfFloatType ) return gl.HALF_FLOAT;
|
|
|
|
|
|
if ( p === AlphaFormat ) return gl.ALPHA;
|
|
|
+ if ( p === RGBFormat ) return gl.RGB;
|
|
|
if ( p === RGBAFormat ) return gl.RGBA;
|
|
|
if ( p === LuminanceFormat ) return gl.LUMINANCE;
|
|
|
if ( p === LuminanceAlphaFormat ) return gl.LUMINANCE_ALPHA;
|
|
@@ -32747,7 +32758,7 @@ class BatchedMesh extends Mesh {
|
|
|
|
|
|
}
|
|
|
|
|
|
- // Make sure the geometry is compatible with the existing combined geometry atributes
|
|
|
+ // Make sure the geometry is compatible with the existing combined geometry attributes
|
|
|
_validateGeometry( geometry ) {
|
|
|
|
|
|
// check that the geometry doesn't have a version of our reserved id attribute
|
|
@@ -53092,6 +53103,7 @@ exports.RGBA_PVRTC_4BPPV1_Format = RGBA_PVRTC_4BPPV1_Format;
|
|
|
exports.RGBA_S3TC_DXT1_Format = RGBA_S3TC_DXT1_Format;
|
|
|
exports.RGBA_S3TC_DXT3_Format = RGBA_S3TC_DXT3_Format;
|
|
|
exports.RGBA_S3TC_DXT5_Format = RGBA_S3TC_DXT5_Format;
|
|
|
+exports.RGBFormat = RGBFormat;
|
|
|
exports.RGB_BPTC_SIGNED_Format = RGB_BPTC_SIGNED_Format;
|
|
|
exports.RGB_BPTC_UNSIGNED_Format = RGB_BPTC_UNSIGNED_Format;
|
|
|
exports.RGB_ETC1_Format = RGB_ETC1_Format;
|
|
@@ -53177,6 +53189,7 @@ exports.UniformsLib = UniformsLib;
|
|
|
exports.UniformsUtils = UniformsUtils;
|
|
|
exports.UnsignedByteType = UnsignedByteType;
|
|
|
exports.UnsignedInt248Type = UnsignedInt248Type;
|
|
|
+exports.UnsignedInt5999Type = UnsignedInt5999Type;
|
|
|
exports.UnsignedIntType = UnsignedIntType;
|
|
|
exports.UnsignedShort4444Type = UnsignedShort4444Type;
|
|
|
exports.UnsignedShort5551Type = UnsignedShort5551Type;
|