SceneSpecularLightingPrimitive Class
A primitive that lights the surface whose height is the alpha of its input with a shiny light: feSpecularLighting of SVG. The result is the highlights, to add to the drawing.
public sealed class SceneSpecularLightingPrimitive : SceneFilterPrimitive- Inheritance
SceneFilterPrimitiveSceneSpecularLightingPrimitive
Constructors
| Name | Description |
|---|---|
| SceneSpecularLightingPrimitive(SceneLightSource, SceneColor) | Initializes a new instance of the SceneSpecularLightingPrimitive class. |
SceneSpecularLightingPrimitive(SceneLightSource, SceneColor)
SceneSpecularLightingPrimitive.csInitializes a new instance of the SceneSpecularLightingPrimitive class.
public SceneSpecularLightingPrimitive(SceneLightSource light, SceneColor color)Parameters
lightSceneLightSource- The light.
colorSceneColor- The color of the light:
lighting-color. Its alpha is ignored, as in SVG.
Exceptions
ArgumentNullExceptionlightisnull.
Properties
| Name | Description |
|---|---|
| Color | Gets the color of the light. |
| Input | Gets the input: in. |
| Light | Gets the light. |
| SpecularConstant | Gets the factor of the light: specularConstant. The default is 1. |
| SpecularExponent | Gets how shiny the surface is: specularExponent, from 1 to 128. The default is 1. |
| SurfaceScale | Gets the height of the surface where the alpha is 1: surfaceScale. The default is 1. |
SpecularConstant
SceneSpecularLightingPrimitive.csGets the factor of the light: specularConstant. The default is 1.
public double SpecularConstant { get; init; }Property value
Exceptions
ArgumentException- The value is not a finite number.
ArgumentOutOfRangeException- The value is negative.
SpecularExponent
SceneSpecularLightingPrimitive.csGets how shiny the surface is: specularExponent, from 1 to 128. The default is 1.
public double SpecularExponent { get; init; }Property value
Exceptions
ArgumentException- The value is not a finite number.
ArgumentOutOfRangeException- The value is less than 1 or more than 128.
SurfaceScale
SceneSpecularLightingPrimitive.csGets the height of the surface where the alpha is 1: surfaceScale. The default is 1.
public double SurfaceScale { get; init; }