add game&rawdata

This commit is contained in:
Vasily Petrov 2026-06-17 23:06:51 +03:00
parent 0133cd976c
commit 49b34b5546
45731 changed files with 709831 additions and 0 deletions

View file

@ -0,0 +1,33 @@
#include "common.h"
struct v_vert
{
float4 pos : POSITION; // (float,float,float,1)
float4 color : COLOR0; // (r,g,b,dir-occlusion)
};
struct vf
{
float4 hpos : POSITION;
float4 c : COLOR0;
float fog : FOG;
};
vf main (v_vert v)
{
vf o;
o.hpos = mul(m_VP, v.pos); // xform, input in world coords
o.c = v.color;
o.fog = calc_fogging(v.pos); // fog, input in world coords
o.fog = saturate(o.fog);
o.c.rgb = lerp(fog_color, o.c, o.fog);
o.c.a = o.fog;
#ifdef USE_VTF
float scale = tex2Dlod (s_tonemap,float4(.5,.5,.5,.5)).x ;
o.c.rgb = o.c.rgb*scale; // copy color, pre-scale by tonemap //float4 ( v.c.rgb*scale*2, v.c.a );
#endif // USE_VTF
return o;
}