mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2025-02-16 23:17:43 +11:00
initialize variable to 0.0
to prevent undefined values on some GPUs.
This commit is contained in:
parent
c10a40e656
commit
39ee09ceb2
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue