- Home /
Depth Texture not working correctly on mobile
Hi!
I wanted to use a depth texture for water foam and water depth and while it works correctly in the editor (first screen) when I deploy it on mobile it seems to function rather oddly. Not only that but it also shifts in relation to the tiles whenever I move. Is there a fix for this?
Unity version 2019.3.6f1
URP and Shader Graph version 7.4.1
Any help appreciated!
Answer by Vederant · Jun 09, 2020 at 06:51 PM
Fixed it. The "Accurate" method in here has worked https://cyangamedev.wordpress.com/2019/12/05/fog-plane-shader-breakdown/
Hey! Could you please tell me how performant your final shader for mobile? Is depth texture as heavy for performance as transparent planes or not? I am planning to make something like fog from your solution
Your answer
Follow this Question
Related Questions
Edge Detection Camera Script Not Working (Android) 1 Answer
Universal Render Pipeline grey screen on android 0 Answers
Trail Renderer display 1 Answer