From d75ae8398e320aeaddba13c3d44d694d075bb84b Mon Sep 17 00:00:00 2001 From: Yann Herklotz Grave Date: Thu, 28 Mar 2019 18:04:34 +0000 Subject: Add readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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/) -- cgit