2021-07-10 19:59:27 +04:30
|
|
|
struct VertexOut
|
|
|
|
{
|
|
|
|
float4 Color : COLOR;
|
|
|
|
float4 Position : SV_Position;
|
|
|
|
};
|
|
|
|
|
2021-07-25 17:50:08 +04:30
|
|
|
cbuffer cv_ViewProjection : register(b0)
|
|
|
|
{
|
|
|
|
row_major matrix viewProjection;
|
|
|
|
}
|
|
|
|
|
2021-07-30 12:49:48 +04:30
|
|
|
VertexOut main(float4 InPosition : POSITION, float4 InColor : COLOR)
|
2021-07-10 19:59:27 +04:30
|
|
|
{
|
|
|
|
VertexOut vso;
|
2021-07-30 12:49:48 +04:30
|
|
|
vso.Position = mul(InPosition, viewProjection);
|
2021-07-10 19:59:27 +04:30
|
|
|
vso.Color = InColor;
|
|
|
|
|
|
|
|
return vso;
|
|
|
|
}
|