Skip to content

Instantly share code, notes, and snippets.

@CedricGuillemet
Created July 17, 2020 09:18
Show Gist options
  • Save CedricGuillemet/b0b114f4b8c1d3323122afb15990e82e to your computer and use it in GitHub Desktop.
Save CedricGuillemet/b0b114f4b8c1d3323122afb15990e82e to your computer and use it in GitHub Desktop.
void main(void) {
vec3 rayDir = normalize(vPosition - vEyePosition);
gl_FragColor = vec4(rayDir,1.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment