Describe the bug
On HL, matrix uniforms are (incorrectly) transposed when passed to the shader. For example the projectionMatrix uniform used for 2D drawing will result in a broken visual output on HL:
How it should look like:
Note that in the first screenshot I also removed the translation transform from the default project to see whether it was the reason for the problem. It isn't, but if you keep it enabled, the distorted shape will of course look slightly different.
To Reproduce
Steps to reproduce the behavior:
Use Kha: Init Project in VSCode to create the default example project
Kha/make windows-hl
Compare with other targets
It doesn't make a difference whether you use D3D11 or OpenGL.
The projection matrix uniform in hxcpp:
The projection matrix uniform in HL:
Execution Environment:
Host system (where you compile your code): Windows 10
Target system (where you run your code): Windows 10
Describe the bug On HL, matrix uniforms are (incorrectly) transposed when passed to the shader. For example the
projectionMatrix
uniform used for 2D drawing will result in a broken visual output on HL:How it should look like:
Note that in the first screenshot I also removed the translation transform from the default project to see whether it was the reason for the problem. It isn't, but if you keep it enabled, the distorted shape will of course look slightly different.
To Reproduce Steps to reproduce the behavior:
Kha: Init Project
in VSCode to create the default example projectKha/make windows-hl
It doesn't make a difference whether you use D3D11 or OpenGL.
The projection matrix uniform in hxcpp:
The projection matrix uniform in HL:
Execution Environment: