e4s-game/gamedata/shaders/d3d11/test.gs.hlsl
2026-06-18 01:18:29 +03:00

17 lines
400 B
HLSL

#include "common.hlsli"
// Geometry
[maxvertexcount(3)]
void main(triangle v2p_TL In[3], inout TriangleStream<v2p_TL> triStream)
{
v2p_TL Out;
for (int v = 0; v < 3; v++)
{
Out.HPos = In[v].HPos;
Out.Tex0 = In[v].Tex0;
Out.Color = float4(0, 0, 1, 1); // swizzle vertex colour
triStream.Append(Out);
}
triStream.RestartStrip();
}