I’ve been using a very simple shader for years to show a fake shadow for a ball on the floor. Recently, after a few major Unity upgrades, it has started rendering as white on iOS, instead of black. I’ve tried 6 other built in shaders and for some reason, I can’t render this simple shadow black any longer on iOS.
The Editor and Android continue to render it fine.
The image is a small grey circle with transparency. This seems like the easier thing in the world but I can’t get it to render black for the life of me.
The closest I’ve come is slightly black, but with a white circle around it.
How it looks on iOS:
How it looks (correctly) in Editor and Android:
The Shader I was using:
Shader "Sprite/Vertex Colored, Fast" {
Properties {
_MainTex ("Particle Texture", 2D) = "white" {}
}
Category {
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
Blend SrcAlpha OneMinusSrcAlpha
Cull Off Lighting Off ZWrite Off Fog { Color (0,0,0,0) }
BindChannels {
Bind "Color", color
Bind "Vertex", vertex
Bind "TexCoord", texcoord
}
SubShader {
Pass {
SetTexture [_MainTex] {
combine texture * primary
}
}
}
}
}
Other shaders in this image I’ve tried:
Standard/Fade
Mobile/Transparent/Vertex Color
Mobile/Particles/Alpha Blended
Mobile/Particles/VetexLit Blended
Unlit/Transparent