-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
GLES2 WebGL depth texture not draw #36786
Comments
Please provide details about the OS and browser(s). |
Chrome 78 /Firefox 70, only Linux |
@Calinou look my screenshot in first post, please in Godot web build Depth work only in WebGL2 build(GLES3) I have test it in Windows webbrowsers, same Depth does not work in GLES2 Godot in Web |
This is expected behaviour. Take a look at the error you get when running the scene you provided:
Certain hardware (and platforms, including webgl) do not support reading from a bound depth texture. The That note in the docs is particularly pointing to this situation. Godot allows you to read from the depth_texture, however, your hardware (in this case platform) just doesn't support it. The only way to "fix" this would be to go back to the previous hardware and not allow anyone to use the depth_texture in shaders because it cannot be supported on all hardware and platforms. |
okey I see, thanks for clarification |
Godot version:
3.2 stable
OS/device including version:
Chrome 78 /Firefox 70, Linux and Windows
Issue description:
GLES2 Depth texture not work when it supported by device/hardware(webbrowser)
Docs https://docs.godotengine.org/en/3.2/tutorials/misc/gles2_gles3_differences.html :
it means Godot do check if device support Depth, and use it when supported.
I have support depth texture in GLES2 in webbrowser, Godot do not use it.
Webgl does Depth support https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_depth_texture
Steps to reproduce:
WEBGL_depth_texture listed
Minimal reproduction project:
source zip link
The text was updated successfully, but these errors were encountered: