Files
hwr2023_a/GDP/D3D11/ColorVertexShader.hlsl
T
2025-12-03 15:50:25 +01:00

26 lines
428 B
HLSL

cbuffer MatrixBuffer
{
matrix WorldViewProjectionMatrix;
};
struct VertexInput
{
float4 position : POSITION;
float4 color : COLOR;
};
struct VertexOutput
{
float4 position : SV_POSITION;
float4 color : COLOR;
};
VertexOutput main(VertexInput INPUT)
{
VertexOutput OUTPUT;
OUTPUT.position = mul(INPUT.position, WorldViewProjectionMatrix);
OUTPUT.color = INPUT.color;
return OUTPUT;
}