From 3263c7e45efe7afc2e3ea9c361a2faa1e1de3661 Mon Sep 17 00:00:00 2001 From: allem Date: Thu, 7 Feb 2019 17:15:17 -0500 Subject: [PATCH] torus occlusion working --- main/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/main.cpp b/main/src/main.cpp index d44c95d..029f93c 100644 --- a/main/src/main.cpp +++ b/main/src/main.cpp @@ -52,8 +52,6 @@ struct State { std::vector verts_thin{}; std::vector inds_thin{}; - glm::mat4 rot = glm::identity(); - Unifs unifs; glm::vec4 hopf(float xi, float nu, float eta) { @@ -68,6 +66,8 @@ struct State { glm::vec3 stereo(float xi, float nu, float eta) { auto h = hopf(xi, nu, eta); + glm::mat4 rot = glm::identity(); + h = rot * h; return h.xyz() / (1 - h.w);