Apply fog only to some geometry?

   1921   0   0
User Avatar
Member
36 posts
Joined: 8月 2006
Offline
Hello,

I'm trying to apply a fog shader to only certain geometry. Is this possible? I created an atmosphere object and assigned a material to it with a fog shader, which works but it puts the fog effect on everything, which is not what I want.

I'm using this fog shader as a bit of a hack to effectively add another layer of surface shading to geo without altering the surface shader. Specifically, I'm trying to add impressionistic forests to a mountain. I'm using VEX Mountain shader for the mountain and a custom fog shader for the forest. I know this kind of layered shading can be done in VOPs or VEX, but I'm trying to add a layer of shading onto a precompiled surface shader without modifying the VEX code (too hard to asset-manage) or redoing it in VOPs. Anyone have any suggestions on how to do this?

Thanks in advance,

Jeremy.
  • Quick Links