Monday, February 29, 2016

Triforce Overload, Sierpinski Pyramids

Triforce Overload, Sierpinski Pyramids

By David Lettier

We defined the HTML canvas and WebGL context. The shaders were loaded and indexes to their variables were gathered. Camera controls were defined and event handling was set in place. The user can pitch and yaw the camera allowing them to look around the scene. Per frame, we rendered the Sierpinski Pyramids subdivided based on the user’s selection. For added realism, we used the Phong Reflection Model for lighting and employed attenuated fog.

No comments:

Post a Comment