summary refs log tree commit diff
path: root/shader/tri.frag
diff options
context:
space:
mode:
authorWormHeamer2025-07-18 22:08:25 -0400
committerWormHeamer2025-07-18 22:08:25 -0400
commit17fd0a37e35fedeacb9095879fd26e9e93c966ca (patch)
tree6593d7900182314820722f464e12bc720c87bab7 /shader/tri.frag
parentcc0ca67cfe3397d73c810f7f04817b7cba4c9ed4 (diff)
camera uniform!
Diffstat (limited to 'shader/tri.frag')
-rw-r--r--shader/tri.frag5
1 files changed, 3 insertions, 2 deletions
diff --git a/shader/tri.frag b/shader/tri.frag
index 5599421..dea0868 100644
--- a/shader/tri.frag
+++ b/shader/tri.frag
@@ -1,8 +1,9 @@
 #version 450
 
-layout(location = 0) in vec4 in_pos;
+layout(location = 0) in vec2 uv;
 layout(location = 0) out vec4 out_color;
 
 void main(void) {
-	out_color = vec4(in_pos.xy + vec2(0.5,0.5), 0, 1.0);
+	float n = 2 * length(uv - 0.5);
+	out_color = vec4(vec3(uv, 1) * (1.75 - n), float(n<1));
 }