Michael Stokes

Shader Tests


I decided a few days ago to try to make some interesting shaders using HLSL in Unity. I went through a lot of documentation and while searching found a series by Freya Holmér on the subject, which was incredibly detailed and really helped me wrap my head around a lot of the concepts.

I’ve already made a number of shaders including:

A simple sine wave shader which effects the colour and geometry of a plane.

Wave shader image

A game checkpoint style shader.

Checkpoint shader image

A basic lit shader, with diffuse and specular lighting, including colour.

Lit shader image

A gradient hair shader, with the gradient being dependant on world rotation rather than model rotation, to produce an interesting effect.

Hair shader image