8#ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_SPOT_LIGHT_H
9#define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_SPOT_LIGHT_H
This class implements a node specification object.
Definition scenedescription/Node.h:77
SingleVector3 attenuation_
Attenuation field.
Definition scenedescription/sdx/x3d/SpotLight.h:85
SingleFloat radius_
Radius field.
Definition scenedescription/sdx/x3d/SpotLight.h:100
SingleVector3 direction_
Direction field.
Definition scenedescription/sdx/x3d/SpotLight.h:94
SingleFloat beamWidth_
BeamWidth field.
Definition scenedescription/sdx/x3d/SpotLight.h:88
SpotLight(const SDXEnvironment *environment)
Creates a new x3d spot light node.
static Scalar determineSpotExponent(const Scalar beamWidth, const Scalar cutOffAngle)
Determines the spot exponent for a given beam width and cut off angle.
void onGlobalLight(const HomogenousMatrix4 &world_T_light) override
Event function to update the position or direction of a light source with global state.
void onInitialize(const Rendering::SceneRef &scene, const Timestamp timestamp) override
Event function to inform the node that it has been initialized and can apply all internal values to c...
size_t objectAddress() const override
Returns the address of the most derived object.
SingleVector3 location_
Location field.
Definition scenedescription/sdx/x3d/SpotLight.h:97
SingleFloat cutOffAngle_
CutOffAngle field.
Definition scenedescription/sdx/x3d/SpotLight.h:91
void onFieldChanged(const std::string &fieldName) override
Event function to inform the node about a changed field.
NodeSpecification specifyNode()
Specifies the node type and the fields of this node.
X3DLightNode(const SDXEnvironment *environment)
Creates an abstract x3d light node.
This class implements a node environment container.
Definition SDXNode.h:62
This class implements a timestamp.
Definition Timestamp.h:64
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition HomogenousMatrix4.h:44
float Scalar
Definition of a scalar type.
Definition Math.h:129
SmartObjectRef< Scene > SceneRef
Definition of a smart object reference holding a scene node.
Definition rendering/Scene.h:29
Field0D< Vector3 > SingleVector3
Definition of a single field with 3D vector value.
Definition Field0D.h:95
Field0D< Scalar > SingleFloat
Definition of a single field with float value.
Definition Field0D.h:41
Namespace of the S(scene)D(escription)X X3D SceneDescription library.
Definition Appearance.h:26
Definition Appearance.h:23
Namespace of the SceneDescription library.
Definition DynamicNode.h:21
The namespace covering the entire Ocean framework.
Definition Accessor.h:15