Skip to content

Commit fbfde73

Browse files
committed
change quaternion struct name to match what it will be
1 parent 8a6939f commit fbfde73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/nbl/builtin/hlsl/math/quaternions.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ namespace math
1515
{
1616

1717
template <typename T>
18-
struct quaternion_t
18+
struct quaternion
1919
{
20-
using this_t = quaternion_t<T>;
20+
using this_t = quaternion<T>;
2121
using scalar_type = T;
2222
using data_type = vector<T, 4>;
2323
using vector3_type = vector<T, 3>;

include/nbl/builtin/hlsl/sampling/spherical_triangle.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct SphericalTriangle
5151
{
5252
const scalar_type cosAngleAlongAC = ((v_ * q - u_ * p) * cos_vertices[0] - v_) / ((v_ * p + u_ * q) * sin_vertices[0]);
5353
if (nbl::hlsl::abs(cosAngleAlongAC) < 1.f)
54-
C_s += math::quaternion_t<scalar_type>::slerp_delta(tri.vertex0, tri.vertex2 * csc_b, cosAngleAlongAC);
54+
C_s += math::quaternion<scalar_type>::slerp_delta(tri.vertex0, tri.vertex2 * csc_b, cosAngleAlongAC);
5555
}
5656

5757
vector3_type retval = tri.vertex1;
@@ -61,7 +61,7 @@ struct SphericalTriangle
6161
{
6262
const scalar_type cosAngleAlongBC_s = nbl::hlsl::clamp(1.0 + cosBC_s * u.y - u.y, -1.f, 1.f);
6363
if (nbl::hlsl::abs(cosAngleAlongBC_s) < 1.f)
64-
retval += math::quaternion_t<scalar_type>::slerp_delta(tri.vertex1, C_s * csc_b_s, cosAngleAlongBC_s);
64+
retval += math::quaternion<scalar_type>::slerp_delta(tri.vertex1, C_s * csc_b_s, cosAngleAlongBC_s);
6565
}
6666
return retval;
6767
}

0 commit comments

Comments
 (0)