ipetkov / IslandMysteryGame

Final project for CS 174A, Introduction to Computer Graphics, UCLA Fall 2014
http://ipetkov.github.io/IslandMysteryGame
MIT License
3 stars 2 forks source link

Normals on bottom half of tree crown are inverted #3

Open ipetkov opened 9 years ago

ipetkov commented 9 years ago

Trees aren't lit up properly. Sun (light) is positioned in the upper right of the screenshot below, but the bottom half of the tree crown is lit up on the left side.

screen shot 2014-11-27 at 12 11 54 pm

kevlu94 commented 9 years ago

I think the issue stems from the fact that the shape i used for the bottom of the tree has negative height. I predict this can be easily fixed when objects can be initialized as rotated, and I will initialize a rotated pyramid rather than a negative-height pyramid