Advertisement
Guest User

YzUzVz and YzUzVz Oblique

a guest
Jun 15th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. vec3 sRGB_to_YzUzVz(vec3 x) {
  2. x *= mat3x3( 0.305177, 0.553818, 0.141005, 0.633191, -0.701805, 0.079447, 0.359930, 0.673756, -1.001600 );
  3. return x;
  4. }
  5.  
  6. vec3 YzUzVz_to_sRGB(vec3 x) {
  7. x *= mat3x3( 0.982413376558785, 0.982877925434877, 0.216265875303211, 1.00268411558266, -0.539188543577021, 0.098389138873971, 1.02752045287871, -0.00949906615865055, -0.854501947734569 );
  8. return x;
  9. }
  10.  
  11. vec3 sRGB to YzUzVzOblique(vec3 x) {
  12. x *= mat3x3( 0.305177, 0.553818, 0.141005, 0.886467, -0.982527, 0.111260, 0.348196, 0.651792, -0.968947 )
  13. return x;
  14. }
  15.  
  16. vec3 YzUzVzOblique to sRGB(vec3 x) {
  17. x *= mat3x3( 0.982388750424195, 0.70205610499572, 0.22357516767727, 1.00269739330198, -0.385134833343093, 0.101693120867079, 1.02752160099344, -0.00678538223377703, -0.883298321042586 )
  18. return x;
  19. }
  20.  
  21. vec3 sRGB_to_YUV(vec3 x) {
  22. x *= mat3x3( 0.299, 0.587, 0.114, -0.14713, -0.28886, 0.436, 0.615, -0.51499, -0.10001);
  23. return x;
  24. }
  25.  
  26. vec3 YUV_to_sRGB(vec3 x) {
  27. x *= mat3x3( 1.0, 0.0, 1.13983, 1.0, -0.39465, -0.58060, 1.0, 2.03211, 0.0);
  28. return x;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement