Skip to main content

Type Alias: PickingUniforms

PickingUniforms = object

Defined in: modules/engine/picking/picking.ts:35

Uniforms for the picking module, which renders picking colors and highlighted item. When active, renders picking colors, assumed to be rendered to off-screen "picking" buffer. When inactive, renders normal colors, with the exception of selected object which is rendered with highlight

Properties​

highlightColor?​

optional highlightColor?: NumberArray4

Defined in: modules/engine/picking/picking.ts:50

Color of visual highlight of "selected" item


highlightedObjectColor?​

optional highlightedObjectColor?: NumberArray3

Defined in: modules/engine/picking/picking.ts:48

Set to a picking color to visually highlight that item


isActive?​

optional isActive?: boolean

Defined in: modules/engine/picking/picking.ts:40

When true, renders picking colors. Set when rendering to off-screen "picking" buffer. When false, renders normal colors, with the exception of selected object which is rendered with highlight


isAttribute?​

optional isAttribute?: boolean

Defined in: modules/engine/picking/picking.ts:42

Set to true when picking an attribute value instead of object index


isHighlightActive?​

optional isHighlightActive?: boolean

Defined in: modules/engine/picking/picking.ts:46

Do we have a highlighted item?


useByteColors?​

optional useByteColors?: boolean

Defined in: modules/engine/picking/picking.ts:44

Interpret highlight colors as byte-style 0-255 values.