Add CProjectedShadow

Former-commit-id: 4aa8843cf5
This commit is contained in:
Henrique Gemignani Passos Lima
2022-12-12 22:15:33 -03:00
parent a04aa56a8a
commit 6db1cf03c6
4 changed files with 23 additions and 12 deletions

View File

@@ -4,21 +4,32 @@
#include "Kyoto/Graphics/CTexture.hpp"
#include "Kyoto/Math/CAABox.hpp"
class CStateManager;
class CModelData;
class SShadowDrawContext;
class CProjectedShadow {
public:
CProjectedShadow(int, int, uchar);
~CProjectedShadow();
void Render(const CStateManager&);
void RenderShadowBuffer(CStateManager&, const CModelData&, const CTransform4f&, int,
const CVector3f&, float, float);
void SetOpacity(float opacity) { x98_opacity = opacity; }
CAABox sub_8029e214();
void sub_8029dc98();
void sub_8029d6c8();
static void ModelDrawCallback(const float*, const float*, const SShadowDrawContext*);
private:
CTexture x0_texture;
CAABox x68_;
bool x80_;
bool x81_persistent;
uchar x81_persistent;
float x84_;
CVector3f x88_;
float x94_zDistanceAdjust;