commit | e03eaa1551a644e9a13c327d16cc09bfd7649d78 | [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 | b38dd00e41613f1a80e22d6e403d21b7d6fec136 | |
parent | d914215edf600f811f7ad8cad2eab9049cf859a4 [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.