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
SceneFilterPrimitiveSceneDiffuseLightingPrimitive
Constructors
| Name | Description |
|---|---|
| SceneDiffuseLightingPrimitive(SceneLightSource, SceneColor) | Initializes a new instance of the SceneDiffuseLightingPrimitive class. |
SceneDiffuseLightingPrimitive(SceneLightSource, SceneColor)
SceneDiffuseLightingPrimitive.csInitializes a new instance of the SceneDiffuseLightingPrimitive class.
public SceneDiffuseLightingPrimitive(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. |
| DiffuseConstant | Gets the factor of the light: diffuseConstant. The default is 1. |
| Input | Gets the input: in. |
| Light | Gets the light. |
| SurfaceScale | Gets the height of the surface where the alpha is 1: surfaceScale. The default is 1. |
DiffuseConstant
SceneDiffuseLightingPrimitive.csGets the factor of the light: diffuseConstant. The default is 1.
public double DiffuseConstant { get; init; }Property value
Exceptions
ArgumentException- The value is not a finite number.
ArgumentOutOfRangeException- The value is negative.
SurfaceScale
SceneDiffuseLightingPrimitive.csGets the height of the surface where the alpha is 1: surfaceScale. The default is 1.
public double SurfaceScale { get; init; }