diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-06-24 06:24:59 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-06-24 06:24:59 +0300 |
commit | 28ff238c45a211a5b4d81f968860e71701080e2a (patch) | |
tree | 1292a8e392140e7bc5578de8fbc04493dde8b3cf /source/blender/draw/engines/eevee/shaders/default_world_frag.glsl | |
parent | bff98ce3f72e9ddad35c4753ed7dd2177336be4e (diff) |
Eevee: Planar reflection: Fix normal deformation for background pixels.
Now it matches world cubemap perfectly.
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 | 3 |
1 files changed, 2 insertions, 1 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 075ee22dc6f..90af87756f0 100644 --- a/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/default_world_frag.glsl @@ -1,8 +1,9 @@ +uniform float backgroundAlpha; uniform vec3 color; out vec4 FragColor; void main() { - FragColor = vec4(color, 1.0); + FragColor = vec4(color, backgroundAlpha); } |