first commit

This commit is contained in:
David Ali
2026-01-09 13:50:52 +01:00
commit 9f87935db1
24 changed files with 7925 additions and 0 deletions

20
src/Render.hpp Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#include <glm/glm.hpp>
namespace Render {
struct alignas(16) PerFrame {
glm::mat4 V;
glm::mat4 P;
glm::vec4 LightDir; // std140: use vec4, vec3 would pad anyway
};
struct alignas(16) PerObject {
glm::mat4 M;
};
struct alignas(16) Material {
glm::vec4 Albedo; // rgb + pad
};
} // namespace render