mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-05 08:13:23 +08:00
Merge pull request #166 from FlexW/patch-1
Zero out memory from color variable
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user