Skip to content

facetracking

Use the face tracking functionnality.

Shader Equivalent

uniform texture2d parameter_name;

Example

{
  "type": "facetracking",
  "name": "fd"
}

Properties

Property
Type Required If absent Description
name string Yes - Name of the field. It must be the same as the associated variable in the shader.
type "facetracking" Yes - -
description string No - Description of the field. It will be shown in the UI.
devmode boolean No false If set to true, this field will only be available in the property UI if the developer mode is active.
if any No - Condition for display
label string No "Same as name" The label of the field in the UI. If not set, the name will be used.
reset_on_face_lost any No - Behavior of the face tracker when the face is lost.
- false: reset the face tracking texture and keep the fd_face_found flag to false
- true: keep the previous face tracking texture and set the fd_face_found flag to true
- prompt: show an input in the property UI
use_preraster boolean No - If set to true, use the face tracking data to build a secondary texture mapping the face. Each color channel has a different meaning :
- R: index of the triangle in the face mesh
- G,B: Barycentric coordinates of the point, for texturing