Program2
Program2 should be in your repos. Copy over your scene from program1 and animate your scene. You should use the vertex and fragment shaders to animate. You also need to create a new vertex attribute and use it to transform your scene somehow. Also create a new uniform and use it in your shaders.
Here's the example from class: main.cpp simple.vert simple.frag
Rubric
Send a uniform value to shader (in addition to time) | No extra uniform : 0 | Additional uniform : 1 |
Send vertex attribute to shader (in addition to position and color) | No extra attribute : 0 | Additional vertex attribute : 2 |
Transform based on uniforms | No uniform transform : 0 | At least one transform using uniform : 1 |
Transform based on vertex attribute | No attribute transform : 0 | At least one transform using vertex attribute : 1 |
Perform a transform in vertex shader | No transform : 0 | Transform in vertex shader : 1 |
Perform a transform in fragment shader | No transform : 0 | Transform in fragment shader : 1 |
Perform an animation in a shader | No animations : 0 | At least one animation : 1 |
Composition theme | No theme : 0 | Image of landscape, object, or other recognizable subject : 2 |