aboutsummaryrefslogtreecommitdiff
path: root/flowy/src/motion/dec.wgsl
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-11-18 02:39:47 +0100
committermetamuffin <metamuffin@disroot.org>2023-11-18 02:39:47 +0100
commit28af3138598e5c5f7e4d7c70218c26f4d2f46208 (patch)
tree83a8e1559f4798b2f33cc59e35cd5d1931be2683 /flowy/src/motion/dec.wgsl
parentebd59fb09a4e094701f195d86662e1a9d00fed2b (diff)
downloadvideo-codec-experiments-28af3138598e5c5f7e4d7c70218c26f4d2f46208.tar
video-codec-experiments-28af3138598e5c5f7e4d7c70218c26f4d2f46208.tar.bz2
video-codec-experiments-28af3138598e5c5f7e4d7c70218c26f4d2f46208.tar.zst
works very well
Diffstat (limited to 'flowy/src/motion/dec.wgsl')
-rw-r--r--flowy/src/motion/dec.wgsl3
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);
}}
}