The Pose Bone Selection used normal matric multiplication, but that mismatched the Depth buffer from all draw engines. They used the optimized matrices from common_view_lib. This change will use the optimized version, so the depth buffer matches and the render artifacts would be correct. Please note that bone selection is not using shcfg and therefore render clipping is still off. Reviewed By: fclem Differential Revision: https://developer.blender.org/D5100
13 lines
213 B
GLSL
13 lines
213 B
GLSL
|
|
in vec3 pos;
|
|
|
|
void main()
|
|
{
|
|
vec3 world_pos = point_object_to_world(pos);
|
|
gl_Position = point_world_to_ndc(world_pos);
|
|
|
|
#ifdef USE_WORLD_CLIP_PLANES
|
|
world_clip_planes_calc_clip_distance(world_pos);
|
|
#endif
|
|
}
|