summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2023-08-29 05:08:47 -0700
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2023-08-29 05:08:47 -0700
commit348d427db6537746c5c8c9a0d1aa021f074afbb5 (patch)
treee2782a5638bd489d30dcd0bb1fd507e575cc1fe2 /indra/newview/app_settings/shaders
parentc5bfe869154cd4708c9bca63f08cb4c958198638 (diff)
Add a probe strength uniform for hero probes.
On standard reflection probes this doesn't really do anything. DRTVWR-583
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r--indra/newview/app_settings/shaders/class1/interface/radianceGenF.glsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/interface/radianceGenF.glsl b/indra/newview/app_settings/shaders/class1/interface/radianceGenF.glsl
index 9ecdf0bf77..cb6f34713c 100644
--- a/indra/newview/app_settings/shaders/class1/interface/radianceGenF.glsl
+++ b/indra/newview/app_settings/shaders/class1/interface/radianceGenF.glsl
@@ -38,6 +38,7 @@ in vec3 vary_dir;
uniform float mipLevel;
uniform int u_width;
uniform float max_probe_lod;
+uniform float probe_strength;
// =============================================================================================================
@@ -163,5 +164,6 @@ void main()
{
vec3 N = normalize(vary_dir);
frag_color = max(prefilterEnvMap(N), vec4(0));
+ frag_color.a *= probe_strength;
}
// =============================================================================================================