8#ifndef CO_VR_LIGHTING_H
9#define CO_VR_LIGHTING_H
23#include <util/common.h>
27#include <osg/LightSource>
46 ui::Menu *lightingMenu_ =
nullptr;
54 float specularlightStrength = 0.f;
59 multimap<string, osg::LightSource *>
m;
63 enum { MaxNumLights = 8 };
84 osg::ref_ptr<osg::LightSource>
light1;
85 osg::ref_ptr<osg::LightSource>
light2;
110 Light(osg::LightSource *ls, osg::Node *r)
135 int addLight(osg::LightSource *ls, osg::Group *parent = NULL, osg::Node *root = NULL,
const char *menuName = NULL);
142 osg::LightSource *
switchLight(osg::LightSource *ls,
bool on, osg::Node *limitToBranch = NULL);
Definition: ARToolKit.h:33
Definition: coVRLighting.h:41
ui::Slider * strengthSpecularlight_
Definition: coVRLighting.h:53
osg::ref_ptr< osg::LightSource > headlight
Definition: coVRLighting.h:125
bool headlightState
Definition: coVRLighting.h:48
osg::LightSource * removeLight(osg::LightSource *ls)
osg::LightSource * switchLight(osg::LightSource *ls, bool on, osg::Node *limitToBranch=NULL)
int addLight(osg::LightSource *ls, osg::Group *parent=NULL, osg::Node *root=NULL, const char *menuName=NULL)
osg::ref_ptr< osg::LightSource > spotlight
Definition: coVRLighting.h:126
bool isLightEnabled(size_t ln) const
void setShadowLight(osg::LightSource *ls)
osg::LightSource * createLightSource(const char *configName, const LightDef &defValue, bool force)
bool spotlightState
Definition: coVRLighting.h:57
multimap< string, osg::LightSource * > m
Definition: coVRLighting.h:59
vector< Light > lightList
Definition: coVRLighting.h:119
osg::Vec4 headlightSpec
Definition: coVRLighting.h:88
osg::ref_ptr< osg::LightSource > shadowlight
Definition: coVRLighting.h:127
osg::ref_ptr< osg::LightSource > light2
Definition: coVRLighting.h:85
ui::Button * switchHeadlight_
Definition: coVRLighting.h:47
ui::Button * switchOtherlights_
Definition: coVRLighting.h:50
osg::LightSource * getShadowLight()
Definition: coVRLighting.h:147
bool otherlightsState
Definition: coVRLighting.h:51
static coVRLighting * instance()
osg::ref_ptr< osg::LightSource > light1
Definition: coVRLighting.h:84
ui::Button * switchSpotlight_
Definition: coVRLighting.h:56
void switchOtherLights(bool on)
Definition: coVRLighting.h:66
float b
Definition: coVRLighting.h:67
Definition: coVRLighting.h:70
float w
Definition: coVRLighting.h:71
Definition: coVRLighting.h:74
float angle
Definition: coVRLighting.h:75
Definition: coVRLighting.h:78
RGB amb
Definition: coVRLighting.h:79
XYZW pos
Definition: coVRLighting.h:80
SpotDef spot
Definition: coVRLighting.h:81
Definition: coVRLighting.h:109
Light(osg::LightSource *ls, osg::Node *r)
Definition: coVRLighting.h:110
osg::ref_ptr< osg::LightSource > source
Definition: coVRLighting.h:115
osg::ref_ptr< osg::Node > root
Definition: coVRLighting.h:116
bool on
Definition: coVRLighting.h:117