WEEK 2: Homework

First gradient made using basic (mix) function. Mix changes based on mouse movement.
First gradient made using basic (mix) function. Mix changes based on mouse movement.

From this shader I learned mostly how to do basic tasks and better understand what exactly I am working with and what my tools are. I would like to experiment further with the potential of changing things based on my keyboard or other inputs beyond my mouse.

CODE: Shader 1

Shader made by focusing on altering hsb values.
Shader made by focusing on altering hsb values.

This shader was a lot more complicated. I wanted to have animation as well as mouse input to play around with whilst time being involved. In order to create the effect I mostly just played around with graphtoy and learned a lot about how shapes, colour mixing and overlap will alter based on the equation. I found the results of tan sin and cos, particularly together, to be very interesting. I have experimented with some that were a bit more complex than my result but I found this to be the nicest look  overall from my research.
To change the colours I altered a little the equation from class that changes rgb to the hsb work space.

CODE : Shader 2

Leave a Reply

Your email address will not be published. Required fields are marked *