From 507c4921826e73635f6ae31087ab0e6cd1280f43 Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Fri, 8 Jun 2018 22:22:20 +0100 Subject: Add specific shader for the moon to allow different rendering at day vs night. Add MouseMoon positioning ala MouseSun debug setting and accessors to use it. --- indra/llrender/llshadermgr.cpp | 4 +- indra/newview/app_settings/logcontrol.xml | 2 +- indra/newview/app_settings/settings.xml | 11 ++++ .../shaders/class1/windlight/moonF.glsl | 58 ++++++++++++++++++++++ .../shaders/class1/windlight/moonV.glsl | 48 ++++++++++++++++++ indra/newview/lldrawpoolwlsky.cpp | 18 +++++-- indra/newview/llsky.cpp | 14 ++++++ indra/newview/llsky.h | 2 + indra/newview/lltoolgun.cpp | 9 +++- indra/newview/llviewershadermgr.cpp | 25 +++++++++- indra/newview/llviewershadermgr.h | 1 + indra/newview/llvosky.cpp | 36 ++++++++++++++ indra/newview/llvosky.h | 2 + 13 files changed, 219 insertions(+), 11 deletions(-) create mode 100644 indra/newview/app_settings/shaders/class1/windlight/moonF.glsl create mode 100644 indra/newview/app_settings/shaders/class1/windlight/moonV.glsl (limited to 'indra') diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index fd187b99ee..f00d97cd47 100644 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -552,8 +552,8 @@ void LLShaderMgr::dumpObjectLog(GLhandleARB ret, BOOL warns, const std::string& if (log.length() > 0) { - LL_INFOS("ShaderErrors") << "Shader loading from " << fname << ":\n" << LL_ENDL; - LL_INFOS("ShaderErrors") << log << LL_ENDL; + LL_DEBUGS() << "Shader loading from " << fname << ":\n" << LL_ENDL; + LL_DEBUGS() << log << LL_ENDL; } } diff --git a/indra/newview/app_settings/logcontrol.xml b/indra/newview/app_settings/logcontrol.xml index 951c8edcc7..670dfe2dec 100644 --- a/indra/newview/app_settings/logcontrol.xml +++ b/indra/newview/app_settings/logcontrol.xml @@ -50,8 +50,8 @@ tags + ShaderErrors/string>