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 v2p
{
float4 c : COLOR0;
float fog : FOG;
float4 hpos : SV_Position;
};
v2p main (v_vert v)
{
v2p 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);
// float scale = tex2Dlod (s_tonemap,float4(.5,.5,.5,.5)).x ;
float scale = s_tonemap.Load(int3(0,0,0)).x;
// float scale = s_tonemap.Load(int3(1,1,0)).x;
o.c.rgb = o.c.rgb*scale; // copy color, pre-scale by tonemap //float4 ( v.c.rgb*scale*2, v.c.a );
o.c.a = o.fog;
return o;
}