Programming models and shaders II

April 02 , 2006 Posted by Ana Nikoloska

The assigment was to create our own template that would mix two colors under some mathematical rule. The examples that I am showing are with very crisp edges between the two colors but there are ways to interpoate that

My first template can mix two colors in a sine way. Depending on the amplitude, and the frequency that the user selects. It can also mix them horizontaly and verticaly based on the users wishes. And if the user wants the sine function may not be a sine wave but quadratic pulses.

I also have another shader. I still have ideas of improving this shader, but what it can do now is create consecutive concentric circles depending on the frequency (which tells you how many concentric rigs there should be and amplitude, the parameter that controlls how many consecutive circles there should be. The improvement that I am planning to work on is to make the half circles repeat on y (i.e t ) value of the texture with a circle offset, so at the end I could get a fish skin shader and also to make it flip on s or t (I havent' implemented that yet too)

I have also another solution for the spiral slim template, but this is still a little buggish (there are some areas of the texture where the value is not assigned)

No comments | Leave a comment