summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2/deferred/skyV.glsl
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-10-10 00:44:34 +0100
committerGraham Linden <graham@lindenlab.com>2018-10-10 00:44:34 +0100
commit4b174a31c8db1bf7f378f9b088c1335651a34ec5 (patch)
treee731f5895870a2ba07281245e4a30665001a25bd /indra/newview/app_settings/shaders/class2/deferred/skyV.glsl
parent6015e2a5059a03c54c7024e84bb3467bf32c4436 (diff)
Move moisture/ice/droplet radius controls to atmos tab instead of (hidden) density tab.
Make frag shader version of vert WL shader to include rainbow/halo effect in non-advanced WL sky.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred/skyV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/skyV.glsl42
1 files changed, 42 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/skyV.glsl b/indra/newview/app_settings/shaders/class2/deferred/skyV.glsl
new file mode 100644
index 0000000000..bcf775577a
--- /dev/null
+++ b/indra/newview/app_settings/shaders/class2/deferred/skyV.glsl
@@ -0,0 +1,42 @@
+/**
+ * @file WLSkyV.glsl
+ *
+ * $LicenseInfo:firstyear=2005&license=viewerlgpl$
+ * Second Life Viewer Source Code
+ * Copyright (C) 2005, Linden Research, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation;
+ * version 2.1 of the License only.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
+ * $/LicenseInfo$
+ */
+
+uniform mat4 modelview_projection_matrix;
+
+ATTRIBUTE vec3 position;
+
+// SKY ////////////////////////////////////////////////////////////////////////
+// The vertex shader for creating the atmospheric sky
+///////////////////////////////////////////////////////////////////////////////
+
+VARYING vec3 pos;
+
+void main()
+{
+
+ // World / view / projection
+ pos = position.xyz;
+ gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);
+}