Original Post
Hi All, below is my fx file. ======================================================================== float4x4 worldViewProj : WORLDVIEWPROJ; struct a2v { float4 position : POSITION0; float2 texCoord : TEXCOORD0; }; //vertex to pixel shader structure struct v2p { float4 position : POSITION0; float4 color : COLOR0; }; technique simple { pass p0 { vertexshader = compile vs_1_1 vs(); } } ============================================================ below is my game code. ============================================================ public void Render() { try { renderer.BeginRender(Color.Blue); effect.SetValue("worldViewProj", matWorld *camera.MatView *camera.MatProj); effect.Technique = "simple"; effect.Begin(0); effect.BeginPass(0); renderer.Device.Material = mtrlFloor; renderer.Device.Transform.World = matFloor; renderer.Device.SetTexture(0, null); renderer.Device.SetTexture(0, floorTexture); floorMesh.DrawSubset(0); renderer.Device.Material = mtrlBox; renderer.Device.Transform.World = matBox; renderer.Device.SetTexture(0, null); renderer.Device.SetTexture(0, blockTexture); blockMesh.DrawSubset(0); effect.EndPass(); effect.End(); renderer.EndRender(); }catch (Exception) {} } i has 2 mesh in my Game Programmer. i want blockMesh move up and down not camera moveing. But my fx file set position in every time. What method can do this?