Created
December 24, 2018 19:39
Slider GLSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 120 | |
in float flifespan; | |
void main() { | |
gl_FragColor = vec4(1.0f / lifespan, 0, 0, 0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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