Merge pull request #35057 from clayjohn/GLES3-fix_irradiance_map
Fix generation of irradiance map
This commit is contained in:
commit
b5eb45551c
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue