mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2025-02-17 07:27:43 +11:00
Update crt-hyllian.slang
Cg/HLSL have row major matrices. In GLSL/slang shaders, we have to reverse the operand order around. This shader should now be completely fixed.
This commit is contained in:
parent
4a1bd3d938
commit
54fb6ee4b2
1 changed files with 2 additions and 2 deletions
|
@ -129,8 +129,8 @@ void main()
|
||||||
|
|
||||||
mat4x3 color_matrix0 = mat4x3(c00, c01, c02, c03);
|
mat4x3 color_matrix0 = mat4x3(c00, c01, c02, c03);
|
||||||
mat4x3 color_matrix1 = mat4x3(c10, c11, c12, c13);
|
mat4x3 color_matrix1 = mat4x3(c10, c11, c12, c13);
|
||||||
|
|
||||||
vec4 invX_Px = invX * vec4(fp.x*fp.x*fp.x, fp.x*fp.x, fp.x, 1.0);
|
vec4 invX_Px = vec4(fp.x*fp.x*fp.x, fp.x*fp.x, fp.x, 1.0) * invX;
|
||||||
vec3 color0 = color_matrix0 * invX_Px;
|
vec3 color0 = color_matrix0 * invX_Px;
|
||||||
vec3 color1 = color_matrix1 * invX_Px;
|
vec3 color1 = color_matrix1 * invX_Px;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue