ReadonlyisAlways true: the runtime mark to find a GPU picker among the plugins
The front-most mesh under a point of the canvas, with the hit point and 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
A GPU picker: finds the front-most mesh under a point of the canvas, with the hit point and normal, by reading what the GPU drew under that point instead of testing triangles.
Each implementation is a separate plugin with this one interface:
GBufferPickingPlugin(deferred, depends onGBufferPlugin) reads the ids, depth and normals of the frame that the G-buffer already has, with no extra draw.A consumer (for example a future GPU hover in
PickingPlugin) does not depend on one of them. It looks up any added plugin that is a GPU picker: