|
@@ -153,6 +153,14 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if ( glFormat === _gl.RG ) {
|
|
|
+
|
|
|
+ if ( glType === _gl.FLOAT ) internalFormat = _gl.RG32F;
|
|
|
+ if ( glType === _gl.HALF_FLOAT ) internalFormat = _gl.RG16F;
|
|
|
+ if ( glType === _gl.UNSIGNED_BYTE ) internalFormat = _gl.RG8;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if ( glFormat === _gl.RGB ) {
|
|
|
|
|
|
if ( glType === _gl.FLOAT ) internalFormat = _gl.RGB32F;
|
|
@@ -170,6 +178,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
}
|
|
|
|
|
|
if ( internalFormat === _gl.R16F || internalFormat === _gl.R32F ||
|
|
|
+ internalFormat === _gl.RG16F || internalFormat === _gl.RG32F ||
|
|
|
internalFormat === _gl.RGBA16F || internalFormat === _gl.RGBA32F ) {
|
|
|
|
|
|
extensions.get( 'EXT_color_buffer_float' );
|