uniform float4x4 viewprojection; uniform float4x4 my_model; uniform float4 diffuse; struct IN { float4 position : POSITION; float3 normal : NORMAL; }; struct OUT { float4 hPosition : POSITION; float4 color : COLOR; }; OUT main(const IN input) { OUT output; float4 pos; pos = mul(input.position, my_model); output.hPosition = mul(pos, viewprojection); output.color = diffuse; return output; }