code wiki / (root) / nx_makeup.nx

nx_makeup.nx

buildroot/runtime/nx_makeup.nx

4629 B83 linesdepth 3pulls 4 transitivereach 6 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_makeup.nx -- MAKEUP layer (the LT_MAKEUP layer type from nx_char_layers, operator "add layers of ... makeup"). Unlike clothing (worn geometry), makeup is a COSMETIC recolor/overlay of face REGIONS painted by the photoreal shader (nx_sdfrender mats 12/13/16). v0 recolored lip parts only; ★v2 (2026-07-07, the crash-session follow-ons): EYESHADOW = appended thin LID parts (mat 16, between lash line and brow) + BLUSH = appended cheek-APPLE parts (mat 13, low + frontal -- the old cheek-6/7 recolor sat in the shadowed under-eye zone and read as a dark patch, exactly why it was deferred). Applies to the DETAILED sdf_face; call AFTER sdf_face (+ hairstyle) so appends stack correctly. license_tier: ORIGINAL

dependencies 2 imports · 6 importers

nx_syscalls.nx nx_sdfrender.nx nx_makeup.nx nx_face_project_gate.nx nx_face_style_gate.nx nx_faceanat_morph_gate.nx nx_faceanat_stereo_gate.nx nx_makeup_gate.nx nx_swgpu_showcase.nx

imports: nx_syscalls.nxnx_sdfrender.nx

imported by: nx_face_project_gate.nxnx_face_style_gate.nxnx_faceanat_morph_gate.nxnx_faceanat_stereo_gate.nxnx_makeup_gate.nxnx_swgpu_showcase.nx

structs

none

consts

12const MK_LIPSTICK: i64 = 12
13const MK_BLUSH: i64 = 13
14const MK_EYESHADOW: i64 = 16
16const FACE_CHEEK_L: i64 = 6
17const FACE_CHEEK_R: i64 = 7
18const FACE_LIP_UP: i64 = 10
19const FACE_LIP_LO: i64 = 11
21const MKUP_NONE: i64 = 0
22const MKUP_NATURAL: i64 = 1 // blush + soft lip
23const MKUP_GLAM: i64 = 2 // bold lip + blush

functions

26func makeup_apply(base: i64, lips_on: i64, blush_on: i64) -> i64
called by 1: makeup_style calls 1: sdf_set_mat
36func makeup_apply2(base: i64, n0: i64, lips_on: i64, blush_on: i64, shadow_on: i64) -> i64
called by 2: mainmakeup_style2 calls 1: sdf_set_mat
69func makeup_style2(base: i64, n0: i64, style: i64) -> i64
74func makeup_style(base: i64, style: i64) -> i64
called by 1: main calls 1: makeup_apply
79func makeup_name(s: i64) -> *u8