Donner
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::svg::components::LightSourceComponent Struct Reference

Light source parameters, stored on feDistantLight, fePointLight, or feSpotLight child elements. More...

#include "donner/svg/components/filter/FilterPrimitiveComponent.h"

Public Types

enum class  Type : std::uint8_t {
  Distant ,
  Point ,
  Spot
}
 Light source type.

Public Member Functions

 LightSourceComponent (Type t)

Public Attributes

Type type
double azimuth = 0.0
 Angle in the XY plane (degrees).
double elevation = 0.0
 Angle above the XY plane (degrees).
double x = 0.0
 X position.
double y = 0.0
 Y position.
double z = 0.0
 Z position.
double pointsAtX = 0.0
 X target.
double pointsAtY = 0.0
 Y target.
double pointsAtZ = 0.0
 Z target.
double spotExponent = 1.0
 Spotlight exponent (falloff).
std::optional< double > limitingConeAngle
 Cone angle limit (degrees).

Detailed Description

Light source parameters, stored on feDistantLight, fePointLight, or feSpotLight child elements.


The documentation for this struct was generated from the following file: