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

4
materials/shared.h Normal file
View File

@@ -0,0 +1,4 @@
#define linearstep(p0, p1, v) (clamp(((v) - (p0)) / abs((p1) - (p0)), 0.0, 1.0))
#define AXIS_COLOR_X vec3(1.0f, 0.0f, 0.0f)
#define AXIS_COLOR_Y vec3(0.0f, 1.0f, 0.0f)
#define AXIS_COLOR_Z vec3(0.0f, 0.0f, 1.0f)