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,41 @@
#include "common.h"
// Igor: used for volumetric light
uniform sampler2D s_vollight;
struct _input {
float4 hpos : POSITION;
#ifdef USE_VTF
float4 tc0 : TEXCOORD0; // tc.xy, tc.w = tonemap scale
#else
float2 tc0 : TEXCOORD0; // tc.xy
#endif
};
struct _out {
half4 low : COLOR0;
half4 high : COLOR1;
};
_out main ( _input I )
{
// final tone-mapping
#ifdef USE_VTF
half tm_scale = I.tc0.w; // interpolated from VS
#else
half tm_scale = tex2D(s_tonemap,I.tc0).x;
#endif
_out o;
half4 color;
color = tex2D(s_vollight, I.tc0);
tonemap(o.low, o.high, color, tm_scale );
// o.low = half4(1,0,0,0);
// o.high = half4(0,0,0,0);
// o.low = half4(0,0,0,0);
return o;
}