mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
Blocks atlas is auto-assembling now
This commit is contained in:
parent
ea5c117652
commit
fb8d220cca
41 changed files with 622 additions and 75 deletions
|
|
@ -18,8 +18,8 @@ class Block {
|
|||
public:
|
||||
std::string const name;
|
||||
unsigned int id;
|
||||
// 0 1 2 3 4 5
|
||||
int textureFaces[6]; // -x,x, -y,y, -z,z
|
||||
// 0 1 2 3 4 5
|
||||
std::string textureFaces[6]; // -x,x, -y,y, -z,z
|
||||
unsigned char emission[3];
|
||||
unsigned char drawGroup = 0;
|
||||
BlockModel model = BlockModel::block;
|
||||
|
|
@ -31,7 +31,9 @@ public:
|
|||
bool rotatable = false;
|
||||
float hitboxScale = 1;
|
||||
|
||||
Block(std::string name, int texture);
|
||||
float uvdata[4*6];
|
||||
|
||||
Block(std::string name, std::string texture);
|
||||
};
|
||||
|
||||
#endif /* VOXELS_BLOCK_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue