Module lighting

Source
Expand description

Lighting filters and light nodes.

Macrosยง

impl_lighting_filter ๐Ÿ”’

Structsยง

DiffuseLighting
Resolved feDiffuseLighting primitive for rendering.
DiffuseLightingParams
FeDiffuseLighting
The feDiffuseLighting filter primitives.
FeDistantLight
FePointLight
FeSpecularLighting
The feSpecularLighting filter primitives.
FeSpotLight
Light ๐Ÿ”’
Normal
2D normal and factor stored separately.
SpecularLighting
Resolved feSpecularLighting primitive for rendering.
SpecularLightingParams

Enumsยง

LightSource ๐Ÿ”’
A light source with affine transformations applied.
UntransformedLightSource ๐Ÿ”’
A light source before applying affine transformations, straight out of the SVG.

Functionsยง

color_and_vector ๐Ÿ”’
Returns the color and unit (or null) vector from the image sample to the light.
diffuse_alpha ๐Ÿ”’
specular_alpha ๐Ÿ”’
transform_dist ๐Ÿ”’
Applies the primitiveUnits coordinate transformation to a non-x or y distance.