15#include <vsg/lighting/Light.h>
16#include <vsg/maths/common.h>
17#include <vsg/nodes/Node.h>
23 class VSG_DECLSPEC SpotLight :
public Inherit<Light, SpotLight>
27 SpotLight(
const SpotLight& rhs,
const CopyOp& copyop = {});
29 dvec3 position = dvec3(0.0, 0.0, 0.0);
30 dvec3 direction = dvec3(0.0, 0.0, -1.0);
31 double innerAngle = radians(30.0);
32 double outerAngle = radians(45.0);
39 void read(
Input& input)
override;
40 void write(
Output& output)
const override;
43 virtual ~SpotLight() {}
SpotLight represents a local point light source whose intensity varies as a spot light.
Definition SpotLight.h:24
int compare(const Object &rhs) const override
compare two objects, return -1 if this object is less than rhs, return 0 if it's equal,...
ref_ptr< Object > clone(const CopyOp ©op={}) const override
Definition SpotLight.h:36