Add resizing

This commit is contained in:
Andras Schmelczer 2023-05-01 18:12:25 +01:00
parent 9c7b91000f
commit 058d6014b7
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
18 changed files with 254 additions and 138 deletions

View file

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