mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Add debug mode that shows mesh buffer bounding boxes
This commit is contained in:
@@ -179,6 +179,11 @@ public:
|
||||
//! Set current render time.
|
||||
void setCurrentRenderPass(E_SCENE_NODE_RENDER_PASS nextPass) override { CurrentRenderPass = nextPass; }
|
||||
|
||||
void setGlobalDebugData(u16 setBits, u16 unsetBits) override {
|
||||
DebugDataMask = ~unsetBits;
|
||||
DebugDataBits = setBits;
|
||||
}
|
||||
|
||||
//! returns if node is culled
|
||||
bool isCulled(const ISceneNode *node) const override;
|
||||
|
||||
@@ -268,6 +273,9 @@ private:
|
||||
//! Mesh cache
|
||||
IMeshCache *MeshCache;
|
||||
|
||||
//! Global debug render state
|
||||
u16 DebugDataMask = 0, DebugDataBits = 0;
|
||||
|
||||
E_SCENE_NODE_RENDER_PASS CurrentRenderPass;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user