Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Fog questions

Discussion in 'Scripting' started by Sync1B, Apr 15, 2006.

  1. Sync1B

    Sync1B

    Joined:
    Sep 13, 2005
    Posts:
    561
    How do I use fog in a custom shader? The wiki page on it is unfinished... So do I do some thing like...

    Code (csharp):
    1.  
    2. Fog { Color [_MyColor]}
    3.  
    With that how do I set the fog's density? Also how do I get the info set in the render prefs to a shader?

    Thanks

    Bill

    ..oops, meant this in ShaderLab.