2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 04:27:42 +00:00

Initial fog volume rendering implementation

This commit is contained in:
Jack Andersen
2017-03-09 17:40:24 -10:00
parent 0f6ae9d217
commit 2d093b6d80
7 changed files with 151 additions and 13 deletions

View File

@@ -194,6 +194,7 @@ class CModel
std::unique_ptr<CBooModel> x28_modelInst;
CModel* x30_next = nullptr;
CModel* x34_prev = nullptr;
int x38_lastFrame;
/* urde addition: boo! */
boo::GraphicsDataToken m_gfxToken;
@@ -217,6 +218,7 @@ public:
CBooModel& GetInstance() {return *x28_modelInst;}
const CBooModel& GetInstance() const {return *x28_modelInst;}
std::unique_ptr<CBooModel> MakeNewInstance(int shaderIdx, int subInsts);
void UpdateLastFrame() const { const_cast<CModel&>(*this).x38_lastFrame = CGraphics::GetFrameCounter(); }
};
CFactoryFnReturn FModelFactory(const urde::SObjectTag& tag,