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).
This commit is contained in:
aoki1980taichi
2022-06-24 06:26:58 +09:00
committed by GitHub
parent 92be161b1f
commit ad8286c447
+2 -2
View File
@@ -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