feat: re-implement grid overlay

This commit is contained in:
Nick Fisher committed 2025-01-07 08:25:48 +08:00
1 parent 852cb58ba9
commit 1b979252db
9 files changed
+2403 -2165

No files matched your search

+1 -1
View File
@@ -8,5 +8,5 @@ GRID_PACKAGE:
GRID_GRID_OFFSET:
.int 0
GRID_GRID_SIZE:
.int 44564
.int 47596
@@ -8,5 +8,5 @@ _GRID_PACKAGE:
_GRID_GRID_OFFSET:
.int 0
_GRID_GRID_SIZE:
.int 44564
.int 47596
Binary file not shown.
File diff suppressed because it is too large. Load diff
@@ -8,6 +8,8 @@
#include <filament/MaterialInstance.h>
#include <utils/Entity.h>
#include "scene/SceneAsset.hpp"
#include "material/grid.h"
namespace thermion {
@@ -15,7 +17,7 @@ using namespace filament;
class GridOverlay : public SceneAsset {
public:
GridOverlay(Engine& engine);
GridOverlay(Engine& engine, Material* material);
~GridOverlay();
SceneAssetType getType() override { return SceneAsset::SceneAssetType::Gizmo; }