SL-17682: PBR: Fix irradiance to use amblit

meow-7.2.2
Ptolemy 2022-07-01 14:55:30 -07:00
parent d047b3f46b
commit 20a7dd5b50
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ void main()
vec3 specLight = vec3(0);
float gloss = 1.0 - perceptualRough;
sampleReflectionProbes(irradiance, specLight, legacyenv, pos.xyz, norm.xyz, gloss, 0.0);
irradiance = max(amblit,irradiance);
#if HAS_IBL
kSpec = mix( kSpec, iridescenceFresnel, iridescenceFactor);
#endif