diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-11-16 20:31:43 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-11-16 20:31:43 +0300 |
commit | 07bd8eab97608421d43e1c9305050a73a656e1e2 (patch) | |
tree | 7af8749f34a71959c50af5d17c471de139d32d27 | |
parent | 328aad8c98c931c3d1850c838c5cb58953ee49cf (diff) |
Fix unreported wireframe opacity color blending broken
This was introduced by rBdb7d8281c5a2.
The color needs to be premultiplied as there is no blend mode and
the output color is replacing the framebuffer color & alpha.
-rw-r--r-- | source/blender/draw/engines/overlay/shaders/wireframe_vert.glsl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/wireframe_vert.glsl b/source/blender/draw/engines/overlay/shaders/wireframe_vert.glsl index 2950a66570f..c80d8f99628 100644 --- a/source/blender/draw/engines/overlay/shaders/wireframe_vert.glsl +++ b/source/blender/draw/engines/overlay/shaders/wireframe_vert.glsl @@ -160,6 +160,7 @@ void main() finalColor.rgb = mix(rim_col, final_front_col, facing); finalColor.rgb = pow(finalColor.rgb, vec3(2.2)); finalColor.a = wireOpacity; + finalColor.rgb *= wireOpacity; #endif /* Cull flat edges below threshold. */ |