Transposed transformation matrix to fix bgfx colors (nw)

This commit is contained in:
Henrik Algestam 2019-01-08 23:48:12 +01:00
parent 2e1ad76d92
commit 40efb8f5aa
67 changed files with 3 additions and 3 deletions

View File

@ -23,9 +23,9 @@ void main()
vec4 cout = vec4(0.0, 0.0, 0.0, cin.a);
mat3 xy = mat3(u_chroma_a.xyz, u_chroma_b.xyz, u_chroma_c.xyz);
const mat3 XYZ_TO_sRGB = mat3(
3.2406, -1.5372, -0.4986,
-0.9689, 1.8758, 0.0415,
0.0557, -0.2040, 1.0570
3.2406, -0.9689, 0.0557,
-1.5372, 1.8758, -0.2040,
-0.4986, 0.0415, 1.0570
);
for (int i = 0; i < 3; ++i) {