Skip to content

Instantly share code, notes, and snippets.

@behreajj
Last active November 10, 2021 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save behreajj/47def846b874b42d2657d6e513300fce to your computer and use it in GitHub Desktop.
Save behreajj/47def846b874b42d2657d6e513300fce to your computer and use it in GitHub Desktop.
Perceptual Luminance Incorrect
static float GrayLumIncorrect (in Color srgb)
{
return 0.21264935f * srgb.r + 0.71516913f * srgb.g + 0.07218152f * srgb.b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment