Overlay: Wireframe: avoid using custom depth bias with xray enabled
e000dcb849 has a performance
impact as it prevents early depth test, it's best to restrict it to when
xray is disabled.
Pull Request: https://projects.blender.org/blender/blender/pulls/114466
This commit is contained in:
committed by
Clément Foucault
parent
fa64573434
commit
14500953ed
@@ -66,7 +66,8 @@ void OVERLAY_wireframe_cache_init(OVERLAY_Data *vedata)
|
||||
|
||||
const bool use_select = (DRW_state_is_select() || DRW_state_is_depth());
|
||||
GPUShader *wires_sh = use_select ? OVERLAY_shader_wireframe_select() :
|
||||
OVERLAY_shader_wireframe(pd->antialiasing.enabled);
|
||||
OVERLAY_shader_wireframe(pd->antialiasing.enabled &&
|
||||
!pd->xray_enabled);
|
||||
|
||||
for (int xray = 0; xray < (is_material_shmode ? 1 : 2); xray++) {
|
||||
DRWState state = DRW_STATE_FIRST_VERTEX_CONVENTION | DRW_STATE_WRITE_COLOR |
|
||||
|
||||
Reference in New Issue
Block a user