Parammanagers are really not done well. Added manager-specific shader lists instead of just having them dig down the global list every update.

This commit is contained in:
Shyotl
2011-08-09 04:30:35 -05:00
parent 04ea6a967e
commit bff63ac682
5 changed files with 63 additions and 30 deletions

View File

@@ -225,6 +225,8 @@ public:
LLWaterParamManager();
~LLWaterParamManager();
void updateShaderLinks();
/// load a preset file
void loadAllPresets(const std::string & fileName);
@@ -319,6 +321,7 @@ public:
private:
LLVector4 mWaterPlane;
F32 mWaterFogKS;
std::vector<LLGLSLShader *> mShaderList;
// our parameter manager singleton instance
static LLWaterParamManager * sInstance;