init
This commit is contained in:
commit
2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions
17
gamedata/shaders/d3d11/test.gs.hlsl
Normal file
17
gamedata/shaders/d3d11/test.gs.hlsl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue