init
This commit is contained in:
commit
2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions
18
gamedata/shaders/d3d11/accum_sun_mask.ps.hlsl
Normal file
18
gamedata/shaders/d3d11/accum_sun_mask.ps.hlsl
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "common.hlsli"
|
||||
|
||||
#define EPS (0.9f / 255.f)
|
||||
#define CLIP_THRESHOLD (1.0f / 255.f)
|
||||
|
||||
float4 main(p_TL I, float4 pos2d : SV_POSITION) : SV_Target
|
||||
{
|
||||
IXrayGbuffer O;
|
||||
GbufferUnpack(I.Tex0, pos2d.xy, O);
|
||||
|
||||
// float4 NH = float4(O.Normal, O.Hemi);
|
||||
float L = O.Hemi + O.SSS;
|
||||
|
||||
clip(L);
|
||||
|
||||
return float4(L, L, L, L);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue