Skip to content

Instantly share code, notes, and snippets.

@johnmave126
Created December 24, 2018 19:39
Slider GLSL
#version 120
in float flifespan;
void main() {
gl_FragColor = vec4(1.0f / lifespan, 0, 0, 0);
}
#version 120
in float lifespan;
out float flifespan;
void main() {
flifespan = lifespan;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment