float4x4 matWorld;
float4x4 matView;
float4x4 matProjection;
struct VS_INPUT
{
float4 Position : POSITION0;
float2 TexCoord : TEXCOORD0;
};
struct VS_OUTPUT
{
float4 Position : POSITION0;
float2 TexCoord : TEXCOORD0;
}
VS_OUTPUT vs_main(VS_INPUT Input)
{
VS_OUTPUT Output;
Output.Position = mul(Input.Position, matWorld);
Output.Position = mul(Output.Position, matView);
Output.Position = mul(Output.Position, matProjection);
Output.TexCoord = Input.TexCoord;
return(Output);
}
반응형