Program2
Find a partner and combine your Program1 scenes into a new scene in Program2. Then, 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. This assignment is due end of day Tuesday. If you do the extra credit, be aware I'm not going to try all the keys: use the arrow keys or the mouse events so I don't miss your cool interaction.
Here's the example from class: main.cpp simple.vert simple.frag
Rubric:
Send a uniform value to shader (in addition to time) | 0: No extra uniform | 1: Additional uniform |
Send vertex attribute to shader (in addition to position and color) | 0: No extra attribute | 2: Additional vertex attribute |
Transform based on uniforms | 0: No uniform transform | 2: At least one transform using uniform |
Transform based on vertex attribute | 0: No attribute transform | 2: At least one transform using vertex attribute |
Perform a transform in vertex shader | 0: No transform | 1: Transform in vertex shader |
Perform a transform in fragment shader | 0: No transform | 1: Transform in fragment shader |
Perform an animation in a shader | 0: No animations | 1: At least one animation |
Extra: Event controls transform | 0: No events | 1: Event controls transform |