Skip to content
Snippets Groups Projects
Commit 8925e821 authored by Ptolemy's avatar Ptolemy
Browse files

SL-13084: Add references to other common files

parent 4a92f178
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,6 @@ uniform float cloud_scale; ...@@ -75,7 +75,6 @@ uniform float cloud_scale;
// indra\newview\llsettingsvo.cpp // indra\newview\llsettingsvo.cpp
void main() void main()
{ {
// World / view / projection // World / view / projection
gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0); gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);
......
...@@ -36,6 +36,7 @@ ATTRIBUTE vec2 texcoord0; ...@@ -36,6 +36,7 @@ ATTRIBUTE vec2 texcoord0;
VARYING vec4 vary_CloudColorSun; VARYING vec4 vary_CloudColorSun;
VARYING vec4 vary_CloudColorAmbient; VARYING vec4 vary_CloudColorAmbient;
VARYING float vary_CloudDensity; VARYING float vary_CloudDensity;
VARYING vec2 vary_texcoord0; VARYING vec2 vary_texcoord0;
VARYING vec2 vary_texcoord1; VARYING vec2 vary_texcoord1;
VARYING vec2 vary_texcoord2; VARYING vec2 vary_texcoord2;
...@@ -66,19 +67,20 @@ uniform vec4 cloud_color; ...@@ -66,19 +67,20 @@ uniform vec4 cloud_color;
uniform float cloud_scale; uniform float cloud_scale;
// NOTE: Keep these in sync!
// indra\newview\app_settings\shaders\class1\deferred\skyV.glsl
// indra\newview\app_settings\shaders\class1\deferred\cloudsV.glsl
// indra\newview\app-settings\shaders\class2\windlight\cloudsV.glsl
// indra\newview\lllegacyatmospherics.cpp
// indra\newview\llsettingsvo.cpp
void main() void main()
{ {
// World / view / projection // World / view / projection
gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0); gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);
// Texture coords // Texture coords
// SL-13084 EEP added support for custom cloud textures -- flip them horizontally to match the preview of Clouds > Cloud Scroll // SL-13084 EEP added support for custom cloud textures -- flip them horizontally to match the preview of Clouds > Cloud Scroll
// Keep in Sync! vary_texcoord0 = vec2( -texcoord0.x, texcoord0.y ); // See: LLSettingsVOSky::applySpecial
// * indra\newview\llsettingsvo.cpp
// * indra\newview\app_settings\shaders\class2\windlight\cloudsV.glsl
// * indra\newview\app_settings\shaders\class1\deferred\cloudsV.glsl
vary_texcoord0 = vec2( -texcoord0.x, texcoord0.y );
vary_texcoord0.xy -= 0.5; vary_texcoord0.xy -= 0.5;
vary_texcoord0.xy /= cloud_scale; vary_texcoord0.xy /= cloud_scale;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment