]> git.localhorst.tv Git - blank.git/blobdiff - src/world/world.cpp
save a little bandwidth
[blank.git] / src / world / world.cpp
index 243fb8a81b439655193b21615a84eddc7b70c389..bf68a9eca412f295c977e486c465e0794025366a 100644 (file)
@@ -1072,7 +1072,7 @@ void World::RenderDebug(Viewport &viewport) {
        PrimitiveMesh debug_mesh;
        PlainColor &prog = viewport.WorldColorProgram();
        for (const Entity &entity : entities) {
-               debug_buf.OutlineBox(entity.Bounds(), glm::vec4(1.0f, 0.0f, 0.0f, 1.0f));
+               debug_buf.OutlineBox(entity.Bounds(), glm::tvec4<unsigned char>(255, 0, 0, 255));
                debug_mesh.Update(debug_buf);
                prog.SetM(entity.Transform(players.front().GetEntity().ChunkCoords()));
                debug_mesh.DrawLines();