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/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 + 12 files changed, 217 insertions(+), 9 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/newview') 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>