Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in lunar eclipse rendering
The function 'computeModelMatrix' was returning the wrong matrix, because the transformations chain applied the local rotation before the parent body translations. This resulted in the Earth and Sun position used in the shadow computation to be rotated from the center of the Moon, making the shadow looks like it was seen from an observer outside of Earth. I commit this even though we should test a bit more, because a lunar eclipse is coming.
- Loading branch information