Protected_Protected Optional_Protected_ReadonlyisAlways true: the runtime mark to find a GPU picker among the plugins
The time of the last pick, in ms
OptionaluiStaticLayerA layer that no other render uses, for the meshes being picked
Static Optional ReadonlyOldStatic ReadonlyPluginProtected_Protected_Optionalprefix: stringOptionalmeta: SerializationMetaTypeThe front-most mesh under a point of the canvas, with the hit point and the world normal, or null.
CSS pixels from the left edge of the canvas
CSS pixels from the top edge of the canvas
Optionalfilter: (o: IObject3D) => boolean
which meshes take part. Default: the visible meshes in the model root, without fat lines.
Optionalset
GPU Picking Plugin
Finds the front-most mesh under a point of the canvas by rendering object ids instead of testing triangles. The meshes of the model root draw into a 1×1 float target, with the camera's view narrowed to that pixel (one draw of the scene in a tiny viewport). Then one pixel is read back, with the object id, the depth and the surface normal. There is no tree to build or to keep in memory, and the cost does not grow with the triangle count.
It implements IGPUPicker, the interface that consumers of GPU picking look up.
Use it for hover and clicks on what is visible: call pick with the pointer position. It finds only the front-most mesh (not the ones behind it), along camera rays only, and the read-back waits for the GPU. For other rays, all the hits, or many queries in a frame, use the Raycaster (with a BVH on big meshes).
renderer.clippingPlanes) cut the pick. The clipping planes of a material (material.clippingPlanes) do not: the meshes share one picking material, and three keeps one projected copy of a material's planes per camera.