diff --git a/14/README.md b/14/README.md index f4dec6d..ae39bdd 100644 --- a/14/README.md +++ b/14/README.md @@ -67,6 +67,12 @@ This could seam simple but the posibilities of modifing textures coordinates is Now is your turn: * Can you make a kaleidoscope using what we have learn? + +* Way before Oculus or google cardboard, stereoscopic photography was a big thing. Could code a simple shader to re-use this beautiful images? + + + + * What other optical toys can you re-create using textures? In the next chapters we will learn how to do some image processing using shaders. You will note that finnaly the complexity of shader makes sense, because was in a big sense designed to do this type of process. We will start doing some image operations! \ No newline at end of file diff --git a/14/texture-stere-05.jpg b/14/texture-stereo-05.jpg similarity index 100% rename from 14/texture-stere-05.jpg rename to 14/texture-stereo-05.jpg diff --git a/14/texture-stereo-06.jpg b/14/texture-stereo-06.jpg new file mode 100644 index 0000000..d47b83a Binary files /dev/null and b/14/texture-stereo-06.jpg differ diff --git a/14/stereo.frag b/14/texture-stereo.frag similarity index 93% rename from 14/stereo.frag rename to 14/texture-stereo.frag index 5979c3d..74566c3 100644 --- a/14/stereo.frag +++ b/14/texture-stereo.frag @@ -14,7 +14,7 @@ uniform float u_time; void main () { vec2 st = gl_FragCoord.xy/u_resolution.xy; - vec4 color = vec4(0.0); + vec4 color = vec4(vec3(0.0),1.); st *= vec2(.5,1.); @@ -25,5 +25,6 @@ void main () { vec4 B = texture2D(u_tex0,st+vec2(.5,.0)); color = mix(A, B, abs(sin(t))); + gl_FragColor = color; } \ No newline at end of file diff --git a/edit.html b/edit.html index 3fce44a..2097ec2 100644 --- a/edit.html +++ b/edit.html @@ -2,211 +2,32 @@ - GLSL Shader Code Editor - - - - - - - - - - - - - - - - - - - - - + GLSL Editor - - -

FILE NAME.frag

-
- - +
+ + + + \ No newline at end of file