Week 2 Homework Cam Saunders

Gradient #1: This week, using the float(), smoothstep() and mix() functions I was able to create an interesting blend of Vec3 colors in a parabolic state through defining PI and the sin function which allowed me to play with the parameters of where the gradients occurred and mixed with one another. I think this would be a really cool shader to try and animate utilizing u_time which I plan to use more often in order to bring my shaders to life.

mixed-gradient-shader

Code:

Leave a Reply

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