diff --git a/data/shader/flame.gsh b/data/shader/flame.gsh index 181a31f..1ede56b 100644 --- a/data/shader/flame.gsh +++ b/data/shader/flame.gsh @@ -3,7 +3,7 @@ uniform mat4 modelViewProjectionMatrix; uniform float time; uniform bool bottom; -uniform bool left; +uniform int circle_index; uniform vec2 skew; layout(points) in; @@ -75,19 +75,11 @@ void main() { for (i; isetUniform("withColor", withColor); shader->setUniform("time", time); shader->setUniform("skew", skewing); - shader->setUniform("bottom", true); - shader->setUniform("left", true); - vao->render(); - shader->setUniform("left", false); - vao->render(); - shader->setUniform("bottom", false); - shader->setUniform("left", true); - vao->render(); - shader->setUniform("left", false); - vao->render(); + for (int i = 0; i<8; i++) { + shader->setUniform("bottom", true); + shader->setUniform("circle_index", i); + vao->render(); + shader->setUniform("bottom", false); + vao->render(); + } }