Skip to content

Getting a Matrix4x4 into a uniform buffer #648

Answered by Abrynos
Abrynos asked this question in Q&A
Discussion options

You must be logged in to vote

The problem was not the code, but rather that I mixed up the order of projection and view matrix.

In my shader I had the view-matrix before the projection matrix, while in the C# code I set the projection matrix with an offset and the viewmatrix without one. Order matters!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Abrynos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant