Basic alpha blending works but I have no z ordering yet.
This commit is contained in:
parent
128f522089
commit
11b7f4a3ed
14 changed files with 272 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue