15 #include <osg/ref_ptr>
25 #define MAX_TEXTURES 8
29 #define ENV_MAP_SLOT 8
46 class DtOpenGLCubeMap;
47 class DtOsgStateComponentContext;
64 static std::string theClassName();
67 void setPerPixelLightingEnabled(
bool enabled);
70 bool getPerPixelLightingEnabled()
const;
79 void generateShaders(osg::Node* node,
const std::string& name =
"",
bool shareState =
true,
bool force=
false);
82 void ts_generateShaders(osg::Node* node,
DtOsgFileCache& fileCache,
const std::string& name =
"",
bool shareState =
true,
bool force=
false);
86 void removeShaders(osg::Node* node);
89 void ts_removeShaders(osg::Node* node);
93 void optimizeStateSharing(osg::Node* node);
96 const std::string& getShaderFolderPath()
const;
103 void disableShaders(osg::StateSet *stateSet);
107 void installEnvironmentMap(osg::Camera* camera);