Fix generation of irradiance map

This commit is contained in:
clayjohn 2020-01-12 14:45:31 -08:00
parent 269eb5f06c
commit 796d35d8b3

View file

@ -309,7 +309,7 @@ void main() {
} }
st /= vec2(M_PI * 2.0, M_PI); 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++; num_samples++;
} }
} }