Skip to content

Commit

Permalink
Фикс просвечивающих фларов от солнца сквозь оружие
Browse files Browse the repository at this point in the history
  • Loading branch information
xrSimpodin committed Dec 9, 2018
1 parent 657a4d9 commit 52b9e55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file modified Game/Resources_SoC_1.0006/gamedata/shaders/r2/effects_flare.ps
Binary file not shown.
Expand Up @@ -5,5 +5,6 @@ function normal (shader, t_base, t_second, t_detail)
: blend (true,blend.srcalpha,blend.one)
: aref (true,2)
: sorting (3, false)
shader:sampler ("s_base") :texture (t_base) :clamp()
shader:sampler("s_base"):texture(t_base):clamp()
shader:sampler("s_position"):texture("$user$position"):clamp()
end
Expand Up @@ -11,6 +11,7 @@ struct _out
float4 hpos : POSITION;
float2 tc0 : TEXCOORD0;
float4 c0 : COLOR0;
float4 tctexgen : TEXCOORD1;
};

_out main (_in v)
Expand All @@ -21,5 +22,8 @@ _out main (_in v)
o.tc0 = v.tc; // copy tc
o.c0 = v.c;

o.tctexgen = mul( mVPTexgen, v.P );
o.tctexgen.z = o.hpos.z;

return o;
}

0 comments on commit 52b9e55

Please sign in to comment.