uniform float4x4 WorldViewProjection; struct VSInput { float4 Position: POSITION; float4 Color: COLOR; }; struct VSOutput { float4 Position: POSITION; float4 Color: COLOR; }; VSOutput vsMain(VSInput Input) { VSOutput Output; Output.Position = mul(WorldViewProjection, Input.Position); Output.Color = Input.Color; return Output; } float4 psMain(VSOutput Output): COLOR { return Output.Color; }