pushing this, lots of fun things to try.

This commit is contained in:
Yggdrasil75
2026-03-02 13:53:13 -05:00
parent 926ffe18cd
commit 4f0dba5eb4
6 changed files with 1141 additions and 182 deletions

View File

@@ -331,7 +331,10 @@ public:
break;
}
sim.grid.update(p.currentPos, p.currentPos, p, true, color, sim.config.voxelSize, true, -2, false, 0.0f, 0.0f, 0.0f);
if (!sim.grid.setColor(p.currentPos, color)) {
std::cout << "node failed to set" << std::endl;
}
// sim.grid.update(p.currentPos, p.currentPos, p, true, color, sim.config.voxelSize, true, -2, false, 0.0f, 0.0f, 0.0f);
}
for (auto& p : sim.config.interpolatedNodes) {
v3 color = p.originColor;
@@ -356,7 +359,10 @@ public:
break;
}
sim.grid.update(p.currentPos, p.currentPos, p, true, color, sim.config.voxelSize, true, -2, false, 0.0f, 0.0f, 0.0f);
if (!sim.grid.setColor(p.currentPos, color)) {
std::cout << "node failed to set" << std::endl;
}
// sim.grid.update(p.currentPos, p.currentPos, p, true, color, sim.config.voxelSize, true, -2, false, 0.0f, 0.0f, 0.0f);
}
}