summaryrefslogtreecommitdiff
path: root/indra/llrender/llglslshader.h
diff options
context:
space:
mode:
authorMichael Pohoreski <ptolemy@lindenlab.com>2021-04-29 21:23:25 +0000
committerMichael Pohoreski <ptolemy@lindenlab.com>2021-04-29 21:23:25 +0000
commit54d4406df7b342c0ecd5f79829ba0bb526b97d8b (patch)
tree2def8572891901526e41b84e2780725db25db527 /indra/llrender/llglslshader.h
parent59ab227c4020565f85e6fc2edf3e3fcc16abb574 (diff)
parent8fc6fcc0a6f1427e58ea35e5cab53af6f79f1be4 (diff)
Merged in SL-14113 (pull request #526)
SL-14113 Approved-by: Euclid Linden
Diffstat (limited to 'indra/llrender/llglslshader.h')
-rw-r--r--indra/llrender/llglslshader.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/llrender/llglslshader.h b/indra/llrender/llglslshader.h
index 7cf6d3c941..e2d0031740 100644
--- a/indra/llrender/llglslshader.h
+++ b/indra/llrender/llglslshader.h
@@ -67,6 +67,13 @@ public:
class LLGLSLShader
{
public:
+ // NOTE: Keep gShaderConsts and LLGLSLShader::ShaderConsts_e in sync!
+ enum eShaderConsts
+ {
+ SHADER_CONST_CLOUD_MOON_DEPTH
+ , SHADER_CONST_STAR_DEPTH
+ , NUM_SHADER_CONSTS
+ };
enum
{
@@ -149,7 +156,9 @@ public:
void clearPermutations();
void addPermutation(std::string name, std::string value);
void removePermutation(std::string name);
-
+
+ void addConstant( const LLGLSLShader::eShaderConsts shader_const );
+
//enable/disable texture channel for specified uniform
//if given texture uniform is active in the shader,
//the corresponding channel will be active upon return