initialize variable to 0.0

to prevent undefined values on some GPUs.
This commit is contained in:
hizzlekizzle 2023-01-01 21:09:33 -06:00 committed by GitHub
parent c10a40e656
commit 39ee09ceb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ layout(set = 0, binding = 2) uniform sampler2D Source;
void main()
{
vec3 Color;
vec3 Color = vec3(0.0);
float count = -0.005 / params.Hsharpness;
float limit = 0.005 / params.Hsharpness;
@ -71,4 +71,4 @@ void main()
}
FragColor = vec4( Color , 1.0 );
}
}