diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-01-24 14:32:29 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-01-25 15:06:20 +0000 |
| commit | 84a3bbf2bffa04d6bb0d3b038473467dd573c9d3 (patch) | |
| tree | 7059479d35048b9cdce421706e2f98ca26c78a28 /shaders | |
| parent | hot reloading (diff) | |
| download | glsl-view-84a3bbf2bffa04d6bb0d3b038473467dd573c9d3.tar.gz glsl-view-84a3bbf2bffa04d6bb0d3b038473467dd573c9d3.zip | |
basic OSC support
Diffstat (limited to 'shaders')
| -rw-r--r-- | shaders/test.frag | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shaders/test.frag b/shaders/test.frag new file mode 100644 index 0000000..d9b76c1 --- /dev/null +++ b/shaders/test.frag @@ -0,0 +1,12 @@ +#version 330 core + +in vec2 uv; +out vec4 color; + +uniform float offset; +uniform float r; + +void main() { + color = vec4(mod(uv.xyx + offset + vec2(0,0.5).xxy, vec3(1)), 1); + color.r = r; +} |
