add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
26
gamedata/shaders/d3d11/wmark.vs.hlsl
Normal file
26
gamedata/shaders/d3d11/wmark.vs.hlsl
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include "common.hlsli"
|
||||
#include "shared\wmark.hlsli"
|
||||
|
||||
struct vf
|
||||
{
|
||||
float2 tc0 : TEXCOORD0;
|
||||
float3 c0 : COLOR0; // c0=all lighting
|
||||
float fog : FOG;
|
||||
float4 hpos : SV_POSITION;
|
||||
};
|
||||
|
||||
vf main(v_static v)
|
||||
{
|
||||
vf o;
|
||||
|
||||
float3 N = unpack_normal(v.Nh.zyx);
|
||||
float4 P = wmark_shift(v.P.xyz, N);
|
||||
o.hpos = mul(m_VP, P);
|
||||
o.tc0 = unpack_tc_base(v.tc, v.T.w, v.B.w);
|
||||
o.c0 = 0;
|
||||
o.fog = 1.0f - calc_fogging(v.P.xyz);
|
||||
o.hpos.xy += m_taa_jitter.xy * o.hpos.w;
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue