VOXELFORMAT: debug logging
parent
fb0fa829fb
commit
40447a70b8
|
@ -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;
|
typedef core::Map<glm::ivec3, PosSampling, 64, glm::hash<glm::ivec3>> PosMap;
|
||||||
PosMap posMap((int)subdivided.size() * 3);
|
PosMap posMap((int)subdivided.size() * 3);
|
||||||
|
Log::debug("subdivided into %i triangles", (int)subdivided.size());
|
||||||
for (const Tri &tri : subdivided) {
|
for (const Tri &tri : subdivided) {
|
||||||
const glm::vec2 &uv = tri.centerUV();
|
const glm::vec2 &uv = tri.centerUV();
|
||||||
const core::RGBA rgba = tri.colorAt(uv);
|
const core::RGBA rgba = tri.colorAt(uv);
|
||||||
|
|
Loading…
Reference in New Issue