Add CWorldShadow

Former-commit-id: 552dc65a2c
This commit is contained in:
Henrique Gemignani Passos Lima
2022-12-01 18:11:09 +02:00
parent a4f3f0c5fc
commit 90f941ccb6
18 changed files with 299 additions and 30 deletions

View File

@@ -9,6 +9,8 @@
#include "rstl/single_ptr.hpp"
class CTexture;
class CStateManager;
class CAABox;
class CWorldShadow {
rstl::single_ptr< CTexture > x0_texture;
@@ -25,8 +27,8 @@ public:
CWorldShadow(uint w, uint h, bool rgba8);
~CWorldShadow();
void EnableModelProjectedShadow(const CTransform4f& pos, uint lightIdx, float f1);
void DisableModelProjectedShadow();
void EnableModelProjectedShadow(const CTransform4f& pos, uint lightIdx, float f1) const;
void DisableModelProjectedShadow() const;
void BuildLightShadowTexture(const CStateManager& mgr, TAreaId aid, uint lightIdx,
const CAABox& aabb, bool motionBlur, bool lighten);
void ResetBlur();