summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorsecretfoxtail <remmy@megapahit.net>2024-10-12 06:18:09 -0600
committersecretfoxtail <remmy@megapahit.net>2024-10-12 06:18:09 -0600
commit9b162485df066a962b70d7c9944ff8c9e8b7a435 (patch)
tree4166ef35deca352b9a2e8302fa4e0ff469e3edc6 /indra/newview
parent27334f4b24b3f66ecb74f11acce9e386632f38c6 (diff)
Revert "Rename uniform vec4 color to color4"
This reverts commit a42a77f0aacf5878f29edafc42b8b230dc290bb6.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/highlightF.glsl4
-rw-r--r--indra/newview/app_settings/shaders/class1/interface/debugF.glsl4
-rw-r--r--indra/newview/app_settings/shaders/class1/interface/highlightF.glsl4
-rw-r--r--indra/newview/app_settings/shaders/class1/interface/solidcolorF.glsl6
4 files changed, 9 insertions, 9 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/highlightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/highlightF.glsl
index 0c6655e7f4..5c09950712 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/highlightF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/highlightF.glsl
@@ -25,14 +25,14 @@
out vec4 frag_data[4];
-uniform vec4 color4;
+uniform vec4 color;
uniform sampler2D diffuseMap;
in vec2 vary_texcoord0;
void main()
{
- frag_data[0] = color4*texture(diffuseMap, vary_texcoord0.xy);
+ frag_data[0] = color*texture(diffuseMap, vary_texcoord0.xy);
frag_data[1] = vec4(0.0);
frag_data[2] = vec4(0.0, 1.0, 0.0, GBUFFER_FLAG_SKIP_ATMOS);
frag_data[3] = vec4(0);
diff --git a/indra/newview/app_settings/shaders/class1/interface/debugF.glsl b/indra/newview/app_settings/shaders/class1/interface/debugF.glsl
index 29ab8265aa..f863d1ad20 100644
--- a/indra/newview/app_settings/shaders/class1/interface/debugF.glsl
+++ b/indra/newview/app_settings/shaders/class1/interface/debugF.glsl
@@ -25,9 +25,9 @@
out vec4 frag_color;
-uniform vec4 color4;
+uniform vec4 color;
void main()
{
- frag_color = max(color4, vec4(0));
+ frag_color = max(color, vec4(0));
}
diff --git a/indra/newview/app_settings/shaders/class1/interface/highlightF.glsl b/indra/newview/app_settings/shaders/class1/interface/highlightF.glsl
index d2e160277d..c70acf4cde 100644
--- a/indra/newview/app_settings/shaders/class1/interface/highlightF.glsl
+++ b/indra/newview/app_settings/shaders/class1/interface/highlightF.glsl
@@ -25,12 +25,12 @@
out vec4 frag_color;
-uniform vec4 color4;
+uniform vec4 color;
uniform sampler2D diffuseMap;
in vec2 vary_texcoord0;
void main()
{
- frag_color = max(color4*texture(diffuseMap, vary_texcoord0.xy), vec4(0));
+ frag_color = max(color*texture(diffuseMap, vary_texcoord0.xy), vec4(0));
}
diff --git a/indra/newview/app_settings/shaders/class1/interface/solidcolorF.glsl b/indra/newview/app_settings/shaders/class1/interface/solidcolorF.glsl
index 8b14e60cd7..b7b2306412 100644
--- a/indra/newview/app_settings/shaders/class1/interface/solidcolorF.glsl
+++ b/indra/newview/app_settings/shaders/class1/interface/solidcolorF.glsl
@@ -27,13 +27,13 @@ out vec4 frag_color;
uniform sampler2D tex0;
-uniform vec4 color4;
+uniform vec4 color;
in vec2 vary_texcoord0;
void main()
{
- float alpha = texture(tex0, vary_texcoord0.xy).a * color4.a;
+ float alpha = texture(tex0, vary_texcoord0.xy).a * color.a;
- frag_color = vec4(color4.rgb, alpha);
+ frag_color = vec4(color.rgb, alpha);
}