fix caves issues & add block 'surface-replacement' property

This commit is contained in:
MihailRis
2024-10-08 22:37:41 +03:00
parent c022e11c3b
commit b4578cfb87
7 changed files with 115 additions and 18 deletions
+2 -2
View File
@@ -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