diff options
author | Yann Herklotz Grave <git@yannherklotzgrave.com> | 2019-03-28 18:04:34 +0000 |
---|---|---|
committer | Yann Herklotz Grave <git@yannherklotzgrave.com> | 2019-03-28 18:04:34 +0000 |
commit | d75ae8398e320aeaddba13c3d44d694d075bb84b (patch) | |
tree | f7712fb103e85e7f96fabe366ba001fa0364f0f7 | |
parent | fcffa2e1bcd94ca2f6ddc52a886a6f0eba18caf0 (diff) | |
download | mirror-ball-d75ae8398e320aeaddba13c3d44d694d075bb84b.tar.gz mirror-ball-d75ae8398e320aeaddba13c3d44d694d075bb84b.zip |
Add readme
-rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,17 @@ # mirror-ball +To use a latitude longitude map when lighting a sphere in the environment, the +reflection vector at every point on the sphere is used to get it's colour. As a +simplification, the sphere is assumed to be a perfect mirror, so that one +reflection vector is enough to get the right colour. + +The latitude longitude map was created by taking a photo of a mirror ball and +mapping the spherical coordinates to a rectangle. + +![latlong map](/data/urbanEM_latlong.png) + +## Building and run + To compile and run, one has to first download [stack](https://docs.haskellstack.org/en/stable/README/) |