Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // - - - - - - - - - - - - - - - - - - - -
- float4x4 gMworld;
- float4x4 gMview;
- float4x4 gMproj;
- // - - - - - - - - - - - - - - - - - - - -
- struct VertIn {
- float4 P : POSITION0;
- float3 N : NORMAL0;
- float2 T : TEXCOORD0;
- int2 Index : TEXCOORD9;
- };//struct
- // - - - - - - - - - - - - - - - - - - - -
- struct VertOut {
- float4 Poutput : POSITION0;
- };//struct
- // - - - - - - - - - - - - - - - - - - - -
- VertOut VertFn(VertIn Input) {
- VertOut Output;
- float4 Pobject = Input.P;
- float4 Pworld = mul(Pobject , gMworld);
- float4 Pview = mul(Pworld , gMview);
- float4 Poutput = mul(Pview , gMproj);
- Output.Poutput = Poutput;
- return Output;
- }//function
- // - - - - - - - - - - - - - - - - - - - -
- float4 PixFn(VertOut Input) : COLOR0 {
- return float4(1, 0, 0, 1);
- }//function
- // - - - - - - - - - - - - - - - - - - - -
- technique TechMain {
- // - - - - - - - - - - - - - - - - - - - -
- pass PassMain {
- VertexShader = compile vs_3_0 VertFn();
- PixelShader = compile ps_3_0 PixFn();
- }//pass
- // - - - - - - - - - - - - - - - - - - - -
- }//technique
- // - - - - - - - - - - - - - - - - - - - -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement