Fix artifacts

This commit is contained in:
Andras Schmelczer 2023-05-20 21:53:32 +01:00
parent cf35fb484a
commit 68d92d79ef
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -31,10 +31,10 @@ fn fragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
current += change / 4;
let decayed = vec4(
let decayed = clamp(vec4(
current.rgb * settings.decayRateTrails,
current.a * settings.decayRateBrush
);
), vec4(0), vec4(1));
return decayed;
}