From 416784539b57408ad9ea39ab05f06b27070e384a Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sun, 1 Mar 2015 17:01:41 +0100 Subject: [PATCH] Made two render calls to circumvent vertex limitation of geometry shader. --- data/shader/flame.gsh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) 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