File size: 388 Bytes
0c51b93 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
cbuffer params : register(b0)
{
float4x4 projectionViewWorld;
};
struct Input
{
float3 position : POSITION;
float4 color : COLOR;
};
struct Output
{
float4 position : SV_POSITION;
float4 color : COLOR;
};
Output debugLineVS(Input input)
{
Output output;
output.position = mul(projectionViewWorld, float4(input.position, 1.0f));
output.color = input.color;
return output;
}
|