diff options
Diffstat (limited to 'flowy/src/motion/dec.wgsl')
-rw-r--r-- | flowy/src/motion/dec.wgsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/flowy/src/motion/dec.wgsl b/flowy/src/motion/dec.wgsl index 982a1be..2fa3f3b 100644 --- a/flowy/src/motion/dec.wgsl +++ b/flowy/src/motion/dec.wgsl @@ -7,6 +7,7 @@ struct Params { struct BlockOffset { score: f32, offset: vec2<i32>, + tint: vec3<f32>, } @group(0) @binding(0) var<uniform> params: Params; @@ -22,7 +23,7 @@ struct BlockOffset { for (var x = 0; x < params.block_size.x; x++) { for (var y = 0; y < params.block_size.y; y++) { let base = uv+vec2(x,y); - let col = textureLoad(prev, base+bl.offset, 0); + let col = textureLoad(prev, base+bl.offset, 0)+vec4(bl.tint,1.); textureStore(next, base, col); }} } |