123class SoLight :
public SoNode
126 SO_NODE_ABSTRACT_HEADER( SoLight );
151 virtual void doAction(
SoAction* action );
155 virtual void getCameras(
SoState* SO_UNUSED_PARAM(state),
SoPath* SO_UNUSED_PARAM(scene),
156 float SO_UNUSED_PARAM(visibilityLength),
SoNodeList& SO_UNUSED_PARAM(lightCams))
160 static void initClass();
161 static void exitClass();
164 int32_t getLightId()
const;
166 struct LightConfiguration
179 float constantAttenuation;
180 float linearAttenuation;
181 float quadraticAttenuation;
186 position =
SbVec4f( 0, 0, 0, 0 );
187 spotDirection =
SbVec4f( 0, 0, -1, 0 );
190 ambientIntensity =
SbVec4f( 0, 0, 0, 1 );
191 diffuseIntensity =
SbVec4f( 1, 1, 1, 1 );
192 specularIntensity =
SbVec4f( 1, 1, 1, 1 );
193 constantAttenuation = 1.0f;
194 linearAttenuation = 0.0f;
195 quadraticAttenuation = 0.0f;
199 LightConfiguration lightConfiguration;
211 SoNodeList m_cameras;
216 static SoLight::Members* getMembers(
const SoLight* sg );