XNA physics testbed, just 2 cubes for now, move with a/d keys

This commit is contained in:
ejcoumans
2006-09-19 19:03:41 +00:00
parent 7faf84d784
commit 1d539aa662
10 changed files with 767 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
//--------------------------------------------------------------//
// Constant(s)
//--------------------------------------------------------------//
float4 color : Color;
float4x4 transform : WorldViewProjection;
//--------------------------------------------------------------//
// Vertex shader(s)
//--------------------------------------------------------------//
void FinalVS( inout float4 Position : POSITION0)
{
// Calculate the output position.
//float4 tempPos = mul( Position, world );
Position = mul( Position, transform);
}
//--------------------------------------------------------------//
// Pixel shader(s)
//--------------------------------------------------------------//
void FinalPS( out float4 Color : COLOR0 )
{
// Set the output color.
Color = color;
}
//--------------------------------------------------------------//
// Technique(s)
//--------------------------------------------------------------//
technique Final
{
pass Pass_0
{
VertexShader = compile vs_1_1 FinalVS();
PixelShader = compile ps_2_0 FinalPS();
}
}