#include "X3D_DirectionalLight.h" #include using namespace std; namespace X3DTK { namespace X3D { DirectionalLight::DirectionalLight() : X3DLightNode() { define(Recorder::getTypeName("DirectionalLight", "Lighting")); define(Recorder::getAttribute("direction", &DirectionalLight::_direction, SFVec3f(0.0f,0.0f,-1.0f))); } DirectionalLight::~DirectionalLight() { } void DirectionalLight::setDirection(const SFVec3f &direction) { _direction = direction; } } }