Skip to content
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

reading from depth texture disables depth test. #69293

Closed
darthLeviN opened this issue Nov 28, 2022 · 1 comment
Closed

reading from depth texture disables depth test. #69293

darthLeviN opened this issue Nov 28, 2022 · 1 comment

Comments

@darthLeviN
Copy link
Contributor

darthLeviN commented Nov 28, 2022

Godot version

4 beta 6

System information

Kubuntu

Issue description

When reading from the depth texture in the shader, everything becomes messed up if it overlaps itself.
I think when this happens no specific draw order is imposed.

Steps to reproduce

1- Make a model that overlaps itself
2- Make a shader material that reads from DEPTH_TEXTURE.

Minimal reproduction project

gd4test.zip

@Calinou
Copy link
Member

Calinou commented Nov 28, 2022

Duplicate of #63675 (same cause – see below).

Reading from the depth texture forces the material to be transparent, which causes transparency sorting issues. These are an inherent limitation of the rendering engine, and cannot always be resolved.

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants