Video quality isn’t great, but fascinating, nonetheless.
Nothing to do with me, I might add. Just spotted it on YouTube.
Video quality isn’t great, but fascinating, nonetheless.
Nothing to do with me, I might add. Just spotted it on YouTube.
This Perlin Noise Vector Flow-Field visualisation is nice.
Feedback with slightly different values for RGB channels.
2D 2 and 3-point light-interference patterns, converted from WebGL code at:
http://www.ibiblio.org/e-notes/webgl/webgl.htm
Straight port of
http://learningwebgl.com/blog/?p=2858
Fragment Shader:
/*
Straight port of code from
http://learningwebgl.com/blog/?p=2858
*/
uniform sampler2D Texture;
void main()
{
float lum = length(texture2D(Texture, gl_TexCoord[0].xy).rgb);
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
if (lum < 1.00) {
if (mod(gl_FragCoord.x + gl_FragCoord.y, 10.0) == 0.0) {
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
}
}
if (lum < 0.75) {
if (mod(gl_FragCoord.x - gl_FragCoord.y, 10.0) == 0.0) {
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
}
}
if (lum < 0.50) {
if (mod(gl_FragCoord.x + gl_FragCoord.y - 5.0, 10.0) == 0.0) {
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
}
}
if (lum < 0.3) {
if (mod(gl_FragCoord.x - gl_FragCoord.y - 5.0, 10.0) == 0.0) {
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
}
}
}