Files
2025-11-28 23:13:44 +05:30

20 lines
441 B
Plaintext

#include <config.cg>
#include <globals.cg>
struct VertexOut
{
float4 screenSpacePosition : POSITION;
half4 color : COLOR;
};
VertexOut vmain(__in(float4, localSpacePosition, POSITION)
__in_opt(half4, vertexColor, COLOR))
{
VertexOut vout;
float4x4 vpm = mul(g_projMatrix, g_viewMatrix);
vout.screenSpacePosition = mul(vpm, localSpacePosition);
vout.color = vertexColor;
return vout;
}