Added deletion tracking so when we delete a probe, it'll delete the prefilter/irrad bakes if they exist.

WIP of static cubemap bake(not working).
This commit is contained in:
Areloch 2018-12-07 00:30:08 -06:00
parent 1766e291ba
commit 1fc38d496f
5 changed files with 106 additions and 78 deletions

View file

@ -200,6 +200,8 @@ public:
bool onAdd();
void onRemove();
virtual void deleteObject();
// Override this so that we can dirty the network flag when it is called
void setTransform(const MatrixF &mat);
@ -230,6 +232,8 @@ public:
bool createClientResources();
void generateTextures();
void processStaticCubemap();
// This is the function that allows this object to submit itself for rendering
void prepRenderImage(SceneRenderState *state);