diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-01-20 15:48:18 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-01-20 15:48:25 +0300 |
commit | bb692a2d0f78cc5702aee9fceda4fa500ec5d7e8 (patch) | |
tree | 16bafbe577374c4cf5c05bc354d54fbe28fb4430 /source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl | |
parent | ccfe5bf2158f4df47db7e2763282af10182183ed (diff) |
Fix T59747 EEVEE: Bug on EnvironmentTexture
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl b/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl index 978ce149be4..8c2619650b9 100644 --- a/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/lit_surface_frag.glsl @@ -177,7 +177,8 @@ void CLOSURE_NAME(vec3 N out_refr = vec3(0.0); #endif -#ifdef SHADOW_SHADER +#if defined(SHADOW_SHADER) || defined(WORLD_BACKGROUND) + /* This makes shader resources become unused and avoid issues with samplers. (see T59747) */ return; #else |