diff options
author | Rye Mutt <rye@alchemyviewer.org> | 2023-03-10 09:23:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 08:23:24 -0600 |
commit | b9df40c5a3bfa9d5ea4df9e77d9e7422c2c18eb3 (patch) | |
tree | 77d8e7c611a9b0b013e43337e811f663cfe02078 /indra/newview | |
parent | 33e44b2059831594f91a84d07b316e8eee94bd4f (diff) |
Fix alpha blended blinn-phong glossiness in punctual lights and glossy env application (#117)
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/materialF.glsl | 1 |
1 files changed, 1 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 add1cb2a37..d0c4b68013 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/materialF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/materialF.glsl @@ -316,6 +316,7 @@ void main() //forward rendering, output lit linear color 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 vec3 pos = vary_position; |