17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-26 04:29:29 +01:00

Let the templates of smoke sources set how fast their particles rise or fall

This commit is contained in:
2026-10-20 17:12:23 +02:00
parent 867497b658
commit abbdca4773
7 changed files with 47 additions and 6 deletions

View File

@@ -526,10 +526,11 @@ namespace gl
glm::vec4 sizechange;
glm::vec4 opacitychange;
glm::vec4 motion;
glm::vec4 settling;
glm::vec4 color;
glm::vec4 oldcolor;
};
static_assert(sizeof(particle_smoke_source) == 160, "bad size of particle_smoke_source");
static_assert(sizeof(particle_smoke_source) == 176, "bad size of particle_smoke_source");
// layout std430: GLSL particle_draw_s, read by the draws as attributes of instances
struct particle_draw