top of page

Shaders

ToonShader1.0.png

Figure 1

ToonShader1.2.png

Figure 3

ToonShader1.1.png

Figure 2

ToonShader1.4.png

Figure 4

Toon shader

​

This was a 2-week project where I explored how to code a shader myself. I chose a pretty straightforward shader to start with, which was a toon shader (Figure 1). After some tutorials and researching, I had a pretty good grasp of the basics of writing shaders. So once the toon shader was finished I started experimenting on it. I myself am not too fond of toon shaders' hard edges, so I experimented to get a small lerp between the hard edges, but small enough so you can still see the edges (Figure 2).
Afterward, I just tried some other things like giving the whole object a gradient together with the hard-edged toon shader (Figure 3), and also with the softer-edged toon shader (Figure 4).

Since I've got normal lighting under control (except for shadows), I implemented normal mapping as the final addition (Figure 5). 

​

The final result I was very happy with, was a unique style of shading, and I got to know the basics of shaders.

 

unknown (9).png

Figure 5

Miscellaneous Shaders

All projects here are made in a shader graph which unity provides, and are either used in some projects or worked on them in my personal free time.

 

ezgif.com-gif-maker (3).gif
ezgif.com-gif-maker.gif
bottom of page