Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vec3 sRGB_to_YzUzVz(vec3 x) {
- x *= mat3x3( 0.305177, 0.553818, 0.141005, 0.633191, -0.701805, 0.079447, 0.359930, 0.673756, -1.001600 );
- return x;
- }
- vec3 YzUzVz_to_sRGB(vec3 x) {
- x *= mat3x3( 0.982413376558785, 0.982877925434877, 0.216265875303211, 1.00268411558266, -0.539188543577021, 0.098389138873971, 1.02752045287871, -0.00949906615865055, -0.854501947734569 );
- return x;
- }
- vec3 sRGB to YzUzVzOblique(vec3 x) {
- x *= mat3x3( 0.305177, 0.553818, 0.141005, 0.886467, -0.982527, 0.111260, 0.348196, 0.651792, -0.968947 )
- return x;
- }
- vec3 YzUzVzOblique to sRGB(vec3 x) {
- x *= mat3x3( 0.982388750424195, 0.70205610499572, 0.22357516767727, 1.00269739330198, -0.385134833343093, 0.101693120867079, 1.02752160099344, -0.00678538223377703, -0.883298321042586 )
- return x;
- }
- vec3 sRGB_to_YUV(vec3 x) {
- x *= mat3x3( 0.299, 0.587, 0.114, -0.14713, -0.28886, 0.436, 0.615, -0.51499, -0.10001);
- return x;
- }
- vec3 YUV_to_sRGB(vec3 x) {
- x *= mat3x3( 1.0, 0.0, 1.13983, 1.0, -0.39465, -0.58060, 1.0, 2.03211, 0.0);
- return x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement