Skip to content

Instantly share code, notes, and snippets.

@Pyromuffin
Created July 6, 2018 18:53
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 Pyromuffin/291f943cad4f22ace99961664041009a to your computer and use it in GitHub Desktop.
Save Pyromuffin/291f943cad4f22ace99961664041009a to your computer and use it in GitHub Desktop.
float3 REC709toREC2020(float3 RGB709)
{
static const float3x3 ConvMat =
{
0.627402, 0.329292, 0.043306,
0.069095, 0.919544, 0.011360,
0.016394, 0.088028, 0.895578
};
return mul(ConvMat, RGB709);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment