I want my 3d text objects to be affected by the fog bug its not happening.
I've found a work around but I'm not pleased with it. is there a setting I'm missing or some way to make 3d text easily affected by fog (or get dimmer the farther away I get from it?)
Here's the shader I'm using (its custom made):
Shader "GUI/3D Text Shader" {
Properties {
_MainTex ("Font Texture", 2D) = "white" {}
_Color ("Text Color", Color) = (1,1,1,1)
}
SubShader {
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
Lighting Off Cull Off ZWrite On Fog { Mode Off }
Blend SrcAlpha OneMinusSrcAlpha
Pass {
Color [_Color]
SetTexture [_MainTex] {
combine primary, texture * primary
}
}
}
}
Ps I tried to change the "liting off culling off zwrite on fog {mode off}" to "...{mode on}" but that just made it not work at all.
Also, I found this code:
Fog { Color [_AddFog] }
I added it in under Tags and it didn't give an error, but it didn't change anything.