Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / FaceMeshOptions

Type Alias: FaceMeshOptions ​

ts
type FaceMeshOptions = {
  texture?: string;
  opacity?: number;
  tint?: string;
  blend?: FaceMeshBlend;
  cutEyes?: boolean;
  cutMouth?: boolean;
  layer?: number;
  textureOffset?: {
     x: number;
     y: number;
  };
  textureScale?: {
     x: number;
     y: number;
  };
};

Defined in: components/FaceMesh.ts:7

Optional initializer for FaceMeshComponent.

Properties ​

PropertyTypeDescriptionDefined in
texture?stringThe picture, in the face's UV layout. Empty paints the tint alone. Defaults to none.components/FaceMesh.ts:9
opacity?number0 to 1. Defaults to 1.components/FaceMesh.ts:11
tint?stringMultiplies the picture, as #rrggbb. Defaults to #ffffff.components/FaceMesh.ts:13
blend?FaceMeshBlendDefaults to normal.components/FaceMesh.ts:15
cutEyes?booleanLeave the eyes open. Defaults to true.components/FaceMesh.ts:17
cutMouth?booleanLeave the mouth open. Defaults to true.components/FaceMesh.ts:19
layer?numberHigher draws over lower. Defaults to 0.components/FaceMesh.ts:21
textureOffset?{ x: number; y: number; }Moves the picture on the face, as a share of its width and height. Defaults to none.components/FaceMesh.ts:23
textureOffset.xnumber-components/FaceMesh.ts:23
textureOffset.ynumber-components/FaceMesh.ts:23
textureScale?{ x: number; y: number; }Scales the picture about its centre. Defaults to 1.components/FaceMesh.ts:25
textureScale.xnumber-components/FaceMesh.ts:25
textureScale.ynumber-components/FaceMesh.ts:25