2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-01-04 04:08:30 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/World/CActor.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2017-01-04 04:08:30 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2017-01-04 04:08:30 +00:00
|
|
|
class CProjectedShadow;
|
2019-09-23 19:00:23 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CScriptShadowProjector : public CActor {
|
|
|
|
float xe8_scale;
|
|
|
|
zeus::CVector3f xec_offset;
|
|
|
|
float xf8_zOffsetAdjust;
|
|
|
|
float xfc_opacity;
|
|
|
|
float x100_opacityRecip;
|
|
|
|
TUniqueId x104_target;
|
|
|
|
std::unique_ptr<CProjectedShadow> x108_projectedShadow;
|
|
|
|
u32 x10c_textureSize;
|
2020-04-11 05:50:10 +00:00
|
|
|
bool x110_24_persistent : 1;
|
2020-04-20 04:57:50 +00:00
|
|
|
bool x110_25_shadowInvalidated : 1 = false;
|
2017-01-04 04:08:30 +00:00
|
|
|
|
|
|
|
public:
|
2021-05-26 14:00:57 +00:00
|
|
|
DEFINE_ENTITY
|
2018-12-08 05:30:43 +00:00
|
|
|
CScriptShadowProjector(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, bool,
|
|
|
|
const zeus::CVector3f&, bool, float, float, float, float, s32);
|
2017-01-04 04:08:30 +00:00
|
|
|
|
2019-08-09 12:45:18 +00:00
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void Think(float, CStateManager&) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
|
|
|
void PreRender(CStateManager&, const zeus::CFrustum&) override;
|
2020-04-05 11:54:02 +00:00
|
|
|
void AddToRenderer(const zeus::CFrustum&, CStateManager&) override {}
|
2018-12-08 05:30:43 +00:00
|
|
|
void CreateProjectedShadow();
|
2017-01-04 04:08:30 +00:00
|
|
|
};
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|