mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
fix caves issues & add block 'surface-replacement' property
This commit is contained in:
parent
c022e11c3b
commit
b4578cfb87
7 changed files with 115 additions and 18 deletions
|
|
@ -74,8 +74,8 @@ namespace util {
|
|||
/// @note glm::distance2 does not support integer vectors
|
||||
inline int distance2(const glm::ivec3& a, const glm::ivec3& b) {
|
||||
return (b.x - a.x) * (b.x - a.x) +
|
||||
(b.y - a.y) * (b.y - a.y) +
|
||||
(b.z - a.z) * (b.z - a.z);
|
||||
(b.y - a.y) * (b.y - a.y) +
|
||||
(b.z - a.z) * (b.z - a.z);
|
||||
}
|
||||
|
||||
/// @return integer square of distance between two points
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue