27 color = lighting_color;
47 color = lighting_color;
48 l_x = light.
x * device_scale;
49 l_y = light.
y * device_scale;
50 l_z = light.
z * device_scale;
72 color = lighting_color;
73 l_x = light.
x * device_scale;
74 l_y = light.
y * device_scale;
75 l_z = light.
z * device_scale;
103 spmod = std::pow(spmod,
speExp);
3x3 matrix representing an affine transformation.
void light_components(NR::Fvector &lc)
Computes the light components of the distant light.
void light_vector(NR::Fvector &v)
Computes the light vector of the distant light.
DistantLight(DistantLightData const &light, guint32 lighting_color)
Constructor.
void light_components(NR::Fvector &lc)
Computes the light components of the distant light.
PointLight(PointLightData const &light, guint32 lighting_color, const Geom::Affine &trans, int device_scale=1)
Constructor.
void light_vector(NR::Fvector &v, double x, double y, double z)
Computes the light vector of the distant light at point (x,y,z).
SpotLight(SpotLightData const &light, guint32 lighting_color, const Geom::Affine &trans, int device_scale=1)
Constructor.
void light_vector(NR::Fvector &v, double x, double y, double z)
Computes the light vector of the distant light at point (x,y,z).
void light_components(NR::Fvector &lc, const NR::Fvector &L)
Computes the light components of the distant light at the current point.
constexpr uint32_t SP_RGBA32_R_U(uint32_t v)
constexpr uint32_t SP_RGBA32_G_U(uint32_t v)
constexpr uint32_t SP_RGBA32_B_U(uint32_t v)
SVG <filter> implementation, see sp-filter.cpp.
Helper class to stream background task notifications as a series of messages.
void normalize_vector(Fvector &v)
Normalizes a vector.
gdouble scalar_product(const Fvector &a, const Fvector &b)
Computes the scalar product between two Fvectors.
void convert_coord(gdouble &x, gdouble &y, gdouble &z, Geom::Affine const &trans)
TODO: insert short description here.
SVG <filter> implementation, see sp-filter.cpp.
SVG <filter> implementation, see sp-filter.cpp.
a type of 3 gdouble components vectors