Fix #104466: Resolve smooth lines in Metal. #105609

Merged
Jeroen Bakker merged 1 commits from Jason-Fielder/blender:Fix_104466 into blender-v3.5-release 2023-03-09 17:04:10 +01:00

View File

@ -176,10 +176,10 @@ void main()
/* Enlarge edge for flag display. */ /* Enlarge edge for flag display. */
half_size += (geometry_out.finalColorOuter.a > 0.0) ? max(sizeEdge, 1.0) : 0.0; half_size += (geometry_out.finalColorOuter.a > 0.0) ? max(sizeEdge, 1.0) : 0.0;
#ifdef USE_SMOOTH_WIRE if (do_smooth_wire) {
/* Add 1 px for AA */ /* Add 1 px for AA */
half_size += 0.5; half_size += 0.5;
#endif }
vec3 edge_ofs = vec3(half_size * sizeViewportInv, 0.0); vec3 edge_ofs = vec3(half_size * sizeViewportInv, 0.0);