summaryrefslogtreecommitdiff
path: root/shaders/none.kage
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2024-04-21 21:23:21 +0100
committerdavidovski <david@davidovski.xyz>2024-04-21 21:23:21 +0100
commit2d6d9f97093544e0d2faccc94f3b8bf369c03819 (patch)
treecab6b58d90a066b743764dfa91fcabfc87e9ba0e /shaders/none.kage
parent64757d18c4b2669c46f2dc88293cf2f0ea1887db (diff)
add placing objects
Diffstat (limited to 'shaders/none.kage')
-rw-r--r--shaders/none.kage12
1 files changed, 12 insertions, 0 deletions
diff --git a/shaders/none.kage b/shaders/none.kage
new file mode 100644
index 0000000..3eccc50
--- /dev/null
+++ b/shaders/none.kage
@@ -0,0 +1,12 @@
+//go:build ignore
+
+//kage:unit pixels
+
+package main
+
+var Time float
+var Cursor vec2
+
+func Fragment(dstPos vec4, srcPos vec2, color vec4) vec4 {
+ return imageSrc2UnsafeAt(srcPos);
+}