Improved flicker functions a bit.

This commit is contained in:
Faerbit 2015-03-08 10:50:12 +01:00
parent 185371d78c
commit ecb88e9140
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ const float begin_2 = 0;
const float end_2 = 3;
float flickerFunction() {
return sin(time);
return pow(0.6*sin(10.0*time), 2) + 0.4;
}
float radiusFunction(float x) {

View File

@ -65,7 +65,7 @@ vec2 poissonDisk[16] = vec2[](
);
float flickerFunction() {
return sin(time);
return pow(0.6*sin(10.0*time), 2) + 0.4;
}
float sampleDirectionalShadow(sampler2DShadow shadowMap, vec4 shadowCoord, float maxBias ) {