Basic alpha blending works but I have no z ordering yet.

This commit is contained in:
Zed A. Shaw 2026-08-29 16:08:33 -04:00
parent 128f522089
commit 11b7f4a3ed
14 changed files with 272 additions and 30 deletions

View file

@ -75,14 +75,22 @@ namespace components {
ENROLL_COMPONENT(Model, directory, model_path);
using Position = glm::vec3;
struct Rotation {
float angle = 0;
glm::vec3 axes{1.0f, 0.0f, 0.0f};
};
ENROLL_COMPONENT(Rotation, angle, axes);
struct Thing {
std::string model;
Position position;
std::string material;
Position position;
Rotation rotation;
float scale;
};
ENROLL_COMPONENT(Thing, model, position, material);
ENROLL_COMPONENT(Thing, model, material, position, rotation, scale);
struct Shader {
std::string vertex_path;