Set up demo
This commit is contained in:
parent
abf3803cdc
commit
8817e5b090
17 changed files with 189 additions and 145 deletions
|
|
@ -28,7 +28,7 @@ fn fragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
|
|||
) / 8;
|
||||
|
||||
let decayed = clamp(vec4(
|
||||
current.rgb - settings.decayRateTrails,
|
||||
clamp(current.rgb + (current.rgb - 1.001) * settings.decayRateTrails, vec3(0), vec3(1)),
|
||||
max(0, current.a + (current.a - 1.001) * settings.decayRateBrush)
|
||||
), vec4(0), vec4(1));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue