e4s-sdk/gamedata/shaders/r3/hud3d.vs
2026-06-17 23:06:51 +03:00

27 lines
365 B
GLSL

#include "common.h"
struct ui_vert_in
{
float4 P : POSITION;
float4 color : COLOR0;
float2 uv : TEXCOORD0;
};
struct ui_vert_out
{
float2 tc0 : TEXCOORD0;
float4 P : SV_Position;
};
ui_vert_out main (ui_vert_in v)
{
ui_vert_out O;
O.tc0 = v.uv;
O.P = v.P;
O.P.w = 1;
O.P = mul( m_WVP, O.P );
return O;
}