Type Alias: MeshPickElement
ts
type MeshPickElement = 'object' | 'instance' | 'vertex' | 'triangle';Experimental
How generic meshes are resolved (WebGL2 has no gl_PrimitiveID, so triangles are derived from gl_VertexID):
object: one id per mesh (default for plain meshes),instance:gl_InstanceID(default forInstancedMesh),vertex: the provoking vertex (the LAST vertex of the rasterized triangle in WebGL). Its index is the geometry vertex index for both indexed and non-indexed geometry; for a grid surface it identifies one corner of the cell under the cursor,triangle:floor(gl_VertexID / 3): exact for non-indexed geometry. Indexed geometry falls back tovertex(an indexed draw'sgl_VertexIDis the index value, not the draw position).