This assignment took more time than I expected mainly because I had to restructure a lot of my code. I also had this problem when I couldn't get the index of some of fragment shader uniforms. Apparently, because I was not using them in the operations in my shader code.
Anyways, everything works now. Here is the code.
Download
Screenshots:
ViewDepth texture
Major changes:
- Added another deferred pass for the soft intersections effect.
- My system now supports multiple techniques.
Instructions:
- Move the sphere with soft intersections up and down using T and G.
- 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.
Anyways, everything works now. Here is the code.
Download
Screenshots:
ViewDepth texture
Major changes:
- Added another deferred pass for the soft intersections effect.
- My system now supports multiple techniques.
Instructions:
- Move the sphere with soft intersections up and down using T and G.
- 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.


No comments:
Post a Comment