This assignment was easy. It was repeating what we had learnt before. However it still confused me. How should I architect my program to draw 3D and then 2D nicely? How should the 2D pipeline look like?
I draw all my meshes in cMesh class. Drawing the 2D image here seems wrong. After discussing with Cody, I decided to do it in cScene. I was still unsure about the 2D pipeline, though. Shall I put everything I want to draw from the text file like the meshes or... Anyway, at the moment I hard coded it in my cScene. Both the post processing and the GUI using the same vertex buffer and vertex shader. To accommodate the GUI nicely, I did simple math calculation in the vertex shader to position the GUI as expected. This is the math calculation I did:
x = (i_position_world * g_size.x) + g_position.x;
y = (i_position_world * g_size.y) + g_position.y;
 |
| With vignetting post processing and the yellow flower GUI |