blob: ec1293e543c5d77d552f7e8f48b15f1848209c04 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#version 450
#extension GL_GOOGLE_include_directive : require
// The color tape at every pixel; x and y run 0..1, y up.
#include "Picture.glsl"
#define TAPE(i) u.tape[i]
#include "vm.glsl"
layout(location = 0) out vec4 out_color;
void main() {
vec2 p = vec2(gl_FragCoord.x, u.size.y - gl_FragCoord.y) / u.size;
out_color = vec4(clamp(vm(0u, u.len, u.time, p.x, p.y), 0.0, 1.0), 1.0);
}
|