9#ifndef AVARA3D_VISUAL_LIGHT_SPOTLIGHT_H
10#define AVARA3D_VISUAL_LIGHT_SPOTLIGHT_H
16#include "a3d/visual/light/Attenuation.h"
17#include "a3d/visual/light/Light.h"
89 float innerAngleCos() const;
90 float outerAngleCos() const;
Represents a normalized RGBA color.
Base class for light sources attached to Scene Nodes.
const std::optional< std::string > & name() const
Returns the optional light name.
const Color & color() const
Returns the light color.
Cone-shaped light located and oriented by its containing Node.
SpotLight(const std::string &name, const Color &color)
Creates a SpotLight with name and color.
FeatheringMode featheringMode() const
Returns the angular feathering curve.
float outerAngle() const
Returns the outer cone half-angle in radians.
const Attenuation & attenuation() const
Returns the distance-attenuation coefficients.
SpotLight(const Color &color)
Creates an unnamed SpotLight with color.
FeatheringMode
Selects the intensity curve between the outer and inner cone angles.
SpotLight(const std::string &name)
Creates a named white SpotLight.
float innerAngle() const
Returns the inner cone half-angle in radians.
SpotLight()
Creates an unnamed white SpotLight.
Distance-attenuation coefficients for point and spot lights.