Skip to content

Commit

Permalink
WebGLTextures: Increase default precision for depth buffers with WebG…
Browse files Browse the repository at this point in the history
…L 2. (#26764)

* WebGLTextures: Increase default precision for depth buffers with WebGL 2.

* Examples: Update screenshots.

* Examples: Update screenshots.

* Add webgl2_multisampled_renderbuffers to exception list.
  • Loading branch information
Mugen87 committed Sep 16, 2023
1 parent 8193d58 commit b17a561
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file modified examples/screenshots/webgl2_multisampled_renderbuffers.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/renderers/webgl/WebGLTextures.js
Expand Up @@ -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 ) ) {

Expand Down
1 change: 1 addition & 0 deletions test/e2e/puppeteer.js
Expand Up @@ -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
Expand Down

0 comments on commit b17a561

Please sign in to comment.