15#include <vsg/lighting/Light.h>
16#include <vsg/maths/common.h>
17#include <vsg/nodes/Node.h>
23 class VSG_DECLSPEC DirectionalLight :
public Inherit<Light, DirectionalLight>
27 DirectionalLight(
const DirectionalLight& rhs,
const CopyOp& copyop = {});
29 dvec3 direction = dvec3(0.0, 0.0, -1.0);
30 float angleSubtended = 0.0090f;
36 void read(
Input& input)
override;
37 void write(
Output& output)
const override;
40 virtual ~DirectionalLight() {}
DirectionalLight represents a directional light source - used for light sources that are treated as i...
Definition DirectionalLight.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 DirectionalLight.h:33