Shaders Demos

Examples of using shaders

Stripes: A Simple Shader Demo

in Shaders Demos

This is a demonstation of making a simple stripe shader. I start with a simple solid color stripes (with parameters) and then add anti-aliasing.

Not much commentary for now (I believe it is discussed in this in a video lecture).

The same fragment shader is used in all versions.

Read more…

Wood Shader

in Shaders Demos

This is a slightly more complex shader example. It doesn’t look great, but gives you a little more sense of the process. I’ll make world’s simplest procedural wood grain.

In a Q&A session for the 2023 class, the students asked me to make a procedural shader for wood. I sketched out the idea, but I didn’t actually write the code. (no time to live code, and I wasn’t set up for it).

Read more…