aboutsummaryrefslogtreecommitdiff
path: root/flowy/src/motion/debug.wgsl
diff options
context:
space:
mode:
Diffstat (limited to 'flowy/src/motion/debug.wgsl')
-rw-r--r--flowy/src/motion/debug.wgsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/flowy/src/motion/debug.wgsl b/flowy/src/motion/debug.wgsl
index 7da5c57..d2c56a4 100644
--- a/flowy/src/motion/debug.wgsl
+++ b/flowy/src/motion/debug.wgsl
@@ -29,6 +29,18 @@ struct BlockOffset {
textureStore(out, base, col);
}
}
+
+ // 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_dec = textureLoad(prev, base + bl.offset, 0) + vec4(bl.tint, 1.);
+ // let col_orig = textureLoad(next, base, 0);
+
+ // let col = vec4( saturate((0.5) + (col_orig.rgb - col_dec.rgb) * 100.), 1.0);
+
+ // textureStore(out, base, col);
+ // }
+ // }
}