Skip to content

Instantly share code, notes, and snippets.

@galek
Created May 30, 2016 04:10
Show Gist options
  • Save galek/6808e32f3aa6efbc2a31bd1bbbbfe769 to your computer and use it in GitHub Desktop.
Save galek/6808e32f3aa6efbc2a31bd1bbbbfe769 to your computer and use it in GitHub Desktop.
ViewDir = normalize(vCameraPos.xyz - vWorldPos.xyz);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment