Merge pull request #4492 from algestam/bgfx_hlsl_fix

Transposed transformation matrix to fix bgfx colors (nw)
This commit is contained in:
R. Belmont 2019-01-16 09:28:28 -05:00 committed by GitHub
commit a143090d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {