feat: re-implement grid overlay
This commit is contained in:
4
materials/shared.h
Normal file
4
materials/shared.h
Normal 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)
|
||||
Reference in New Issue
Block a user