- Home /
2D Game Kit Acid/Water Sorting Layer Issue
Hi all,
I'm facing some strange sorting issue with 2D game kit and TMP. Due to some reason Acid/Water is clipping some top most layer content. See that part of the "Hello" text is missing due to water, even though water is already behind the platform/ground.
Can anyone give me some clue to resolve this?
text-overlap.png
(130.0 kB)
Comment
Answer by Maleesh · Mar 25, 2018 at 05:49 AM
Found the solution. Turn off the ZWrite in water shader.
Shader "Water2D"
{
SubShader
{
Tags { "RenderType"="Opaque" "Queue"="Transparent" }
ZWrite Off
corrected-text.png
(365.7 kB)