Dynamic Gradient BG Shader

The "FourColorDynamicGradient" shader is a versatile and highly customizable tool. This shader allows developers to create visually captivating gradient backgrounds with up to four different colors. With the ability to animate these gradients, you can breathe life into your project, creating dynamic backgrounds that enhance the visual appeal of your game or app.


Suitable for any genre, this shader can be used as a Skybox to provide a vibrant backdrop to your 3D environment or as a standard mesh material, providing you with a unique way to color and animate your flat models. The gradient effect can be customized in terms of color, blend factor, speed, and movement, ensuring that you have full control over how your gradient appears and behaves.


✔️ Compatibility:

• Universal Render Pipeline (URP), Built-in RP

• Android/iOS, PC, macOS, Xbox, Playstation, Nintendo Switch and WebGL 2.0

• DirectX, Metal, Vulkan and OpenGL (3.0+).

• Unity 2020, 2021, 2022, 2023


⚡ Performance:

Hand-written for maximum performance and flexibility.


The package includes a shader code along with a custom inspector for easy use and a 'DemoScene' showcasing different presets of the shader, giving you a head start in setting up your gradients.


The properties of the shader are fully customizable, with four color inputs for the gradient, adjustable blend factors, control over the speed and range of movement of the color sources, initial positions for the color sources, and a background color. You can also enable or disable the animation as needed.


In conclusion, the "FourColorDynamicGradient" shader is an asset that can add color, dynamism, and aesthetic appeal to your Unity projects.