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: *2024: updated to unity 2021.3
https://assetstore.unity.com/packages/vfx/shaders/vertical-gradient-range-shader-11310?aid=1101lGti

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 Github Join Discord Twitch Instagram BlueSky

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.