Post Effect Progress. PostEffectBlurGather OK

This commit is contained in:
elijah-thomas774
2025-03-23 11:56:25 -04:00
parent da9155aa5f
commit 115d0d7065
14 changed files with 131 additions and 111 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef EGG_DRAW_PATH_BLOOM_H
#define EGG_DRAW_PATH_BLOOM_H
#include "egg/gfx/eggDrawPathBase.h"
namespace EGG {
class DrawPathBloom : public DrawPathBase {
public:
virtual ~DrawPathBloom();
virtual u16 getNumStep() const override {
return 3;
}
private:
};
} // namespace EGG
#endif
-6
View File
@@ -1,6 +0,0 @@
#ifndef EGG_DRAW_PATH_UNK1_H
#define EGG_DRAW_PATH_UNK1_H
namespace EGG {} // namespace EGG
#endif
+40
View File
@@ -0,0 +1,40 @@
#ifndef EGG_POST_EFFECT_BLUR_GATHER_H
#define EGG_POST_EFFECT_BLUR_GATHER_H
#include "common.h"
#include "egg/gfx/eggCpuTexture.h"
#include "egg/gfx/eggDrawGX.h"
#include "egg/gfx/eggPostEffectBase.h"
#include "rvl/GX/GXTypes.h"
namespace EGG {
class PostEffectBlurGather : public PostEffectBase {
// Size 0x18
struct BlurGatherData {
void reset() {
mpCapTexture = nullptr;
mColor = DrawGX::WHITE;
mColorScale = 1.f;
field_0x10 = 0;
}
/* 0x00 */ EGG::CpuTexture *mpCapTexture;
/* 0x04 */ GXTexMapID mTexMapId;
/* 0x08 */ GXColor mColor;
/* 0x0C */ f32 mColorScale;
/* 0x10 */ u8 field_0x10;
};
public:
PostEffectBlurGather();
virtual void setMaterialInternal() override;
/* 0x2C */ u8 field_0x2C;
/* 0x2D */ u8 field_0x2D;
/* 0x30 */ f32 field_0x30;
/* 0x34 */ BlurGatherData mBlurGatherData[3];
};
} // namespace EGG
#endif
-31
View File
@@ -1,31 +0,0 @@
#ifndef EGG_POST_EFFECT_UNK1_H
#define EGG_POST_EFFECT_UNK1_H
#include "egg/gfx/eggCpuTexture.h"
#include "egg/gfx/eggPostEffectBase.h"
#include "rvl/GX/GXTypes.h"
namespace EGG {
class PostEffectUnk1 : public PostEffectBase {
// Size 0x18
struct Stage {
/* 0x00 */ EGG::CpuTexture *field_0x00;
/* 0x04 */ GXTexMapID mTexMapId;
/* 0x08 */ GXColor field_0x08;
/* 0x0C */ f32 field_0x0C;
/* 0x10 */ u8 field_0x10;
};
public:
PostEffectUnk1();
virtual void setMaterialInternal() override;
/* 0x2C */ u8 field_0x2C;
/* 0x2D */ u8 field_0x2D;
/* 0x30 */ f32 field_0x30;
/* 0x34 */ Stage field_0x34[3];
};
} // namespace EGG
#endif
+3 -3
View File
@@ -3,6 +3,7 @@
#include "egg/egg_types.h"
#include "egg/gfx/eggPostEffectBase.h"
#include "egg/math/eggVector.h"
namespace EGG {
@@ -14,13 +15,12 @@ public:
virtual void setMaterialInternal() override;
private:
/* 0x2C */ s32 field_0x2C;
/* 0x2C */ u32 field_0x2C;
/* 0x30 */ u32 field_0x30;
/* 0x34 */ u8 field_0x34;
/* 0x35 */ u8 field_0x35;
/* 0x36 */ s16 field_0x36;
/* 0x38 */ f32 field_0x38;
/* 0x3C */ f32 field_0x3C;
/* 0x38 */ Vector2f field_0x38;
/* 0x40 */ f32 field_0x40;
/* 0x44 */ f32 field_0x44;
/* 0x48 */ f32 field_0x48;
+1
View File
@@ -3,6 +3,7 @@
#include "common.h"
#include "egg/math/eggMath.h"
#include "nw4r/math/math_triangular.h"
#include "nw4r/math.h"