25 #ifndef __ScenePointLight_HH__
26 #define __ScenePointLight_HH__
28 #include <bias_config.h>
30 #ifndef BIAS_HAVE_OPENGL
31 # error You need BIAS with USE_OpenGL Please recompile BIAS.
32 #endif // BUILD_GLviewer
35 #include <GLviewer/Scenes/SceneBase.hh>
36 #include <GLviewer/Controller/ControlInterface.hh>
37 #include <Base/Math/Vector3.hh>
57 ambient_[0] = am[0]; ambient_[1] = am[1];
58 ambient_[2] = am[2]; ambient_[3] = am[3];
62 diffuse_[0] = di[0]; diffuse_[1] = di[1];
63 diffuse_[2] = di[2]; diffuse_[3] = di[3];
67 specular_[0] = sp[0]; specular_[1] = sp[1];
68 specular_[2] = sp[2]; specular_[3] = sp[3];
72 drawLight_ = drawLight;
76 lightAsHeadALight_ = asHeadLight;
81 useAttenuation_ = useAttenuation;
87 attenuationFactors_[0] = a0; attenuationFactors_[1] = a1;
88 attenuationFactors_[2] = a2;
95 void DrawLightPosition_();
105 float attenuationFactors_[3];
void SetLightAsHeadLight(bool asHeadLight)
void SetAttenuationFactors(double a0, double a1, double a2)
Set polynomial factors for light attenuation function, i.e.
void SetSpecular(BIAS::Vector4< double > sp)
class Vector4 contains a Vector of dim.
void SetDiffuse(BIAS::Vector4< double > di)
BIAS::Vector3< double > lightPos_
Base class for all scenes.
void SetLightPosition(BIAS::Vector3< double > pos)
void UseAttenuation(bool useAttenuation)
Enable/disable attenuation for point light.
void SetAmbient(BIAS::Vector4< double > am)
void SetDrawLightPosition(bool drawLight)