VOXELFORMAT: debug logging

master
Martin Gerhardy 2022-05-17 21:35:36 +02:00
parent fb0fa829fb
commit 40447a70b8
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ void MeshFormat::voxelizeTris(voxel::RawVolume *volume, const core::DynamicArray
typedef core::Map<glm::ivec3, PosSampling, 64, glm::hash<glm::ivec3>> PosMap;
PosMap posMap((int)subdivided.size() * 3);
Log::debug("subdivided into %i triangles", (int)subdivided.size());
for (const Tri &tri : subdivided) {
const glm::vec2 &uv = tri.centerUV();
const core::RGBA rgba = tri.colorAt(uv);