Merge pull request #166 from FlexW/patch-1

Zero out memory from color variable
This commit is contained in:
Joey de Vries
2020-04-29 10:36:00 +02:00
committed by GitHub

View File

@@ -13,6 +13,9 @@ uniform bool shake;
void main()
{
// zero out memory since an out variable is initialized with undefined values by default
color = vec4(0.0f);
vec3 sample[9];
// sample from texture offsets if using convolution matrix
if(chaos || shake)