summaryrefslogtreecommitdiff
path: root/indra/llrender/llshadermgr.cpp
diff options
context:
space:
mode:
authorcosmic-linden <111533034+cosmic-linden@users.noreply.github.com>2023-02-28 10:05:35 -0800
committerGitHub <noreply@github.com>2023-02-28 10:05:35 -0800
commit4478decbe8d085d1de02813712d8d55952e6c4b2 (patch)
tree87c35c15560c9148498b46aee1b819000d69d890 /indra/llrender/llshadermgr.cpp
parentd5e558fffc0722398a9b4c2df681f2a6ce247b7f (diff)
parentb27c41578b4bb54ee87fbb8d05f29d9d9a9e2768 (diff)
Merge pull request #96 from secondlife/SL-19729
SL-19279: LLGLSLShader::bindXXX is not free. Pack the uniforms
Diffstat (limited to 'indra/llrender/llshadermgr.cpp')
-rw-r--r--indra/llrender/llshadermgr.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index c355115e8c..6fb319fd5b 100644
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -1074,20 +1074,12 @@ void LLShaderMgr::initAttribsAndUniforms()
mReservedUniforms.push_back("object_plane_s");
mReservedUniforms.push_back("object_plane_t");
- mReservedUniforms.push_back("texture_base_color_scale"); // (GLTF)
- mReservedUniforms.push_back("texture_base_color_rotation"); // (GLTF)
- mReservedUniforms.push_back("texture_base_color_offset"); // (GLTF)
- mReservedUniforms.push_back("texture_normal_scale"); // (GLTF)
- mReservedUniforms.push_back("texture_normal_rotation"); // (GLTF)
- mReservedUniforms.push_back("texture_normal_offset"); // (GLTF)
- mReservedUniforms.push_back("texture_metallic_roughness_scale"); // (GLTF)
- mReservedUniforms.push_back("texture_metallic_roughness_rotation"); // (GLTF)
- mReservedUniforms.push_back("texture_metallic_roughness_offset"); // (GLTF)
- mReservedUniforms.push_back("texture_emissive_scale"); // (GLTF)
- mReservedUniforms.push_back("texture_emissive_rotation"); // (GLTF)
- mReservedUniforms.push_back("texture_emissive_offset"); // (GLTF)
-
- llassert(mReservedUniforms.size() == LLShaderMgr::TEXTURE_EMISSIVE_OFFSET+1);
+ mReservedUniforms.push_back("texture_base_color_transform"); // (GLTF)
+ mReservedUniforms.push_back("texture_normal_transform"); // (GLTF)
+ mReservedUniforms.push_back("texture_metallic_roughness_transform"); // (GLTF)
+ mReservedUniforms.push_back("texture_emissive_transform"); // (GLTF)
+
+ llassert(mReservedUniforms.size() == LLShaderMgr::TEXTURE_EMISSIVE_TRANSFORM+1);
mReservedUniforms.push_back("viewport");