diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-29 14:45:57 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-29 17:22:53 +0300 |
commit | f98c838b71e264f7f5dad6e953acd599d987ee55 (patch) | |
tree | ede8b09fc3129da67ca68a931c1c2c04f59145ec /source/blender/draw/engines/eevee/shaders/default_world_frag.glsl | |
parent | d5889f57ae06d21312f3a82bcefe17cc660aef49 (diff) |
EEVEE: LookDev reversed the background fadeout
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 | 4 |
1 files changed, 2 insertions, 2 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 386f3d68bf8..d2a654cecda 100644 --- a/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl @@ -7,7 +7,7 @@ uniform mat4 ViewMatrixInverse; #ifdef LOOKDEV uniform mat3 StudioLightMatrix; uniform sampler2D image; -uniform float studioLightFadeout = 0.0; +uniform float studioLightBackground = 1.0; in vec3 viewPosition; #endif uniform vec3 color; @@ -51,7 +51,7 @@ void main() { vec4 background_color; background_transform_to_world(viewPosition, worldvec); node_tex_environment_equirectangular(StudioLightMatrix * worldvec, image, background_color); - background_color.rgb = mix(background_color.rgb, color, studioLightFadeout); + background_color.rgb = mix(color, background_color.rgb, studioLightBackground); #else vec3 background_color = color; #endif |