mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
feat: new block custom models implementation (WIP)
This commit is contained in:
parent
c95c97430a
commit
5e0bcf8ec0
14 changed files with 189 additions and 149 deletions
|
|
@ -2,10 +2,12 @@
|
|||
|
||||
#include "graphics/commons/Model.hpp"
|
||||
#include "maths/aabb.hpp"
|
||||
#include "data/dv.hpp"
|
||||
|
||||
struct ItemDef;
|
||||
class Assets;
|
||||
class Content;
|
||||
struct Block;
|
||||
|
||||
class ModelsGenerator {
|
||||
public:
|
||||
|
|
@ -20,4 +22,8 @@ public:
|
|||
const std::vector<glm::vec3>& points,
|
||||
bool lighting
|
||||
);
|
||||
|
||||
static model::Model loadCustomBlockModel(
|
||||
const dv::value& primitives, const Assets& assets, bool lighting
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue