Divergent/mods/Modded Executables/gamedata/shaders/r3/editor.vs

25 lines
291 B
Plaintext
Raw Normal View History

2024-03-17 20:18:03 -04:00
#include "common.h"
struct vf
{
float4 C : COLOR0;
float4 P : POSITION;
};
struct v2p
{
float4 C : COLOR0;
float4 P : SV_Position;
};
uniform float4 tfactor;
v2p main (vf i)
{
v2p o;
o.P = mul (m_WVP, i.P); // xform, input in world coords
o.C = tfactor;
return o;
}