แก้ไข

แชร์ผ่าน


MaterialGroup Constructor

Definition

Initializes a new instance of the MaterialGroup class.

public:
 MaterialGroup();
public MaterialGroup ();
Public Sub New ()

Examples

The following excerpt shows a MaterialGroup.

<MaterialGroup x:Key="LeavesMaterial1">
  <DiffuseMaterial>
    <DiffuseMaterial.Brush>
      <ImageBrush Stretch="UniformToFill" ImageSource="sample_images\leaves_closeup.png" TileMode="None" ViewportUnits="Absolute" Viewport="0 0 1 1" AlignmentX="Left" AlignmentY="Top" Opacity="1.000000" />
    </DiffuseMaterial.Brush>
  </DiffuseMaterial>
  <SpecularMaterial SpecularPower="85.3333">
    <SpecularMaterial.Brush>
      <SolidColorBrush Color="#FFFFFF" Opacity="1.000000"/>
    </SpecularMaterial.Brush>
  </SpecularMaterial>
</MaterialGroup>

Applies to