header correction + stereo
parent
5c49ae09b2
commit
eb123556c0
@ -1,2 +1,4 @@
|
||||
|
||||
https://docs.google.com/spreadsheets/d/194IVZR_xLVsw5H0zJZ7CWuimOQA_n8KU2eeIZBDwIH0/edit#gid=0
|
||||
|
||||
http://heman.readthedocs.org/en/latest/generate.html#archipelagos
|
||||
|
@ -0,0 +1,29 @@
|
||||
// Author @patriciogv - 2015
|
||||
// http://patriciogonzalezvivo.com
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D u_tex0;
|
||||
uniform vec2 u_tex0Resolution;
|
||||
|
||||
uniform vec2 u_resolution;
|
||||
uniform vec2 u_mouse;
|
||||
uniform float u_time;
|
||||
|
||||
void main () {
|
||||
vec2 st = gl_FragCoord.xy/u_resolution.xy;
|
||||
vec4 color = vec4(0.0);
|
||||
|
||||
st *= vec2(.5,1.);
|
||||
|
||||
// st.x *= u_resolution.x/u_resolution.y;
|
||||
float t = u_time*10.;
|
||||
|
||||
vec4 A = texture2D(u_tex0,st);
|
||||
vec4 B = texture2D(u_tex0,st+vec2(.5,.0));
|
||||
|
||||
color = mix(A, B, abs(sin(t)));
|
||||
gl_FragColor = color;
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 2.6 MiB |
Binary file not shown.
After Width: | Height: | Size: 416 KiB |
Binary file not shown.
After Width: | Height: | Size: 352 KiB |
Binary file not shown.
After Width: | Height: | Size: 866 KiB |
Binary file not shown.
After Width: | Height: | Size: 1018 KiB |
Binary file not shown.
After Width: | Height: | Size: 126 KiB |
Loading…
Reference in New Issue