mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 06:17:59 -05:00
SwRasterizer: Corrected the light LUT lookups.
This commit is contained in:
@ -30,6 +30,11 @@ public:
|
||||
return {xyz * other.w + other.xyz * w + Cross(xyz, other.xyz),
|
||||
w * other.w - Dot(xyz, other.xyz)};
|
||||
}
|
||||
|
||||
Quaternion<T> Normalized() const {
|
||||
T length = std::sqrt(xyz.Length2() + w * w);
|
||||
return {xyz / length, w / length};
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
Reference in New Issue
Block a user