This assignment was really cool, I was always interested in implementing transparency and I had no idea it would be so easy.
I did not have to make any major changes to my project which was awesome, because I was already storing RGBA values for everything since Assignment 2.
Here's the assignment. Everything works.
Changes:
- Added a bunch of new fragment shaders, effects and materials for different kinds of transparency.
- Changed the format of the .effect file to add support for render state.
- Changed the format of the .material file to hold the object's uniform alpha value.
- Added two entity lists for opaque and translucent entities.
- Added a new sorting algorithm for sorting translucent entities based on their distance from the camera.
Controls are the same:
- Move the light in the x and y plane using W,A,S,D
- Move the light forward and backward using R,F
- Move the camera using the arrow keys.
Screenshot
PIX Screenshots



No comments:
Post a Comment