SpecularMaterial.SpecularPower Property

Definition

Gets or sets a value that specifies the degree to which a material applied to a 3-D model reflects the lighting model as shine.

C#
public double SpecularPower { get; set; }

Property Value

Relative contribution, for a material applied as a 2-D brush to a 3-D model, of the specular component of the lighting model.

Examples

The following example creates an instance of SpecularMaterial and sets this property.

XAML
<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>

Remarks

Specular lighting reproduces the appearance of surfaces that are shiny or tend to reflect highlights. This property indicates the relative "shininess" of the material applied to the model. A larger value for this property specifies greater size and sharpness of the shine reflected by the material.

Dependency Property Information

Item Value
Identifier field SpecularPowerProperty
Metadata properties set to true None

Applies to

Produto Versões
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10