18
2020
Shader: Color Cycling
Color Cycling Shader test, because.
Shader Source:
https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Shaders/2D/Effects/ColorCycle.shader
![](https://i0.wp.com/unitycoder.com/blog/wp-content/uploads/2020/03/color_cycling.gif?resize=130%2C128&ssl=1)
![](https://i0.wp.com/unitycoder.com/blog/wp-content/uploads/2020/03/gradient-rainbow.png?resize=256%2C16&ssl=1)
![](https://i0.wp.com/unitycoder.com/blog/wp-content/uploads/2020/03/image-5.png?resize=398%2C267&ssl=1)
How it works?
Gray color value is used to pick color from the gradient, if gray texture pixel is 0.5, then you get that turquoise color from gradient texture.
![](https://i0.wp.com/unitycoder.com/blog/wp-content/uploads/2020/03/image-6.png?resize=512%2C128&ssl=1)
Related Posts
6 Comments + Add Comment
Leave a comment
Recent posts
- MotionVector Effect: Object “disappears” when paused
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
Recent Comments
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
Ooooh… Retro palette shifting could make a comeback!
I tried this but i only get red color even if i change the speed parameter. Don’t know why, but I want to use this shader a lot 🙁
if you assign this shader to default sphere,
with Default-Particle as grayscale texture,
and the gradient png from above, do you get this kind of image?
https://pasteboard.co/Jej6cDe.png
Thanks a lot for this. I actually used it for making some animated backgrounds like in Earthbound and had some pretty good results!
This is working and great! Thank you for making it! I did managed to expend upon this with a mask feature, because I couldn’t found one with a mask. So if anyone wants a masked version of this you can get it here: https://github.com/KarsaiTamas/Unity-Color-Cycle-shader-with-Mask/tree/main
thanks for sharing!