aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz Grave <git@yannherklotzgrave.com>2019-03-28 18:04:34 +0000
committerYann Herklotz Grave <git@yannherklotzgrave.com>2019-03-28 18:04:34 +0000
commitd75ae8398e320aeaddba13c3d44d694d075bb84b (patch)
treef7712fb103e85e7f96fabe366ba001fa0364f0f7
parentfcffa2e1bcd94ca2f6ddc52a886a6f0eba18caf0 (diff)
downloadmirror-ball-d75ae8398e320aeaddba13c3d44d694d075bb84b.tar.gz
mirror-ball-d75ae8398e320aeaddba13c3d44d694d075bb84b.zip
Add readme
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 63a631e..7d61e12 100644
--- a/README.md
+++ b/README.md
@@ -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/)