@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / createHandMaterial
Function: createHandMaterial() ​
ts
function createHandMaterial(preset, options): Material;Defined in: xr/handPresets.ts:26
Build the material for a preset.
Returns a fresh material each call — hands are per-session and disposed with the interactor, and sharing one instance across presets would make switching leak state between them.
Parameters ​
| Parameter | Type |
|---|---|
preset | XrHandPreset |
options | HandMaterialOptions |
Returns ​
Material

