Precompute perspective * projection for the cubes.
[mandelwow.git] / shaded_cube.rs
index ee31e5c34831789b2978f9dd12afb4276b690f78..240ddbf75d336fd4a6669761f288a8be7f27a640 100644 (file)
@@ -25,10 +25,10 @@ pub struct ShadedCube<'a> {
 impl<'a> ShadedCube<'a> {
     pub fn new(display: &Display, c: &Cube, program: &'a Program) -> ShadedCube<'a> {
         //      x--->
-        //      4 ──────┐ 5   
+        //      4 ──────┐ 5
         //      ╱┆     ╱│
         //   0 ┌─────┐1 │
-        // y   │ 7+┄┄│┄┄+ 6 
+        // y   │ 7+┄┄│┄┄+ 6
         // |   │╱    │ ╱   /
         // v   └─────┘    z
         //    3       2