Notes for Wednesday February 10 class -- Fragment shaders

Fragment shaders!

We looked at a simple WebGL framework for writing fragment shaders. The code we started with, packaged as a zip file, is HERE

There are lots of functions you can call in your fragment shader, in addition to the sin(), cos(), max() and sqrt() functions I showed in class.

HERE is a quick reference to all of the things you can call. Look especially at the list of Built-in Functions.

Homework

Due next Wednesday before the start of class

NOTE: You do not need to email your homework. You just need to post your homework to the website that you use for this course.

Replace the simple fragment shader from my example with something exciting, visually interesting, thought provoking and/or aesthetically pleasing.

Have fun with this assignment. Go crazy with it. Create something wild and original. Don't hold back!