Page MenuHome

TexturePaint: Missing Texture Depth Test
ClosedPublic

Authored by Jeroen Bakker (jbakker) on Jun 4 2019, 11:31 AM.

Details

Summary

Depth testing was off as it used the precomputed ModelView matrix. As
draw engines currently use a different approach the depth was sometimes
a bit off making the color disappear.

This change will use a different vertex shader that will write the
correct depth. I expected the same change to be needed in the bone
selection overlay but was not able to reproduce it.

Diff Detail

Repository
rB Blender
Branch
T64615 (branched from master)
Build Status
Buildable 3808
Build 3808: arc lint + arc unit

Event Timeline

source/blender/draw/modes/shaders/paint_face_vert.glsl
11

Isn't this still needed?

source/blender/draw/modes/shaders/paint_face_vert.glsl
11

I seems to be that there is wrong interpretation of the diff.... will update

Jeroen Bakker (jbakker) marked an inline comment as done.Jun 5 2019, 2:21 PM
Jeroen Bakker (jbakker) added inline comments.
source/blender/draw/modes/shaders/paint_face_vert.glsl
11

Ah. this is not needed we are looking to the paint_face_vert.glsl this shader only draws the missing texture color.
the paint_face_selection_vert.glsl has the logic to not draw selected faces.

This revision is now accepted and ready to land.Jun 5 2019, 2:23 PM
This revision was automatically updated to reflect the committed changes.