summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-04-28 15:51:31 +0000
committerDave Parks <davep@lindenlab.com>2022-04-28 15:51:31 +0000
commitdeffbca3ee209f6aea3358692d9ca6dc7090e748 (patch)
tree8aa3ecfe2d8ebf5714a76c2fc77c2b630a0e80e0 /indra/newview/llviewermenu.cpp
parenta3ffa9f006b008b5faad248f700c8c2fbc6b74fd (diff)
SL-17281 environment map prototype (stupid slow and hacky, but provides a way to get a "real" environment map for shader development)
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index e3de4267dc..f5ea060e82 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -8304,6 +8304,12 @@ void handle_cache_clear_immediately()
LLNotificationsUtil::add("ConfirmClearCache", LLSD(), LLSD(), callback_clear_cache_immediately);
}
+void handle_override_environment_map()
+{
+ gPipeline.overrideEnvironmentMap();
+}
+
+
void handle_web_content_test(const LLSD& param)
{
std::string url = param.asString();
@@ -9402,6 +9408,8 @@ void initialize_menus()
view_listener_t::addMenu(new LLDevelopTextureFetchDebugger(), "Develop.SetTexFetchDebugger");
//Develop (clear cache immediately)
commit.add("Develop.ClearCache", boost::bind(&handle_cache_clear_immediately) );
+ //Develop (override environment map)
+ commit.add("Develop.OverrideEnvironmentMap", boost::bind(&handle_override_environment_map));
// Admin >Object
view_listener_t::addMenu(new LLAdminForceTakeCopy(), "Admin.ForceTakeCopy");