I'm restructuring everything I've done because when I implemented Phong shading everything kind of turned into an ugly blob mess. This post will be better when I finish doing that.
EDIT: I have determined this post is wonderful and needs no updating.
Known Problems
- The lighting on the floor (Polygon3D) looks off and I'm not sure if shadows are correctly cast onto it.
- The entire code structure is a complete mess; needs restructuring.
- Polygons and Spheres are one sided; if a light source is placed inside a Sphere or behind a Polygon its' light still reaches the other objects. I'm not sure if this is desirable or not.
Results
|
Basic Phong Shading. |
|
Extra. Two light sources. |
No comments:
Post a Comment