From 9fc2d19a7044519775031a31c584ef540a11b7d7 Mon Sep 17 00:00:00 2001 From: Brendan Kenny Date: Fri, 24 Oct 2014 19:49:32 -0700 Subject: [PATCH] credit rotation function --- test/common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common.js b/test/common.js index f981a88..1ba8fb7 100644 --- a/test/common.js +++ b/test/common.js @@ -163,6 +163,8 @@ exports.createPlaneRotation = function(normal) { } // arbitrary normal, hopefully not too near nz = -1 + // special case of vector-to-vector rotation matrix from Real-Time Rendering, + // Third Edition var denom = 1 + nz; var transform = [ nz + ny * ny / denom, -nx * ny / denom, -nx,