Created
July 6, 2018 18:53
-
-
Save Pyromuffin/291f943cad4f22ace99961664041009a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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