Created
May 2, 2020 15:05
-
-
Save CharStiles/698d7eebd1c3739f9c566446dcd1c058 to your computer and use it in GitHub Desktop.
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
float scene(vec3 pos){ | |
float s = length(pos) - 0.4; | |
return s; | |
} | |
void main() { | |
vec2 uv = uv(); | |
vec3 rayOrigin = vec3(uv, 0.0); | |
vec4 color = vec4(scene(rayOrigin)); | |
gl_FragColor = color; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment