【GLSL】GLSLで縞模様
See the Pen my first first GLSL program by aadebdeb (@aadebdeb) on CodePen.
precision mediump float; uniform float time; uniform vec2 mouse; uniform vec2 resolution; void main(void) { gl_FragColor = vec4(abs(sin(gl_FragCoord.x * 0.1)), abs(sin(time * 0.001)), mouse.x / resolution.x, 1.0); }
![f:id:aa_debdeb:20170327085026p:plain f:id:aa_debdeb:20170327085026p:plain](https://cdn-ak.f.st-hatena.com/images/fotolife/a/aa_debdeb/20170327/20170327085026.png)