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

18 lines
249 B
GLSL

#include "common.h"
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;
}