SceneDiffuseLightingPrimitive Class

A primitive that lights the surface whose height is the alpha of its input with a matte light: feDiffuseLighting of SVG. The result is opaque.

public sealed class SceneDiffuseLightingPrimitive : SceneFilterPrimitive
Inheritance
SceneFilterPrimitive SceneDiffuseLightingPrimitive

Constructors

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

SceneDiffuseLightingPrimitive(SceneLightSource, SceneColor)

SceneDiffuseLightingPrimitive.cs

Initializes a new instance of the SceneDiffuseLightingPrimitive class.

public SceneDiffuseLightingPrimitive(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.
DiffuseConstantGets the factor of the light: diffuseConstant. The default is 1.
InputGets the input: in.
LightGets the light.
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 factor of the light: diffuseConstant. The default is 1.

public double DiffuseConstant { get; init; }

Property value

double

Exceptions

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

Gets the input: in.

public SceneFilterInput Input { get; init; }

Property value

SceneFilterInput

Gets the light.

public SceneLightSource Light { get; }

Property value

SceneLightSource

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.