commit | c0dea964913268bd64009e657635e617f3e0c21c | [log] [tgz] |
---|---|---|
author | Martin Storsjo <martin@martin.st> | Tue Aug 11 18:01:14 2009 +0200 |
committer | Mathias Agopian <mathias@google.com> | Tue Aug 25 18:35:54 2009 -0700 |
tree | 379fdde7e66d3b8ab88348e0b7138f1ab6ed5970 | |
parent | 4f31af9346b818c8ef05a63e15e9170a7c6131e4 [diff] |
Calculate specular lighting correctly Since the lighting calculations are done in object space, the vector from the object to the viewer also needs to be transformed to object space.