]> git.sesse.net Git - nageru/blobdiff - futatabi/hole_fill.frag
Move everything into a separate futatabi/ subdir, for the upcoming merge with Nageru.
[nageru] / futatabi / hole_fill.frag
diff --git a/futatabi/hole_fill.frag b/futatabi/hole_fill.frag
new file mode 100644 (file)
index 0000000..bec50d8
--- /dev/null
@@ -0,0 +1,16 @@
+#version 450 core
+
+in vec2 tc;
+out vec2 out_flow;
+
+uniform sampler2D tex;
+
+void main()
+{
+       vec2 flow = texture(tex, tc).xy;
+       if (flow.x > 100.0f) {
+               // Don't copy unset flows around.
+               discard;
+       }
+       out_flow = flow;
+}