Add matrix buffer
Convert camera to D3D11 Add world, view & projection matrix exposing
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
cbuffer MatrixBuffer
|
||||
{
|
||||
float4x4 WorldViewProjectionMatrix;
|
||||
};
|
||||
|
||||
float4 main( float4 pos : POSITION ) : SV_POSITION
|
||||
{
|
||||
return pos;
|
||||
return mul(pos, WorldViewProjectionMatrix);
|
||||
}
|
||||
Reference in New Issue
Block a user