Webcam Shaders

Hello all! Welcome to the Webcam Shader Workshop page!

Taught by: Char Stiles ( @charstiles

Brought to you by: CODAME ( @codame

Take the first steps to wielding the power of shader code by shading your webcam feed. The shader language we are using is GLSL is the OpenGL Shading Language, a C-like programming language that allows you to to code powerful graphics programs directly on your computer’s graphics card. In this workshop, you’ll learn how to livecode GLSL shaders using an online software. Livecoding is a method of programming in which one’s changes to the code are realized immediately and in real-time. This is an ideal way to create realtime graphics.

No programming experience required, but recommended.


11:00 – 11:15 PDT, 2:00 – 2:15 EDT (15 min) Introduction.

11:15 – 12:00 PDT, 2:45 – 3:00 EDT (45 min) We will go through the check points together (see below)

12:00 – 12:30 PDT, 3:00 – 3:30 EDT (30 min) break off into groups for workshopping time.

12:30 – 12:45 PDT, 3:30 – 3:45 EDT (15 min) Those who wish can show their music visualizer.

12:45 – 1:00 PDT, 3:45 – 4:00 EDT (15 min)  I will take questions and present my 4 tips and some steps going forward to learn more about shader coding.


👋 The Force by Shawn Lawson the editor we are using:

🎞 Link to my presentation slides:

🌈 CODAME Slides for the exact code we wrote in one nice page that also has link to the form to upload your shader and the feedback form:

🖼 UPLOAD your shader for the gallery (it’s also in the CODAME slides up there but I thought I’d link it here again 🙂


🧰 Here you can find the glsl sticker sheet

🧮 Here is an online graphing calculator, very helpful when writing shaders:

🎨 Here is the cosPalette function graphed out:


Checkpoint 0: Fundamental

Here we will learn about coordinates, color channels:

Checkpoint 1: CosPalette

Here we will learn about mixing and cosinePalette

Checkpoint 1: Backbuffer

Here we will learn the backbuffer and offsetting coordinates.

Checkpoint 2: Final!

(its okay if we just get up to here):

Checkpoint 3: Final Bonus

This is the last checkpoint. Here we learn about the snoise function and offset some more :


This is the shader that I made for the promo (the hand video in the slides):

Next Steps

These are some specific suggestions from me if you want to continue learning but don’t know how to start.

Learn the maths from The Book of Shaders
** If you haven’t looked at this already, look through it! Its wonderfully paced and has a lot of versatile useful information:

More online math


Learn more about GLSL shader functions:


Learn more math that is relevant from an awesome youtube channel 


Some easing functions if sin & cos get boring 🙂