* WebGLTextures: Increase default precision for depth buffers with WebGL 2. * Examples: Update screenshots. * Examples: Update screenshots. * Add webgl2_multisampled_renderbuffers to exception list.
@@ -1403,7 +1403,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
if ( renderTarget.depthBuffer && ! renderTarget.stencilBuffer ) {
- let glInternalFormat = _gl.DEPTH_COMPONENT16;
+ let glInternalFormat = ( isWebGL2 === true ) ? _gl.DEPTH_COMPONENT24 : _gl.DEPTH_COMPONENT16;
if ( isMultisample || useMultisampledRTT( renderTarget ) ) {
@@ -99,6 +99,7 @@ const exceptionList = [
'webgl_test_memory2',
'webgl_tiled_forward',
'webgl2_volume_instancing',
+ 'webgl2_multisampled_renderbuffers',
'webgl_points_dynamic',
// TODO: implement determinism for setTimeout and setInterval