summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2020-06-29 18:18:58 -0700
committerPtolemy <ptolemy@lindenlab.com>2020-06-29 18:22:29 -0700
commitba1d4e508c011c14b5150a56aa14d2f3dd924ebd (patch)
tree4c062dfb1c2e4a47bace4d8381afc95c8e50de21 /indra/newview/app_settings/shaders
parent9aaa03a0d2bb2bfd0290744451c898d3705239d3 (diff)
SL-9632 Cleanup: Add note about potential missing inverse pow() texture_gamma
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r--indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl b/indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl
index 0fde2049d5..1855cfceeb 100644
--- a/indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl
+++ b/indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl
@@ -30,7 +30,7 @@ out vec4 frag_color;
#endif
uniform float minimum_alpha;
-uniform float texture_gamma;
+uniform float texture_gamma; // either 1.0 or 2.2; see: "::TEXTURE_GAMMA"
// render_hud_attachments() -> HUD objects set LLShaderMgr::NO_ATMO; used in LLDrawPoolAlpha::beginRenderPass()
uniform int no_atmo;
@@ -61,6 +61,10 @@ void fullbright_lighting()
color.rgb = fullbrightScaleSoftClip(color.rgb);
}
+ //*TODO: Are we missing an inverse pow() here?
+ // class1\lighting\lightFullbrightF.glsl has:
+ // color.rgb = pow(color.rgb, vec3(1.0/texture_gamma));
+
frag_color = color;
}