Beispiel #1
0
 public override void Draw()
 {
     for (int subset = 0; subset < materials.Length; ++subset)
     {
         Material materialD3D = this.materials[subset].MaterialD3D;
         materialD3D.Diffuse = new Color4(Color.FromArgb(TransparentValue, ColorValue));
         materialD3D.Ambient = new Color4(Color.FromArgb(TransparentValue, ColorValue));
         DeviceMain.Material = materialD3D;
         DeviceMain.SetTexture(0, textures[subset]);
         mesh.DrawSubset(subset);
     }
     DeviceMain.VertexFormat = TexturedVertex.Format;
 }
Beispiel #2
0
 public virtual void SetModel()
 {
     DeviceMain.SetStreamSource(0, vertexBuffer, 0, TexturedVertex.SizeBytes);
     DeviceMain.SetTexture(0, TxtureObject.TXTure);
 }