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

19 lines
261 B
HLSL

#include "common.hlsli"
struct vf
{
float4 P : POSITION;
float4 C : COLOR0;
};
uniform float4 tfactor;
vf main(vf i)
{
vf o;
o.P = mul(m_WVP, i.P); // xform, input in world coords
o.C = tfactor * i.C;
return o;
}