add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
20
gamedata/shaders/r3/fluid_gaussian.ps
Normal file
20
gamedata/shaders/r3/fluid_gaussian.ps
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include "fluid_common.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Pixel
|
||||
float4 main( p_fluidsim input ) : SV_Target
|
||||
{
|
||||
if( IsNonEmptyCell(input.texcoords.xyz) )
|
||||
return 0;
|
||||
|
||||
float dist = length( input.cell0 - center ) * size;
|
||||
// float dist = length( input.cell0 - center ) * size / 2;
|
||||
float4 result;
|
||||
// result.rgb = splatColor; // + sin(splatColor.rgb*10.0+cell*5.0)*0.2;
|
||||
result.rgb = splatColor + length(splatColor)*sin(splatColor.rgb*10.0+input.cell0*5.0)*0.2;
|
||||
// result.a = exp( -dist*dist/(0.05) );
|
||||
// result.a = exp( -dist*dist );
|
||||
result.a = exp( -dist*dist/0.5 );
|
||||
|
||||
return result;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue