Skip to content

Instantly share code, notes, and snippets.

@KumoKairo
Created August 11, 2017 15:03
Show Gist options
  • Save KumoKairo/3f125ccff53beba8e11aa93a6818b909 to your computer and use it in GitHub Desktop.
Save KumoKairo/3f125ccff53beba8e11aa93a6818b909 to your computer and use it in GitHub Desktop.
half4 frag(v2f i) : COLOR
{
half p = i.texcoord.y;
// Moving [-1, 1] range to [0, 1]
half normP = p * 0.5 + 0.5;
half3 color = lerp(_GroundColor,_SkyTint, p);;
return half4(color, 1.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment