Minor improvements xd

This commit is contained in:
Andras Schmelczer 2023-05-21 19:19:12 +01:00
parent f3f2547724
commit 0e97e54ffe
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
21 changed files with 189 additions and 184 deletions

View file

@ -33,7 +33,7 @@ fn fragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
let decayed = clamp(vec4(
current.rgb * settings.decayRateTrails,
current.a * settings.decayRateBrush
max(0, current.a - settings.decayRateBrush)
), vec4(0), vec4(1));
return decayed;