Improved grid visuals to allow for more of the grid to be displayed on the screen

This commit is contained in:
Yousef Khadadeh 2025-09-25 12:26:11 +03:00
parent cc9b41d5f5
commit 3cadba1fc3
2 changed files with 21 additions and 34 deletions

View file

@ -28,7 +28,7 @@ ServerClientID GridManager::add_default_grid(const std::string& newName) {
ServerClientID newID = world.get_new_id();
WorldGrid g;
g.name = newName;
g.color = color_mul_alpha(convert_vec4<Vector4f>(world.canvasTheme.toolFrontColor), 0.6f);
g.color = color_mul_alpha(convert_vec4<Vector4f>(world.canvasTheme.toolFrontColor), 0.4f);
g.size = world.drawData.cam.c.inverseScale * WorldScalar(WorldGrid::GRID_UNIT_PIXEL_SIZE);
g.offset = world.drawData.cam.c.pos + world.drawData.cam.c.dir_from_space(world.main.window.size.cast<float>() * 0.5f);
grids[newID] = g;