Skip to content

Instantly share code, notes, and snippets.

View ELI7VH's full-sized avatar
💭
Doing a thing.

Elijah Lucian ELI7VH

💭
Doing a thing.
View GitHub Profile
@ELI7VH
ELI7VH / fragmentShader.glsl
Last active July 1, 2019 06:46
Outrun Sun Fragment Shader
uniform float time;
varying vec2 vUv;
void main() {
vec3 color = vec3(1.0);
float sun = step(mod(vUv.y * 20. + time, 1.), -0.2 + 0.35 * vUv.y * 3.7);
color.x *= sun;
color.y *= sun * (0.6 + vUv.y - 0.7 );
color.z = 0.;