]> git.localhorst.tv Git - blank.git/blobdiff - src/world/world.cpp
use symbolic names for block colors
[blank.git] / src / world / world.cpp
index 033967ad970ffecd32c098f226c1942b8b97dabd..528bc40c1b242358cd6026d81969e8c53ab62463 100644 (file)
@@ -1123,7 +1123,7 @@ void World::RenderDebug(Viewport &viewport) {
        PrimitiveMesh debug_mesh;
        PlainColor &prog = viewport.WorldColorProgram();
        for (const Entity &entity : entities) {
-               debug_buf.OutlineBox(entity.Bounds(), TVEC4<unsigned char, glm::precision(0)>(255, 0, 0, 255));
+               debug_buf.OutlineBox(entity.Bounds(), PrimitiveMesh::Color(255, 0, 0, 255));
                debug_mesh.Update(debug_buf);
                prog.SetM(entity.Transform(players.front().GetEntity().ChunkCoords()));
                debug_mesh.DrawLines();