A Static Glowing Ring - Ripple Shader - Part 1 @WorldOfZeroDevelopment
A Static Glowing Ring - Ripple Shader - Part 1  @WorldOfZeroDevelopment
Uploaded July 2018 | Updated November 2026, 3 hours ago
Lets make a new shader in Unity that sends a ripple out across an object to reveal the texture underneath it! We'll get to play with some basic geometry and look at how to add an exponential smoothing function to a linear curve to get a better looking falloff on our rings glow. We'll explore a few different styles including an expanding circle, sphere and ring (eventually settling on the ring).

The approach for developing this is taken in two parts. First we build a simple detector that can detect when something is inside or outside of a circle. The formula for this is (distance greater than radius) to detect if a point is outside the circle. The second step is to take the point where distance == radius and create two equa-distant rings on either side. The distance between these two rings should be equal to the intended width of the ripple we want to create (each ripple width / 2 from the middle point). Once we have that we can build a function that works so that the edges closest to these boundaries are 0 and the points near the center ring are equal to 1. This will give us a gradient falloff we can use to create a smooth pulsing ripple effect.

We also briefly touch on the swizzle operator when working with vectors in a shader and how you can use it to transform a vector easily in shader languages in this video.

In the past we've worked on a lot of different circle based shaders including a similar ripple technique when building the [shield shader](youtube.com/watch?v=NeZcAYJdkv4&list=PLEwYhelKHmihp8GNb-XXWE5VhqikYwluj&index=1) in an earlier video series. You can accomplish a lot with basic distance formula to create a number of very cool effects!

If you have suggestions for how we could improve this shader or ideas on what we should do with it next let me know in the comments!

Join the World of Zero Discord channel: discord.gg/hU5Kq2u
A Static Glowing Ring - Ripple Shader - Part 1Dependency Injection in SpringInline Initializing C# Lists - Quick TipRecreating Particle Effects with Game Objects in Unity 3DBuilding a Custom Node in Unitys Shader GraphRuntime C# Scripting in Unity UI - The Roslyn Compiler in UnityUsing ContextMenu and ContextMenuItem in Unity 3DSwinging with the Asteroids VR Grappling Hook - Part 2Using Bash .bashrc and .profile Files to Initialize Your TerminalBuilding a Custom Dice Model with OpenSCADSpherical Gravity in UnityRotating the Flight Controller - Lets Make a Side Scrolling Shooter - Part 2
World of Zero |

A Static Glowing Ring - Ripple Shader - Part 1

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER