e4s-game/gamedata/shaders/r2/simple.vs.hlsl
2026-06-18 01:18:29 +03:00

17 lines
254 B
HLSL

#include "common.hlsli"
struct vf
{
float4 hpos : POSITION;
float2 tc0 : TEXCOORD0;
};
vf main(v_model v)
{
vf o;
o.hpos = mul(m_WVP, v.P); // xform, input in world coords
o.tc0 = v.tc; // copy tc
return o;
}