Open victfv opened 2 years ago
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.
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:
On mobile it look like this
PC with GLES 2:
Mobile with GLES 2:
![Screenshot_2022-05-04-15-56-08-007_org godotengine proximityfadeissue](https://user-images.githubusercontent.com/25274301/166806350-93937c4a-99e5-4c02-a284-b6150eb5a7c0.jpg)
Steps to reproduce
Minimal reproduction project
ProximityFadeIssue.zip