init
This commit is contained in:
commit
2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions
14
gamedata/shaders/d3d11/scope_lense_mask.ps.hlsl
Normal file
14
gamedata/shaders/d3d11/scope_lense_mask.ps.hlsl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include "common.hlsli"
|
||||
uniform float4 m_hud_params;
|
||||
|
||||
float main(float Z : TEXCOORD0, float4 pos2d : SV_POSITION) : SV_Depth
|
||||
{
|
||||
float Depth = s_position.Load(int3(pos2d.xy, 0)).x;
|
||||
float Alpha = m_hud_params.y * m_hud_params.w;
|
||||
|
||||
if(Depth > pos2d.z * 0.02f && Alpha >= 0.5f) {
|
||||
return 1.0f;
|
||||
}
|
||||
|
||||
return Depth;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue