Fix artifacts
This commit is contained in:
parent
cf35fb484a
commit
68d92d79ef
1 changed files with 2 additions and 2 deletions
|
|
@ -31,10 +31,10 @@ fn fragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
|
||||||
|
|
||||||
current += change / 4;
|
current += change / 4;
|
||||||
|
|
||||||
let decayed = vec4(
|
let decayed = clamp(vec4(
|
||||||
current.rgb * settings.decayRateTrails,
|
current.rgb * settings.decayRateTrails,
|
||||||
current.a * settings.decayRateBrush
|
current.a * settings.decayRateBrush
|
||||||
);
|
), vec4(0), vec4(1));
|
||||||
|
|
||||||
return decayed;
|
return decayed;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue