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