Merge pull request #35057 from clayjohn/GLES3-fix_irradiance_map

Fix generation of irradiance map
This commit is contained in:
Rémi Verschelde 2020-01-13 08:42:41 +01:00 committed by GitHub
commit b5eb45551c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -309,7 +309,7 @@ void main() {
}
st /= vec2(M_PI * 2.0, M_PI);
irradiance += texture(source_panorama, st, source_mip_level).rgb * cos(theta) * sin(theta);
irradiance += textureLod(source_panorama, st, source_mip_level).rgb * cos(theta) * sin(theta);
num_samples++;
}
}