Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / HandMaterialOptions

Type Alias: HandMaterialOptions ​

ts
type HandMaterialOptions = {
  color: string;
  opacity: number;
  emissiveIntensity: number;
};

Defined in: xr/handPresets.ts:13

Materials for tracked-hand meshes.

three's XRHandModelFactory builds the joint geometry but gives it a plain default material, so hands look identical in every experience. These presets let an author pick a look in one click, with custom deferring entirely to the colour/opacity/emissive fields.

Properties ​

PropertyTypeDefined in
colorstringxr/handPresets.ts:14
opacitynumberxr/handPresets.ts:15
emissiveIntensitynumberxr/handPresets.ts:16