Shader: Adding alpha

I have a shader material which I pulled from here: http://forum.unity3d.com/threads/31163-Atmospheric-Scattering-In-Unity-from-GPU-Gems-2, for atmospheric scattering. I am fairly new to shaders, and this is way over my head. I’m looking for a way to add an alpha layer/filter to this shader so that anything that is black, > an rgb of (20, 20, 20) is not rendered, transparent. Any shader guru’s out there with some advice?

P.S. - I’m looking to do this with the SkyFromAtmosphere shader.

2 Answers

2

Tags{“RenderType” = “Transparent”}

That is not enough. It's like pretending that a BMP image will have transparency if you save it as PNG. The link of the question no longer contains any working link, so here is my copy of the project: https://www.dropbox.com/s/d99beibmthmbgbf/GPU_GEMS_atmosphericScattering.zip?dl=0

Replace:

Tags { "RenderType"="Transparent" }

By:

Tags { "Queue"="Transparent" "RenderType"="Transparent" }
Blend One One