@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 ​
| Property | Type | Description | Defined in |
|---|---|---|---|
texture? | string | The picture, in the face's UV layout. Empty paints the tint alone. Defaults to none. | components/FaceMesh.ts:9 |
opacity? | number | 0 to 1. Defaults to 1. | components/FaceMesh.ts:11 |
tint? | string | Multiplies the picture, as #rrggbb. Defaults to #ffffff. | components/FaceMesh.ts:13 |
blend? | FaceMeshBlend | Defaults to normal. | components/FaceMesh.ts:15 |
cutEyes? | boolean | Leave the eyes open. Defaults to true. | components/FaceMesh.ts:17 |
cutMouth? | boolean | Leave the mouth open. Defaults to true. | components/FaceMesh.ts:19 |
layer? | number | Higher 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.x | number | - | components/FaceMesh.ts:23 |
textureOffset.y | number | - | components/FaceMesh.ts:23 |
textureScale? | { x: number; y: number; } | Scales the picture about its centre. Defaults to 1. | components/FaceMesh.ts:25 |
textureScale.x | number | - | components/FaceMesh.ts:25 |
textureScale.y | number | - | components/FaceMesh.ts:25 |

