Another kind of interacting layers
This commit is contained in:
parent
6bc2c1f452
commit
99b8d5eeeb
|
|
@ -36,9 +36,7 @@ fn on_fragment(in: Varying) -> @location(0) vec4u {
|
||||||
n -= state;
|
n -= state;
|
||||||
|
|
||||||
let z = daynight(state.z, n.z);
|
let z = daynight(state.z, n.z);
|
||||||
let px = life(state.x, n.x);
|
let x = life(state.x, n.x + n.z);
|
||||||
let nx = 1u - life(1u - state.x, 8u - n.x);
|
|
||||||
let x = z * px + (1u - z) * nx;
|
|
||||||
return vec4(x, 0, z, 0u);
|
return vec4(x, 0, z, 0u);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user