add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
31
gamedata/shaders/d3d11/base_lplanes_fft.ps.hlsl
Normal file
31
gamedata/shaders/d3d11/base_lplanes_fft.ps.hlsl
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#include "common.hlsli"
|
||||
|
||||
struct v2p
|
||||
{
|
||||
float2 tc0: TEXCOORD0; // base
|
||||
// float2 tc1: TEXCOORD1; // lmap
|
||||
float4 c0: COLOR0; // sun
|
||||
};
|
||||
|
||||
uniform float4 m_hud_params;
|
||||
|
||||
inline bool isCollimatorActive()
|
||||
{
|
||||
return (m_hud_params.w == 1.f);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Pixel
|
||||
float4 main( p_bumped_new I ) : SV_Target
|
||||
{
|
||||
float4 color = s_base.Sample(smp_base, I.tcdh.xy);
|
||||
|
||||
if (isCollimatorActive())
|
||||
{
|
||||
return float4(color.xyz * color.w, 0.0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
return float4(0.0, 0.0, 0.0, 0.0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue