diff options
author | clayjohn <claynjohn@gmail.com> | 2020-01-12 14:45:31 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2020-01-12 14:45:31 -0800 |
commit | 796d35d8b3af2ea78767149c07a2aae4bd0510cf (patch) | |
tree | 92463f56a526ce9d5e0ce7de3e8babac3d277c33 | |
parent | 269eb5f06c8874e1257137eabe121d4501758ded (diff) |
Fix generation of irradiance map
-rw-r--r-- | drivers/gles3/shaders/cubemap_filter.glsl | 2 |
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++; } } |