add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
19
gamedata/shaders/d3d11/fluid_draw_texture.ps.hlsl
Normal file
19
gamedata/shaders/d3d11/fluid_draw_texture.ps.hlsl
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include "fluid_common.hlsli"
|
||||
|
||||
// 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