summaryrefslogtreecommitdiff
path: root/src/egg/gfx/eggPostEffectBase.cpp
diff options
context:
space:
mode:
authorelijah-thomas774 <elijahthomas774@gmail.com>2025-03-23 21:01:17 -0400
committerelijah-thomas774 <elijahthomas774@gmail.com>2025-03-23 21:01:17 -0400
commit31728178d9d83de43cb1dfd9a1ff1f8cf568edd6 (patch)
tree8a8c4afe12bffc167434a88388fb8bf88b462d2c /src/egg/gfx/eggPostEffectBase.cpp
parent3ef9b0df8b956bdb3f371ee118ef6dc881ea61e6 (diff)
More PostEffect Progress
Diffstat (limited to 'src/egg/gfx/eggPostEffectBase.cpp')
-rw-r--r--src/egg/gfx/eggPostEffectBase.cpp5
1 files changed, 4 insertions, 1 deletions
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<f32>::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;