Skip to content

Instantly share code, notes, and snippets.

@johans2
Last active May 13, 2019 10:27
Show Gist options
  • Save johans2/71b703ee83b5cba77753a3d5b2ce4cf7 to your computer and use it in GitHub Desktop.
Save johans2/71b703ee83b5cba77753a3d5b2ce4cf7 to your computer and use it in GitHub Desktop.
float GetSpaceDistortionLerpValue(float schwarzschildRadius, float distanceToSingularity, float spaceDistortion) {
return pow(schwarzschildRadius, spaceDistortion) / pow(distanceToSingularity, spaceDistortion);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment