Correct last commit, wire xray is supported
This commit is contained in:
@@ -369,8 +369,10 @@ void workbench_forward_engine_init(WORKBENCH_Data *vedata)
|
||||
DRW_shgroup_call_add(grp, DRW_cache_fullscreen_quad_get(), NULL);
|
||||
}
|
||||
|
||||
/* TODO(campbell): displays but masks geometry. */
|
||||
if (0 && (draw_ctx->rv3d && (draw_ctx->rv3d->rflag & RV3D_CLIPPING) && draw_ctx->rv3d->clipbb)) {
|
||||
/* TODO(campbell): displays but masks geometry, only use with wire for now. */
|
||||
if ((wpd->shading.type == OB_WIRE) &&
|
||||
(draw_ctx->rv3d && (draw_ctx->rv3d->rflag & RV3D_CLIPPING) && draw_ctx->rv3d->clipbb))
|
||||
{
|
||||
psl->background_pass = DRW_pass_create(
|
||||
"Background", DRW_STATE_WRITE_COLOR | DRW_STATE_DEPTH_EQUAL);
|
||||
GPUShader *shader = GPU_shader_get_builtin_shader(GPU_SHADER_3D_UNIFORM_COLOR_BACKGROUND);
|
||||
|
||||
Reference in New Issue
Block a user