GraphicsProgramming / learnd3d11

Learn how to D3D11
https://graphicsprogramming.github.io/learnd3d11/
MIT License
156 stars 26 forks source link

Fix vertex shader #100

Open deccer opened 2 years ago

deccer commented 2 years ago

in all chapters Assets/Main.vs.hlsl

instead of

const matrix modelViewProjection = mul(ProjectionMatrix, mul(ViewMatrix, WorldMatrix));

do

const matrix modelViewProjection = mul(WorldMatrix, mul(ViewMatrix, ProjectionMatrix));

with row_major matrixes instead of matrix