diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2020-09-29 10:53:55 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2020-09-29 10:53:55 +0300 |
commit | 32d4a67017ecf4af75a9bfde885526550a6534ba (patch) | |
tree | c29a584a5f87e0bccefabf0c39f4c0042e8b2686 /source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl | |
parent | 58b8724a48929176398b081acce448d69f3d14e5 (diff) |
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.
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |