Skip to main content

Interface: StylizedFaceOptions

Defined in: src/StylizedFace.ts:26

Properties

headRadius?

optional headRadius: number

Defined in: src/StylizedFace.ts:34

Approximate radius (metres) of the host head this face attaches to. Used to scale the face quad and place it just outside the head sphere. Defaults to 0.1, matching netblocks RemoteUserAvatar's head sphere; pass 0.18 (for example) if attaching to a bigger custom head.


showEyes?

optional showEyes: boolean

Defined in: src/StylizedFace.ts:43

Draw the pair of static eyes above the mouth on the same canvas. Defaults to true. Set false when the host avatar already provides its own eye geometry (e.g. a custom puppet head) to avoid doubled-up eyes.


textureSize?

optional textureSize: number

Defined in: src/StylizedFace.ts:36

Square canvas dimension in pixels. Defaults to 256.