Skip to content

Instantly share code, notes, and snippets.

@otanodesignco
Created August 8, 2023 06:14
Show Gist options
  • Save otanodesignco/8f2801f507ac2942a20e0380bfe54683 to your computer and use it in GitHub Desktop.
Save otanodesignco/8f2801f507ac2942a20e0380bfe54683 to your computer and use it in GitHub Desktop.
Negate function to simulate unity negate node in glsl
float negate( float value )
{
return -1.0 * value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment