Search Unity

How to Sample Horizon Color from Procedural Skybox Shader

Discussion in 'Shaders' started by Matthew Scott, Mar 21, 2015.

  1. Matthew Scott

    Matthew Scott

    Joined:
    Jan 16, 2013
    Posts:
    33
    Hi!,

    I'm trying to dynamically adjust fog colors as well as other colours in my scene to match what is happening at the horizon with Unity's Default Procedural Skybox.

    Somewhere in all that shader math must be a colour value I could sample from...and it seems that skyTint and groundColor have little to do with how the color ends up being for the most part.

    I'd like to request a little help here to point me in the right direction, or perhaps someone has an alternative method which they are using for this....
     
  2. backwheelbates

    backwheelbates

    Joined:
    Jan 14, 2014
    Posts:
    232
    Did you figure this out?