-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depth+Stencil Attachment fails in WebGL2 #18887
Comments
Any chances to make a pure WebGL example and verify this (see #18876 (comment))? |
Yes, will do that later today. |
Pure WebGL2 implementation: https://codesandbox.io/s/webgl-depth-stencil-jhvzf I'm not 100% sure if I've done the depth stencil attachment part right, but it looks like it's working. |
It turns out that my MS Edge version doesn't actually support WebGL 2. The context creation simply failed and I was passing a This removes my suspicion of it being a browser/ANGLE issue. |
I'll have a go on this one as soon as #18876 is resolved. There is already a PR that slightly refactors |
Description of the problem
Using a
DepthTexture
attachment withDepthStencilFormat
andUnsignedInt248Type
fails in WebGL2. The issue can be reproduced by uncommenting the lines60
&61
in the following example: https://jsfiddle.net/07yvba98/Chrome reports the following error on my system:
Firefox spits out a bit more information:
MS Edge does not report any errors and works as expected.(See this comment)This document states that the internalFormat
0x84f9
representsDEPTH_STENCIL_OES
while0x88F0
represents the correct sized formatDEPTH24_STENCIL8_OES
which should be used in a WebGL2 context.I'm not sure if this is a bug in WebGLTextures or a browser/ANGLE issue.
Related: #16769
Three.js version
Browser
OS
The text was updated successfully, but these errors were encountered: