From c89ce83fb3d5661b5336e0dc55d0acfb64d2e7f2 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sun, 8 Mar 2015 11:31:06 +0100 Subject: [PATCH] Increases frequency of flickering. --- data/shader/flame.gsh | 2 +- data/shader/phong.fsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/shader/flame.gsh b/data/shader/flame.gsh index fd15c17..3c1cba4 100644 --- a/data/shader/flame.gsh +++ b/data/shader/flame.gsh @@ -29,7 +29,7 @@ const float begin_2 = 0; const float end_2 = 3; float flickerFunction() { - return pow(0.6*sin(10.0*time), 2) + 0.4; + return pow(0.6*sin(20.0*time), 2) + 0.4; } float radiusFunction(float x) { diff --git a/data/shader/phong.fsh b/data/shader/phong.fsh index f11f9d3..2ead53b 100644 --- a/data/shader/phong.fsh +++ b/data/shader/phong.fsh @@ -65,7 +65,7 @@ vec2 poissonDisk[16] = vec2[]( ); float flickerFunction() { - return pow(0.6*sin(10.0*time), 2) + 0.4; + return pow(0.6*sin(20.0*time), 2) + 0.4; } float sampleDirectionalShadow(sampler2DShadow shadowMap, vec4 shadowCoord, float maxBias ) {