SpecularMaterial.SpecularPower Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
property double SpecularPower { double get(); void set(double value); };
public double SpecularPower { get; set; }
member this.SpecularPower : double with get, set
Public Property SpecularPower As Double
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.
<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
Identifier field | SpecularPowerProperty |
Metadata properties set to true |
None |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기