Can anyone show me why my fog shader is not working when i plug the bottom part into my opacity channel? I am trying to use depth biased alpha but it is not working for me. Thanks for the[IMG]file:///C:/Documents%20and%20Settings/Damien/Desktop/Fog/brokenshader.jpg[/IMG] help..
Replies
Because you're using the RGB of that texture up top, it's giving you a float3 result the whole way down the chain.
Try changing it from RGB to R (it looks like a greyscale texture, so it shouldn't make a difference).
Ok I figured it out I think, I just used the red channel and plugged that in everywhere it needed. My second question now is that I am getting a hard edge on the material/mesh. What would be the best way to not have that hard edge?