Sha256: 16ae067052a7c161fc705cee518bf2e2d57681ecc1dbc33b26abadf7738b9d4a

Contents?: true

Size: 696 Bytes

Versions: 21

Compression:

Stored size: 696 Bytes

Contents

#version 330 core
out vec4 color_out;

// From http://mrdoob.com/lab/javascript/webgl/glsl/03/
uniform float time;
uniform vec2 resolution;

void main( void ) {

    vec2 position = gl_FragCoord.xy / resolution.xy;

    float color = 0.0;
    color += sin( position.x * cos( time / 15.0 ) * 80.0 ) + cos( position.y * cos( time / 15.0 ) * 10.0 );
    color += sin( position.y * sin( time / 10.0 ) * 40.0 ) + cos( position.x * sin( time / 25.0 ) * 40.0 );
    color += sin( position.x * sin( time / 5.0 ) * 10.0 ) + sin( position.y * sin( time / 35.0 ) * 80.0 );
    color *= sin( time / 10.0 ) * 0.5;

    color_out = vec4( vec3( color, color * 0.9, sin( color + time / 3.0 ) * 0.75 ), 1.0 );

}

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pixo-0.4.5 ext/pixo/patterns/basic.glsl
pixo-0.4.4 ext/pixo/patterns/basic.glsl
pixo-0.4.3 ext/pixo/patterns/basic.glsl
pixo-0.4.2 ext/pixo/patterns/basic.glsl
pixo-0.4.1 ext/pixo/patterns/basic.glsl
pixo-0.4.0 ext/pixo/patterns/basic.glsl
pixo-0.3.2 ext/pixo/patterns/basic.glsl
pixo-0.3.1 ext/pixo/patterns/basic.glsl
pixo-0.3.0 ext/pixo/patterns/basic.glsl
pixo-0.2.6 ext/pixo/patterns/basic.glsl
pixo-0.2.5 ext/pixo/patterns/basic.glsl
pixo-0.2.4 ext/pixo/patterns/basic.glsl
pixo-0.2.3 ext/pixo/patterns/basic.glsl
pixo-0.2.2 ext/pixo/patterns/basic.glsl
pixo-0.2.1 ext/pixo/patterns/basic.glsl
pixo-0.2.0 ext/pixo/patterns/basic.glsl
pixo-0.1.4 ext/pixo/patterns/basic.glsl
pixo-0.1.3 ext/pixo/patterns/basic.glsl
pixo-0.1.2 ext/pixo/patterns/basic.glsl
pixo-0.1.1 ext/pixo/patterns/basic.glsl