Added Line and Ray drawing

This commit is contained in:
Simon Lübeß
2021-08-20 19:44:26 +02:00
parent 9e06d4d51f
commit e239de52d6
2 changed files with 122 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
cbuffer Constants : register(b0)
{
float4x4 ViewProjection;
float4 Color;
};
struct VS_Input
{
float4 Position : POSITION;
};
struct PS_Input
{
float4 Position : SV_Position;
};
PS_Input VS(VS_Input input)
{
PS_Input output;
output.Position = mul(ViewProjection, input.Position);
return output;
}
float4 PS(PS_Input input) : SV_Target0
{
return Color;
}
#effect[VS=VS, PS=PS]