feDiffuseLighting element | SVGFEDiffuseLightingElement object
Lights an image using the alpha channel as a bump map.
![]() ![]() |
Syntax
<feDiffuseLighting in="input" result="output" surfaceScale="2.5" kernelUnitLength="1,1" diffuseConstant="1" lighting-color="#e0e0e0" > <feDistantLight elevation="45" azimuth="45" /> </feDiffuseLighting>
DOM Information
Inheritance Hierarchy
Members
The SVGFEDiffuseLightingElement object has these types of members:
Properties
The SVGFEDiffuseLightingElement object has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only |
Defines the diffuse reflection constant. | |
|
Gets or sets the height of an element. | ||
| Read-only |
Identifies input for the given filter primitive. | |
| Read-only |
| |
| Read-only |
| |
| Read-only |
Provides a reference for the output result of a filter. | |
|
Defines the width of an element. | ||
|
Gets or sets the x-coordinate value. | ||
|
Gets or sets the y-coordinate value. |
Standards information
- Scalable Vector Graphics: Filter Effects, Section 15.25.13
Remarks
The resulting image is an RGBA opaque image based on the light color where alpha = 1.0. The lighting calculation follows the standard diffuse component of the Phong lighting model. The resulting image depends on the light color, the light position, and the surface geometry of the input bump map.
See also

