Skip to content
Snippets Groups Projects
Commit 44f2286e authored by David Parks's avatar David Parks
Browse files

SL-18190 Use bindDeferredShader in alpha pool. Don't redundantly apply ao to irradiance.

parent d53c0773
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -157,7 +157,8 @@ void main()
vec3 irradiance = vec3(0);
vec3 radiance = vec3(0);
sampleReflectionProbes(irradiance, radiance, pos.xyz, norm.xyz, gloss);
irradiance = max(amblit*1.725,irradiance*ambocc);
irradiance = max(amblit*1.725,irradiance);
vec3 f0 = vec3(0.04);
vec3 baseColor = diffuse.rgb;
......
......@@ -751,7 +751,7 @@ void LLDrawPoolAlpha::renderAlpha(U32 mask, bool depth_only, bool rigged)
if (current_shader != target_shader)
{// If we need shaders, and we're not ALREADY using the proper shader, then bind it
// (this way we won't rebind shaders unnecessarily).
target_shader->bind();
gPipeline.bindDeferredShader(*target_shader);
}
LLVector4 spec_color(1, 1, 1, 1);
......
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