metaforce/Runtime/World/CWorldShadow.hpp

36 lines
989 B
C++
Raw Normal View History

#ifndef __URDE_CWORLDSHADOW_HPP__
#define __URDE_CWORLDSHADOW_HPP__
#include "RetroTypes.hpp"
2017-08-31 02:42:37 +00:00
#include "zeus/CAABox.hpp"
#include "Graphics/Shaders/CWorldShadowShader.hpp"
namespace urde
{
2017-08-31 02:42:37 +00:00
class CStateManager;
class CWorldShadow
{
CWorldShadowShader m_shader;
zeus::CTransform x4_view;
zeus::CTransform x34_model;
float x64_objHalfExtent = 1.f;
zeus::CVector3f x68_objPos = {0.f, 1.f, 0.f};
zeus::CVector3f x74_lightPos;
TAreaId x80_aid;
s32 x84_lightIdx = -1;
bool x88_blurReset = true;
zeus::CMatrix4f m_shadowViewProj;
public:
CWorldShadow(u32 w, u32 h, bool rgba8);
2017-08-31 02:42:37 +00:00
void EnableModelProjectedShadow(const zeus::CTransform& pos, s32 lightIdx, float f1);
void DisableModelProjectedShadow();
void BuildLightShadowTexture(const CStateManager& mgr, TAreaId aid, s32 lightIdx,
const zeus::CAABox& aabb, bool motionBlur, bool lighten);
2017-08-31 02:42:37 +00:00
void ResetBlur();
};
}
#endif // __URDE_CWORLDSHADOW_HPP__