[Bf-blender-cvs] [63ed7c19d51] blender-v2.83-release: Fix T78653 Workbench: Broken Depth of Field in Viewport (Mac OSX)

Clément Foucault noreply at git.blender.org
Wed Oct 7 10:23:18 CEST 2020


Commit: 63ed7c19d517b16fd81a99dee738331cbdc9b378
Author: Clément Foucault
Date:   Wed Sep 16 15:17:11 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB63ed7c19d517b16fd81a99dee738331cbdc9b378

Fix T78653 Workbench: Broken Depth of Field in Viewport (Mac OSX)

The output layout was wrong and it's a mistery why it works on most
implementations since it's clearly a wrong usage.

Thanks @sebbas for helping narrowing down the issue.

===================================================================

M	source/blender/draw/engines/workbench/shaders/workbench_effect_dof_frag.glsl

===================================================================

diff --git a/source/blender/draw/engines/workbench/shaders/workbench_effect_dof_frag.glsl b/source/blender/draw/engines/workbench/shaders/workbench_effect_dof_frag.glsl
index 0efcfb35929..1a210cf3963 100644
--- a/source/blender/draw/engines/workbench/shaders/workbench_effect_dof_frag.glsl
+++ b/source/blender/draw/engines/workbench/shaders/workbench_effect_dof_frag.glsl
@@ -391,8 +391,8 @@ void main()
  */
 #ifdef RESOLVE
 
-layout(location = 0) out vec4 finalColorAdd;
-layout(location = 1) out vec4 finalColorMul;
+layout(location = 0, index = 0) out vec4 finalColorAdd;
+layout(location = 0, index = 1) out vec4 finalColorMul;
 
 void main()
 {



More information about the Bf-blender-cvs mailing list