Add matrix buffer

Convert camera to D3D11
Add world, view & projection matrix exposing
This commit is contained in:
2026-11-27 12:17:17 +01:00
parent ead7463b8e
commit c6fdf567b7
8 changed files with 89 additions and 25 deletions
+6 -1
View File
@@ -1,4 +1,9 @@
cbuffer MatrixBuffer
{
float4x4 WorldViewProjectionMatrix;
};
float4 main( float4 pos : POSITION ) : SV_POSITION
{
return pos;
return mul(pos, WorldViewProjectionMatrix);
}