From fc9dbd4573ee2581c53bad5e7b29f2780e04d85a Mon Sep 17 00:00:00 2001 From: Yann Herklotz Grave Date: Thu, 28 Mar 2019 18:09:24 +0000 Subject: Add normals and reflect --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 7d61e12..1f2ff17 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,17 @@ mapping the spherical coordinates to a rectangle. ![latlong map](/data/urbanEM_latlong.png) +The first step is to calculate the normals at every pixel using the position and +size of the sphere. These can be visualised by setting the RGB to the XYZ of the +normal at the pixel. + +![normal map](/data/normal.png) + +The reflection vector can then be calculated and visualised in the same way, by +using the following formula: `r = 2 (n . v) n - v`. + +![reflection map](/data/reflect.png) + ## Building and run To compile and run, one has to first download -- cgit