From 31728178d9d83de43cb1dfd9a1ff1f8cf568edd6 Mon Sep 17 00:00:00 2001 From: elijah-thomas774 Date: Sun, 23 Mar 2025 21:01:17 -0400 Subject: More PostEffect Progress --- src/egg/gfx/eggPostEffectBase.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/egg/gfx/eggPostEffectBase.cpp') diff --git a/src/egg/gfx/eggPostEffectBase.cpp b/src/egg/gfx/eggPostEffectBase.cpp index 2b2993d7..e7dbd1cb 100644 --- a/src/egg/gfx/eggPostEffectBase.cpp +++ b/src/egg/gfx/eggPostEffectBase.cpp @@ -122,8 +122,11 @@ void PostEffectBase::lerpColor(GXColor &out, const GXColor &c1, const GXColor &c } void PostEffectBase::getBaseTexMtx(nw4r::math::MTX34 *mtx) const { + // Feels wrong -> maybe an inline with rotation and pi + f32 rot = Math::pi(); f32 sin, cos; - nw4r::math::SinCosRad(&sin, &cos, mRotation * M_PI); + nw4r::math::SinCosRad(&sin, &cos, rot * mRotation); + f32 zero = 0.0f; f32 scale = 1.0f; f32 f8 = zero - 0.5f; -- cgit v1.2.3