17 lines
254 B
HLSL
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;
|
|
}
|