API

Interface IGPUPickingInfo

Class used to store the result of a GPU picking operation

interface IGPUPickingInfo {
    mesh: AbstractMesh;
    normal?: any;
    pickedPoint?: any;
    thinInstanceIndex?: number;
}
Index
mesh: AbstractMesh

Picked mesh

normal?: any

Reconstructed normal in world space.

Only available when enableDepthPicking is true and enough valid depth neighbors can be read. Custom picking materials or special material plugins that do not write the depth attachment may return undefined.

pickedPoint?: any

Picked point in world space.

Only available when enableDepthPicking is true and a valid depth value can be read. Custom picking materials or special material plugins that do not write the depth attachment may return undefined.

thinInstanceIndex?: number

Picked thin instance index