general improvements

This commit is contained in:
Asuro
2025-02-14 02:44:40 +01:00
parent 6e82678ade
commit ab326d3624
16 changed files with 185 additions and 80 deletions

View File

@@ -11,6 +11,9 @@ namespace Game
float x;
float y;
float z;
float n_x;
float n_y;
float n_z;
uint32_t abgr;
float uv_x;
float uv_y;
@@ -105,10 +108,16 @@ namespace Game
struct Material
{
static constexpr uint32_t UniformTimeIdx = 0;
enum UniformNames : uint32_t
{
UTime = 0,
UDotColor = 1,
};
bgfx::ProgramHandle Shader;
bgfx::UniformHandle Uniforms[8];
uint64_t State = 0;
static Material LoadFromShader(const char* vertPath, const char* fragPath);
};
struct Camera