提交 2456569c 编写于 作者: T Takahiro

Clean up WebGLTextures

上级 32cb6727
...@@ -99,8 +99,10 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, ...@@ -99,8 +99,10 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
function getInternalFormat( glFormat, glType ) { function getInternalFormat( glFormat, glType ) {
if ( _isWebGL2 && glFormat === _gl.RGBA && glType === _gl.FLOAT ) return _gl.RGBA32F; if ( ! _isWebGL2 ) return glFormat;
if ( _isWebGL2 && glFormat === _gl.RGBA && glType === _gl.HALF_FLOAT ) return _gl.RGBA16F;
if ( glFormat === _gl.RGBA && glType === _gl.FLOAT ) return _gl.RGBA32F;
if ( glFormat === _gl.RGBA && glType === _gl.HALF_FLOAT ) return _gl.RGBA16F;
return glFormat; return glFormat;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册