add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
14
gamedata/shaders/r3/fluid_draw_texture.ps
Normal file
14
gamedata/shaders/r3/fluid_draw_texture.ps
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include "fluid_common.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Pixel
|
||||
float4 main( p_fluidsim input ) : SV_Target
|
||||
{
|
||||
if( textureNumber == 1)
|
||||
return abs(Texture_color.SampleLevel(samLinear,input.texcoords,0)).xxxx;
|
||||
else if( textureNumber == 2)
|
||||
return abs(Texture_velocity0.SampleLevel(samLinear,input.texcoords,0));
|
||||
else
|
||||
return float4(abs(Texture_obstvelocity.SampleLevel(samLinear,input.texcoords,0).xy),
|
||||
abs(Texture_obstacles.SampleLevel(samLinear,input.texcoords,0).r),1 );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue