Skip to content
Snippets Groups Projects
Commit ba1d4e50 authored by Ptolemy's avatar Ptolemy
Browse files

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

parent 9aaa03a0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment