diff options
author | Dave Parks <davep@lindenlab.com> | 2023-04-11 16:13:18 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-04-11 16:13:18 -0500 |
commit | 6efe63f8c5497db4d53738a682f3e97ccd535431 (patch) | |
tree | 65f4750f896d4f1b851f6990cc0f5b75ce6047a5 /indra/newview/app_settings/shaders/class3 | |
parent | b09e5324c75ba60b03476d60fe503209daeacbbf (diff) |
SL-19564 Add missing legacy_adjust
Diffstat (limited to 'indra/newview/app_settings/shaders/class3')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/materialF.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/materialF.glsl b/indra/newview/app_settings/shaders/class3/deferred/materialF.glsl index 1aef971d3a..d9e15738ad 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/materialF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/materialF.glsl @@ -47,6 +47,7 @@ void calcAtmosphericVarsLinear(vec3 inPositionEye, vec3 norm, vec3 light_dir, ou vec3 srgb_to_linear(vec3 cs); vec3 linear_to_srgb(vec3 cs); +vec3 legacy_adjust(vec3 c); #if (DIFFUSE_ALPHA_MODE == DIFFUSE_ALPHA_MODE_BLEND) @@ -316,6 +317,7 @@ void main() #if (DIFFUSE_ALPHA_MODE == DIFFUSE_ALPHA_MODE_BLEND) //forward rendering, output lit linear color + diffcol.rgb = legacy_adjust(diffcol.rgb); diffcol.rgb = srgb_to_linear(diffcol.rgb); spec.rgb = srgb_to_linear(spec.rgb); spec.a = glossiness; // pack glossiness into spec alpha for lighting functions |