[Bf-blender-cvs] [32d4a67017e] master: Revert "Fix T81002: Images drawn with the Python gpu module no longer draw on top in the Image Editor"
Jeroen Bakker
noreply at git.blender.org
Tue Sep 29 09:54:29 CEST 2020
Commit: 32d4a67017ecf4af75a9bfde885526550a6534ba
Author: Jeroen Bakker
Date: Tue Sep 29 09:53:55 2020 +0200
Branches: master
https://developer.blender.org/rB32d4a67017ecf4af75a9bfde885526550a6534ba
Revert "Fix T81002: Images drawn with the Python gpu module no longer draw on top in the Image Editor"
This reverts commit 085329f114beb904ed3ef0c8ec6894ee26916704.
It didn't render rendered viewport overlays correctly.
===================================================================
M source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl
===================================================================
diff --git a/source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl b/source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl
index 95055d4decb..cdb066c9c52 100644
--- a/source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl
@@ -9,5 +9,6 @@ out vec2 texCoord_interp;
void main()
{
gl_Position = ModelViewProjectionMatrix * vec4(pos.xy, 0.0f, 1.0f);
+ gl_Position.z = 1.0;
texCoord_interp = texCoord;
}
More information about the Bf-blender-cvs
mailing list