diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-29 13:06:48 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-29 13:06:48 +0300 |
commit | 643259415dc5eea78bfac0fbaa5b148b39932a17 (patch) | |
tree | ca8b1d6bc09e9753064b28dbca995f3130c44347 /source/blender/draw/engines/eevee/shaders/default_world_frag.glsl | |
parent | a0b08e7b66fe9b271874d2f97d588d936d2d50f2 (diff) |
EEVEE: LookDev fade out background option
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/default_world_frag.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/default_world_frag.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl b/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl index 472d9c577b4..9a1616648eb 100644 --- a/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl @@ -7,6 +7,7 @@ uniform mat4 ViewMatrixInverse; #ifdef LOOKDEV uniform mat3 StudioLightMatrix; uniform sampler2D image; +uniform float studioLightFadeout = 0.0; in vec3 viewPosition; #else uniform vec3 color; @@ -51,6 +52,7 @@ void main() { vec4 color; background_transform_to_world(viewPosition, worldvec); node_tex_environment_equirectangular(StudioLightMatrix * worldvec, image, color); + color *= (1.0 - studioLightFadeout); #endif FragColor = vec4(clamp(color.rgb, vec3(0.0), vec3(1e10)), backgroundAlpha); |