summary refs log tree commit diff
path: root/shader/tri.frag
blob: dea0868a6e5fad2014c0e363ba0e7bd444de35f4 (plain)
1
2
3
4
5
6
7
8
9
#version 450

layout(location = 0) in vec2 uv;
layout(location = 0) out vec4 out_color;

void main(void) {
	float n = 2 * length(uv - 0.5);
	out_color = vec4(vec3(uv, 1) * (1.75 - n), float(n<1));
}