From ad8286c447f8c81339b896dc46dd10419296c2a6 Mon Sep 17 00:00:00 2001 From: aoki1980taichi Date: Fri, 24 Jun 2022 06:26:58 +0900 Subject: [PATCH] fix typo otherBasis -> orthoBasis The original function name in ao.c was orthoBasis. I guess the function is generating orthonormal basis (https://en.wikipedia.org/wiki/Orthonormal_basis). --- benchmark/bm_ao_render.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/bm_ao_render.rb b/benchmark/bm_ao_render.rb index af9169747..e1d2565a8 100644 --- a/benchmark/bm_ao_render.rb +++ b/benchmark/bm_ao_render.rb @@ -179,7 +179,7 @@ def clamp(f) i.to_i end -def otherBasis(basis, n) +def orthoBasis(basis, n) basis[2] = Vec.new(n.x, n.y, n.z) basis[1] = Vec.new(0.0, 0.0, 0.0) @@ -211,7 +211,7 @@ class Scene def ambient_occlusion(isect) basis = Array.new(3) - otherBasis(basis, isect.n) + orthoBasis(basis, isect.n) ntheta = NAO_SAMPLES nphi = NAO_SAMPLES