Variable Radius Circle Pixels -  Circle Pixel Shader - Part 4 @WorldOfZeroDevelopment
Variable Radius Circle Pixels -  Circle Pixel Shader - Part 4  @WorldOfZeroDevelopment
Uploaded June 2019 | Updated November 2026, 3 hours ago
In the last video we made our circular pixel shader work. It now draws a grid of different colored circles based on the input from the shaders texture. Now we're going to try to make this shader include have varying radius on each circular pixel based upon the alpha channel of the pixel we are sampling.

It turns out doing this is relatively straight-forward. We already have done the texture lookup and already have a circle shader that cuts off at some radius. To make this effect work all we need to do is combine the two so that the radius of our circle and the alpha channel are multiplied together. This means that an alpha of `0` results in a circle with a radius of `0` while an alpha of `1` will result in a circle with a radius of `0.5` (a diameter of `1.0` - the full width of our pixels).

I completely over estimated the amount of work this would take to implement. Turns out, it's a lot easier than I had planned for with the way we have designed things so far.

The code for this series is available on GitHub here: github.com/WorldOfZero/UnityVisualizations/tree/master/CirclePixels

Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Variable Radius Circle Pixels -  Circle Pixel Shader - Part 4Turning Circular Pixels Into Diamond PixelsGetting Started with LINQ in C#Live Coding Event Based GameObject Health in UnityExploring Top-Level Programs in C# 9Installing Nyancat using the .NET CLIHDRP Post Processing Volumes in UnityAn Appendable List with Operator OverloadingUsing .NET Interactive and Jupyter NotebooksDetecting Objects with Raycasts in Unity3DUsing Command Prompt to Create a Symbolic Link on WindowsBuilding GLSL Shaders in a Real Time Shader Editor - KodeLife
World of Zero |

Variable Radius Circle Pixels - Circle Pixel Shader - Part 4

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER