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

SL-17682: PBR: Fix spec reflection being blown out

parent 56a0a30e
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -289,6 +289,7 @@ void main() ...@@ -289,6 +289,7 @@ void main()
float gloss = 1.0 - perceptualRough; float gloss = 1.0 - perceptualRough;
sampleReflectionProbes(irradiance, specLight, legacyenv, pos.xyz, norm.xyz, gloss, 0.0); sampleReflectionProbes(irradiance, specLight, legacyenv, pos.xyz, norm.xyz, gloss, 0.0);
irradiance = max(amblit,irradiance); irradiance = max(amblit,irradiance);
specLight = srgb_to_linear(specLight);
#if HAS_IBL #if HAS_IBL
kSpec = mix( kSpec, iridescenceFresnel, iridescenceFactor); kSpec = mix( kSpec, iridescenceFresnel, iridescenceFactor);
#endif #endif
......
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