2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-01-04 04:08:30 +00:00
|
|
|
|
|
|
|
#include "World/CActor.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CProjectedShadow;
|
|
|
|
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;
|
|
|
|
|
|
|
|
union {
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
bool x110_24_persistent : 1;
|
|
|
|
bool x110_25_shadowInvalidated : 1;
|
|
|
|
};
|
|
|
|
u8 x110_dummy = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
2017-11-13 06:19:18 +00:00
|
|
|
CScriptShadowProjector(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, bool,
|
2017-01-04 04:08:30 +00:00
|
|
|
const zeus::CVector3f&, bool, float, float, float, float, s32);
|
|
|
|
|
2017-01-15 03:07:01 +00:00
|
|
|
void Accept(IVisitor& visitor);
|
2017-01-04 04:08:30 +00:00
|
|
|
void Think(float, CStateManager &);
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager &);
|
2017-02-11 00:52:52 +00:00
|
|
|
void PreRender(CStateManager &, const zeus::CFrustum &);
|
2017-01-04 04:08:30 +00:00
|
|
|
void AddToRenderer(const zeus::CFrustum &, const CStateManager &) const {}
|
|
|
|
void CreateProjectedShadow();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|