Minor - Start Shadow Map - V10.5.0

This commit is contained in:
2025-05-22 17:28:29 +02:00
parent f9d4523f09
commit d6b7626446
18 changed files with 1305 additions and 531 deletions

View File

@@ -0,0 +1,25 @@
cbuffer MatrixBuffer : register(b0)
{
matrix world;
matrix view;
matrix projection;
};
struct VS_INPUT
{
float3 position : POSITION;
};
struct VS_OUTPUT
{
float4 position : SV_POSITION;
};
VS_OUTPUT DepthVertexShader(VS_INPUT input)
{
VS_OUTPUT output;
float4 worldPosition = mul(float4(input.position, 1.0f), world);
float4 viewPosition = mul(worldPosition, view);
output.position = mul(viewPosition, projection);
return output;
}