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
SceneFilterPrimitive SceneSpecularLightingPrimitive

Constructors

NameDescription
SceneSpecularLightingPrimitive(SceneLightSource, SceneColor)Initializes a new instance of the SceneSpecularLightingPrimitive class.

SceneSpecularLightingPrimitive(SceneLightSource, SceneColor)

SceneSpecularLightingPrimitive.cs

Initializes a new instance of the SceneSpecularLightingPrimitive class.

public SceneSpecularLightingPrimitive(SceneLightSource light, SceneColor color)

Parameters

light SceneLightSource
The light.
color SceneColor
The color of the light: lighting-color. Its alpha is ignored, as in SVG.

Exceptions

ArgumentNullException
light is null.

Properties

NameDescription
ColorGets the color of the light.
InputGets the input: in.
LightGets the light.
SpecularConstantGets the factor of the light: specularConstant. The default is 1.
SpecularExponentGets how shiny the surface is: specularExponent, from 1 to 128. The default is 1.
SurfaceScaleGets the height of the surface where the alpha is 1: surfaceScale. The default is 1.

Gets the color of the light.

public SceneColor Color { get; }

Property value

SceneColor

Gets the input: in.

public SceneFilterInput Input { get; init; }

Property value

SceneFilterInput

Gets the light.

public SceneLightSource Light { get; }

Property value

SceneLightSource

Gets the factor of the light: specularConstant. The default is 1.

public double SpecularConstant { get; init; }

Property value

double

Exceptions

ArgumentException
The value is not a finite number.
ArgumentOutOfRangeException
The value is negative.

Gets how shiny the surface is: specularExponent, from 1 to 128. The default is 1.

public double SpecularExponent { get; init; }

Property value

double

Exceptions

ArgumentException
The value is not a finite number.
ArgumentOutOfRangeException
The value is less than 1 or more than 128.

Gets the height of the surface where the alpha is 1: surfaceScale. The default is 1.

public double SurfaceScale { get; init; }

Property value

double

Exceptions

ArgumentException
The value is not a finite number.