From 796d35d8b3af2ea78767149c07a2aae4bd0510cf Mon Sep 17 00:00:00 2001 From: clayjohn Date: Sun, 12 Jan 2020 14:45:31 -0800 Subject: Fix generation of irradiance map --- drivers/gles3/shaders/cubemap_filter.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles3/shaders/cubemap_filter.glsl b/drivers/gles3/shaders/cubemap_filter.glsl index f94ac8c81c..3f3313c3a7 100644 --- a/drivers/gles3/shaders/cubemap_filter.glsl +++ b/drivers/gles3/shaders/cubemap_filter.glsl @@ -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++; } } -- cgit v1.2.3