public static void Draw(this BasicModelInstance instance, DeviceContext deviceContext, D3DVertexColorEffect effect, Matrix viewProjection) { var wvp = instance.World * viewProjection; effect.WorldViewProjection = wvp; effect.Material = instance.Model.Material; DrawTech(instance, deviceContext, effect.VertexColorTechnique); }
public static void DrawModel(this RenderContext context, BasicModelInstance modelInstance, D3DVertexColorEffect effect, Matrix viewProjection) { modelInstance.Draw(context.Direct3DDevice.ImmediateContext, effect, viewProjection); }