Commit: 8cbbfa8c293ce077d916e3c53da31618a490e960 Author: Miguel Pozo Date: Mon Jan 9 18:25:29 2023 +0100 Branches: tmp-workbench-rewrite2 https://developer.blender.org/rB8cbbfa8c293ce077d916e3c53da31618a490e960
Fix MSL compilation =================================================================== M source/blender/draw/engines/workbench/shaders/workbench_next_composite_frag.glsl =================================================================== diff --git a/source/blender/draw/engines/workbench/shaders/workbench_next_composite_frag.glsl b/source/blender/draw/engines/workbench/shaders/workbench_next_composite_frag.glsl index a66af6008d9..7a5b66d0879 100644 --- a/source/blender/draw/engines/workbench/shaders/workbench_next_composite_frag.glsl +++ b/source/blender/draw/engines/workbench/shaders/workbench_next_composite_frag.glsl @@ -72,10 +72,10 @@ void main() color = mix(color, world_data.object_outline_color, outline_opacity); #endif - if (color != world_data.background_color) { - fragColor = color; + if (all(equal(color, world_data.background_color))) { + discard; } else { - discard; + fragColor = color; } } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs