This commit is contained in:
Vasily Petrov 2026-06-18 01:18:29 +03:00
commit 2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#include "common.hlsli"
// Vertex
uniform float4 screen_res;
p_shadow main(v2p_screen I)
{
p_shadow O;
// Transform to screen space (in d3d9 it was done automatically)
O.hpos.x = (I.HPos.x * screen_res.z * 2 - 1);
O.hpos.y = -(I.HPos.y * screen_res.w * 2 - 1);
O.hpos.zw = I.HPos.zw;
O.tc0 = I.tc0;
return O;
}