summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-13 08:42:41 +0100
committerGitHub <noreply@github.com>2020-01-13 08:42:41 +0100
commitb5eb45551c73b35753a07c7cbfc366c60b7ac8cf (patch)
tree92463f56a526ce9d5e0ce7de3e8babac3d277c33
parent269eb5f06c8874e1257137eabe121d4501758ded (diff)
parent796d35d8b3af2ea78767149c07a2aae4bd0510cf (diff)
Merge pull request #35057 from clayjohn/GLES3-fix_irradiance_map
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++;
}
}