Esempio n. 1
0
 public void DrawAll()
 {
     for (int i = 0; i < Subsets.Count; i++)
     {
         UpdateConstantByMaterial(Subsets[i]);
         MMEEffect.ApplyEffectPass(Subsets[i], MMEEffectPassType.Object, (subset) => subset.Draw(device));
     }
 }
Esempio n. 2
0
 public void DrawGroundShadow()
 {
     //TODO地面影子的实现
     foreach (PMXSubset variable in from subset in Subsets where subset.MaterialInfo.isGroundShadowEnable select subset)
     {
         UpdateConstantByMaterial(variable);
         MMEEffect.ApplyEffectPass(variable, MMEEffectPassType.Shadow, (subset) => subset.Draw(device));
     }
 }
Esempio n. 3
0
 public void DrawEdges()
 {
     //TODO边缘绘图的实现
     foreach (PMXSubset variable in from subset in Subsets where subset.MaterialInfo.isEdgeEnable select subset)
     {
         UpdateConstantByMaterial(variable);
         MMEEffect.ApplyEffectPass(variable, MMEEffectPassType.Edge, (subset) => subset.Draw(device));
     }
 }