diff --git a/data/shader/flame.gsh b/data/shader/flame.gsh index a5ce522..fe4cd44 100644 --- a/data/shader/flame.gsh +++ b/data/shader/flame.gsh @@ -2,6 +2,7 @@ uniform mat4 viewProjectionMatrix; uniform float time; +uniform bool bottom; layout(points) in; layout(triangle_strip, max_vertices = 256) out; @@ -26,11 +27,21 @@ float radiusFunction(float x) { void main() { float resolution = 8.0; - float step = abs(end-begin)/resolution; - for (float i = begin; i