summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2020-01-12 14:45:31 -0800
committerclayjohn <claynjohn@gmail.com>2020-01-12 14:45:31 -0800
commit796d35d8b3af2ea78767149c07a2aae4bd0510cf (patch)
tree92463f56a526ce9d5e0ce7de3e8babac3d277c33
parent269eb5f06c8874e1257137eabe121d4501758ded (diff)
Fix generation of irradiance map
-rw-r--r--drivers/gles3/shaders/cubemap_filter.glsl2
1 files changed, 1 insertions, 1 deletions
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++;
}
}