#Unity3d #GameDev
I am having a lot of fun learning how to write shaders in Unity. A while ago, I was working on a city builder game, but stopped when I couldn’t figure out how to draw a grid over a selected tile. Since then, I have looked briefly at shaders but always felt like they were difficult to learn, and there were not many detailed guides that I could find to help me learn them.
The other day I came across The Book of Shaders (https://thebookofshaders.com/) and that has really inspired me to learn how to work with shaders, they teach in a well-structured way, and that has helped my confidence. I also had a look at Shadertoy (https://www.shadertoy.com/) which also helps with practicing how to work with shaders.
These resources are not directly related to Unity, but shaders appear to be shaders no matter where you’re writing them. There are some subtle differences, but for the most part it’s all the same.
I hope you enjoy this video on how to write a grid shader in Unity, I tried to keep the pace up and add animations to keep the video interesting and engaging, I would appreciate any feedback you have in the comments.
The shader: https://github.com/Tvtig/GridShader