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

DEPTH_TEXTURE broken on mobile GLES 3 #60762

Open
victfv opened this issue May 4, 2022 · 1 comment
Open

DEPTH_TEXTURE broken on mobile GLES 3 #60762

victfv opened this issue May 4, 2022 · 1 comment

Comments

@victfv
Copy link

victfv commented May 4, 2022

Godot version

3.5 beta 5

System information

Android 12, Adreno 640

Issue description

When I exported a project using GLES 3, proximity fade materials vanished. I converted the spatial material to a shader material and set it to display the DEPTH_TEXTURE and it's is pure black. Depth texture seems correct on GLES 2, but it's precision is too low to be usable in large meshes.

On PC it look like this:
image
On mobile it look like this
Screenshot_2022-05-04-15-52-05-865_org godotengine proximityfadeissue
PC with GLES 2:
image
Mobile with GLES 2:
Screenshot_2022-05-04-15-56-08-007_org godotengine proximityfadeissue

Steps to reproduce

  • Add any mesh to a scene.
  • Add a spatial material with proximity fade to the mesh.
  • Export to mobile using GLES 3 renderer.

Minimal reproduction project

ProximityFadeIssue.zip

@victfv victfv changed the title DEPTH_TEXTURE broken on mobile DEPTH_TEXTURE broken on mobile GLES 3 May 4, 2022
@Calinou
Copy link
Member

Calinou commented May 4, 2022

Depth texture seems correct on GLES 2, but it's precision is too low to be usable in large meshes.

You can force high shader precision in the Project Settings (Enable High Float.Android). This has a significant GPU performance cost though.

See also #54431.

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