15 #include <osg/ref_ptr>
24 #define MAX_TEXTURES 8
28 #define ENV_MAP_SLOT 8
45 class DtOpenGLCubeMap;
46 class DtOsgStateComponentContext;
63 static std::string theClassName();
66 void setPerPixelLightingEnabled(
bool enabled);
69 bool getPerPixelLightingEnabled()
const;
78 void generateShaders(osg::Node* node,
const std::string& name =
"",
bool shareState =
true,
bool force=
false);
81 void ts_generateShaders(osg::Node* node,
DtOsgFileCache& fileCache,
const std::string& name =
"",
bool shareState =
true,
bool force=
false);
85 void optimizeStateSharing(osg::Node* node);
88 const std::string& getShaderFolderPath()
const;
95 void disableShaders(osg::StateSet *stateSet);
101 void installEnvironmentMap(osg::StateSet* stateSet);