SL-9632 Cleanup: Add note about potential missing inverse pow() texture_gamma

meow-7.2.2
Ptolemy 2020-06-29 18:18:58 -07:00
parent 9aaa03a0d2
commit ba1d4e508c
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}