Optional__Protected_Protected_Protected Optional_Protected_Anti-aliased outline edges (the define SEL_OUTLINE_AA of the screen pass). Off by default.
Mask reads per pixel: 49 when off. When on, up to 63 in the outline and up to 79 in its outer 1 px.
The outline color. Call redraw after a change in place (color.set(...)).
Dim all the objects that are not selected
ReadonlyextraReadonlyextraA light tint of the color inside the selection
Use the selection and the hover of the PickingPlugin
Outline the hovered objects
Outline the selected objects
Thin lines between the parts of a selected object (see partsOf)
The parts of a selected object, for the lines between parts. Default: the children, below any chain of groups with one child (the objects that a click inside the selection selects next).
After tonemapping and the other extensions, so the colors are exact
OptionaluiOutline width in CSS pixels. The hover outline is 3/4 of it, at least 1 px.
A dashed outline where the selection is behind other objects
Static Optional ReadonlyOldStatic ReadonlyPluginThe hovered objects. Set it when followPicking is off.
The selected objects. Set it when followPicking is off.
Protected_Protected_Optionalprefix: stringOptionalmeta: anyFunction to return the UI config for this material extension. This is called once when the material extension is registered.
Function to check if this material extension is compatible with the given material. If not compatible, the material extension will not be added to the material. This is only checked when the extension is registered.
The extension is assumed to be compatible if this function is not defined
The meshes in the mask and their data: x = selected item (1-based, 0 = not selected), y = part inside the item (1-based, 0 = none), z = 1 when hovered. The ids count from 1 to 2048 and start again at 1, as the half-float mask holds integers exactly up to 2048: two parts or items next in order always differ, and two with the same id are 2048 apart.
Renders one more frame, without a restart of the progressive render: the outline is drawn over the final image.
The mask is drawn again in that frame. The plugin calls it when the selection, the hover or a setting changes.
Call it after a change of the selected objects that renders without a reset of the render (viewer.setDirty() and
the setDirty of an object reset it), else the mask of the last change stays until the next reset.
Custom callback to extend/modify/replace shader code and other shader properties
Optionalmeta: SerializationMetaType
Selection Outline Plugin
Draws the outline of the selected and hovered objects in the render pipeline, as in Figma or Blender.
The objects come from the PickingPlugin when followPicking is on (the default; for the hover, turn on
PickingPlugin.hoverEnabled), else set selected and hovered. A change of the selection or the hover renders one more frame, it does not restart the progressive render. Fat lines (Line2,LineSegments2) are in the mask with their own width.Requires the GBufferPlugin (the depth for the x-ray outline). Not saved with the viewer config.