aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
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