- Home /
Question by
SolidSlish · Mar 27, 2020 at 06:27 PM ·
shadermobiletransparencyglitchzwrite
My Transparency Shader Is No Longer Working on Mobile?
For some reason, the transparent floor in my game (which is an illusion meant to make the environment look reflective) looks super glitchy when running on my Android, but perfectly fine on my laptop. This only started happening recently, and I'm very unsure why, as it was working fine before. I suspect it has something to do with render queuing or my shader. My fake transparent object shadows seem to work fine on mobile, so I'm super confused.
Shader "TransparentDiffuse ZWrite" {
Properties{
_Color("Main Color", Color) = (1,1,1,1)
_MainTex("Base (RGB) Trans (A)", 2D) = "white" {}
}
SubShader{
Tags { "QUEUE" = "Transparent" "IGNOREPROJECTOR" = "false" "RenderType" = "Transparent" }
LOD 200
// extra pass that renders to depth buffer only
Pass {
ZWrite On
ColorMask 0
}
// paste in forward rendering passes from Transparent/Diffuse
UsePass "Transparent/Diffuse/FORWARD"
}
Fallback "Transparent/VertexLit"
}
transparency-working-1.png
(218.1 kB)
Comment
Your answer
Follow this Question
Related Questions
Transparent shader for Android 1 Answer
mobile shader transparency issue 0 Answers
URP – Order Independent Transparency 0 Answers
Unity 5 standard shader transparency not working on mobile 1 Answer
ZWrite only for the object itself 0 Answers