2021-06-02 17:20:15 +04:30
|
|
|
struct VertexOut
|
|
|
|
{
|
|
|
|
float4 Color : COLOR;
|
|
|
|
float4 Position : SV_Position;
|
|
|
|
};
|
2021-05-31 23:28:29 +04:30
|
|
|
|
2021-06-02 17:20:15 +04:30
|
|
|
VertexOut main(float2 InPosition : POSITION, float4 InColor : COLOR)
|
2021-05-31 23:28:29 +04:30
|
|
|
{
|
2021-06-02 17:20:15 +04:30
|
|
|
VertexOut vso;
|
|
|
|
vso.Position = float4(InPosition.x, InPosition.y, 0.0f, 1.0f);
|
|
|
|
vso.Color = InColor;
|
|
|
|
return vso;
|
2021-05-31 23:28:29 +04:30
|
|
|
}
|