2016-12-17 23:38:22 +03:00
|
|
|
|
|
|
|
struct VertexData {
|
2017-01-05 07:34:04 +03:00
|
|
|
float4 position : POSITION;
|
|
|
|
float4 color : COLOR0;
|
|
|
|
float2 uv : TEXCOORD0;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PS_IN {
|
|
|
|
float4 position : SV_POSITION;
|
|
|
|
float4 color : COLOR0;
|
|
|
|
float2 uv : TEXCOORD0;
|
2016-12-17 23:38:22 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
[maxvertexcount(4)]
|
2017-01-05 07:34:04 +03:00
|
|
|
void main(line VertexData vin[2], inout TriangleStream<PS_IN> outStream)
|
2016-12-17 23:38:22 +03:00
|
|
|
{
|
2017-01-05 07:34:04 +03:00
|
|
|
PS_IN vout;
|
2016-12-17 23:38:22 +03:00
|
|
|
|
2017-01-05 07:34:04 +03:00
|
|
|
vout.color = vin[1].color;
|
|
|
|
vout.uv = vin[1].uv;
|
|
|
|
vout.position = vin[1].position;
|
2016-12-17 23:38:22 +03:00
|
|
|
outStream.Append(vout);
|
|
|
|
}
|