feat: re-implement grid overlay

This commit is contained in:
Nick Fisher
2024-12-17 14:00:41 +08:00
parent 852cb58ba9
commit 1b979252db
9 changed files with 2403 additions and 2165 deletions

View File

@@ -8,5 +8,5 @@ GRID_PACKAGE:
GRID_GRID_OFFSET:
.int 0
GRID_GRID_SIZE:
.int 44564
.int 47596

View File

@@ -8,5 +8,5 @@ _GRID_PACKAGE:
_GRID_GRID_OFFSET:
.int 0
_GRID_GRID_SIZE:
.int 44564
.int 47596

File diff suppressed because it is too large Load Diff

View File

@@ -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; }