File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,11 @@ static float3x3 fastApproximateTBN(float3 normal) noexcept // Branchless ONB (Du
6464}
6565
6666static 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 ?
You can’t perform that action at this time.
0 commit comments