add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
22
gamedata/shaders/r3/fluid_array.gs
Normal file
22
gamedata/shaders/r3/fluid_array.gs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#include "fluid_common.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Geometry
|
||||
[maxvertexcount (3)]
|
||||
void main(triangle v2g_fluidsim In[3], inout TriangleStream<g2p_fluidsim> triStream)
|
||||
{
|
||||
g2p_fluidsim Out;
|
||||
// cell0.z of the first vertex in the triangle determines the destination slice index
|
||||
Out.RTIndex = In[0].cell0.z;
|
||||
for(int v=0; v<3; v++)
|
||||
{
|
||||
Out.pos = In[v].pos;
|
||||
Out.cell0 = In[v].cell0;
|
||||
Out.texcoords = In[v].texcoords;
|
||||
Out.LR = In[v].LR;
|
||||
Out.BT = In[v].BT;
|
||||
Out.DU = In[v].DU;
|
||||
triStream.Append( Out );
|
||||
}
|
||||
triStream.RestartStrip( );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue