Sep
7
2013

Gradient Bar Range (shader)

gradient_bar_range_shader_unity_1

Tried to make something like this: http://forum.unity3d.com/threads/199297-Can-t-figure-this-gradient-material-thing-out

Its just a shader, which takes top bar and bottom bar world positions and then builds gradient between them..

AssetStore:
http://u3d.as/content/mgear/vertical-gradient-range-shader/5q3

Webplayer:
http://unitycoder.com/upload/demos/GradientBarRange1/

Feature requests:
– Sprites shader version
– Sample code to change the two colors
– feel free to post more ideas / requests..

Image#2: works with any shaped objects

gradient_bar_range_shader_unity_2<-click to view


1 Comment + Add Comment

  • I love your work im following your every blog post.

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch Instagram

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.