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,20 @@
#include "common.hlsli"
uniform float4 screen_res;
// vertex output
struct v2p_L
{
float4 pos : SV_POSITION;
float4 viewpos : TEXCOORD0;
float4 color : COLOR0;
};
float4 main(v2p_L I) : SV_TARGET
{
float depth = s_position.SampleLevel(smp_nofilter, I.pos.xy * screen_res.zw, 0).x;
depth = depth_unpack.x / (depth - depth_unpack.y);
clip(depth - I.viewpos.z);
return I.color;
}