mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
AABB blocks render fix
This commit is contained in:
parent
a65bd020f9
commit
8e7f6e2518
2 changed files with 55 additions and 30 deletions
|
|
@ -73,7 +73,8 @@ class BlocksRenderer {
|
|||
float width,
|
||||
float height,
|
||||
float depth,
|
||||
const UVRegion& region);
|
||||
const UVRegion& region,
|
||||
bool lights);
|
||||
|
||||
void face(const glm::vec3& coord, float w, float h,
|
||||
const glm::vec3& axisX,
|
||||
|
|
@ -86,12 +87,13 @@ class BlocksRenderer {
|
|||
void blockCube(int x, int y, int z, const UVRegion(&faces)[6], ubyte group);
|
||||
|
||||
void blockCubeShaded(int x, int y, int z, const UVRegion(&faces)[6], const Block* block, ubyte states);
|
||||
void blockCubeShaded(const glm::ivec3& coord,
|
||||
const glm::vec3& offset,
|
||||
const glm::vec3& size,
|
||||
const UVRegion(&faces)[6],
|
||||
const Block* block,
|
||||
ubyte rotation);
|
||||
void blockAABB(const glm::ivec3& coord,
|
||||
const glm::vec3& offset,
|
||||
const glm::vec3& size,
|
||||
const UVRegion(&faces)[6],
|
||||
const Block* block,
|
||||
ubyte rotation,
|
||||
bool lights);
|
||||
void blockXSprite(int x, int y, int z, const glm::vec3& size, const UVRegion& face1, const UVRegion& face2, float spread);
|
||||
|
||||
bool isOpenForLight(int x, int y, int z) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue