Exemplo n.º 1
0
 /// <summary>
 /// Render
 /// </summary>
 /// <param name="shader">Shader</param>
 /// <param name="shaderTechnique">Shader technique</param>
 public void Render(ShaderEffect shader, string shaderTechnique)
 {
     BaseGame.WorldMatrix = Matrix.CreateTranslation(pos);
     BaseGame.Device.VertexDeclaration = TangentVertex.VertexDeclaration;
     shader.Render(
         material,
         shaderTechnique,
         new BaseGame.RenderHandler(DrawPlaneVertices));
     BaseGame.WorldMatrix = Matrix.Identity;
 }