Sha256: 768ae2e971bcfbb0c3d7e43f8a9847c7bb9e7fdcc4c819ca5b7040dc01c9adf0

Contents?: true

Size: 503 Bytes

Versions: 21

Compression:

Stored size: 503 Bytes

Contents

#version 330 core

#ifdef GL_ES
precision mediump float;
#endif

uniform float time;
in vec2 surfacePosition;
out vec4 color_out;

void main(void) {
  vec2 pos = surfacePosition;
  float dist = length(pos) / 2.0;

  vec3 color = vec3(0.0);
  float ang = atan(pos.y, pos.x) / 3.14159265;
  if(mod(ang - dist + time / 5.0, 0.05) < 0.01 || dist < 0.01) color = vec3(0.55, 0.25, 1.0);
  if(mod(ang + dist - time / 10.0, 0.05) < 0.01) color = vec3(0.05, 0.45, 0.85);
  color_out = vec4(vec3(color), 1.0 );

}

Version data entries

21 entries across 21 versions & 1 rubygems

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