feDiffuseLighting {gridSVG} | R Documentation |
Light an image using the alpha channel as a bump map.
Description
This filter primitive lights an image using the alpha channel as a
bump map. The resulting image is an RGBA opaque image based on the
light colour with alpha = 1
everywhere. The lighting
calculation follows the standard diffuse component of the Phong
lighting model. The resulting image depends on the light colour, light
position and surface geometry of the input bump map.
Usage
feDiffuseLighting(input = NA,
surfaceScale = 1, diffuseConstant = 1,
kernelUnitLength = NA, col = "white",
lightSource = NULL, ...)
Arguments
input |
Identifies an input for this filter primtive. See
|
surfaceScale |
Scale applied to the input alpha surface. |
diffuseConstant |
|
kernelUnitLength |
The first number is the |
col |
The colour to apply to the light from |
lightSource |
A light source object, produced by one of
|
... |
Further arguments to be passed onto |
Details
For more information about this primitive, consult the reference to the SVG specification.
Value
An fe.diffuse.lighting
object.
Author(s)
Simon Potter
References
https://www.w3.org/TR/SVG/filters.html#feDiffuseLightingElement
See Also
filterEffect
fe
,
feDistantLight
, fePointLight
,
feSpotLight
.