Skip to content

Commit 4cc0a06

Browse files
committed
Rename getTbnNormal
1 parent 37d8d84 commit 4cc0a06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/math/normal-mapping.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ static float3x3 fastApproximateTBN(float3 normal) noexcept // Branchless ONB (Du
6464
}
6565

6666
static f32x4x4 tbnToTangentSpace(f32x4x4 tbn) noexcept { return transpose3x3(tbn); }
67-
static f32x4 tbnGetTangent(f32x4x4 tbn) noexcept { return tbn[0]; }
68-
static f32x4 tbnGetBitangent(f32x4x4 tbn) noexcept { return tbn[1]; }
69-
static f32x4 tbnGetNormal(f32x4x4 tbn) noexcept { return tbn[2]; }
67+
static f32x4 getTbnTangent(f32x4x4 tbn) noexcept { return tbn[0]; }
68+
static f32x4 getTbnBitangent(f32x4x4 tbn) noexcept { return tbn[1]; }
69+
static f32x4 getTbnNormal(f32x4x4 tbn) noexcept { return tbn[2]; }
7070

71-
static float3 snapNormal(float3 normal) noexcept
71+
static float3 snapToAxis(float3 normal) noexcept
7272
{
7373
float3 a = abs(normal);
7474
return a.x > a.y && a.x > a.z ? float3(sign(normal.x), 0.0f, 0.0f) : (a.y > a.z ?

0 commit comments

Comments
 (0)