pub const JIANLAI_BONE_COUNT: usize = 27;
pub const JIANLAI_MYRIAD_SWORD_COUNT: usize = 18;
pub const JIANLAI_ACTION_COUNT: usize = 5;
pub const JIANLAI_RENDER_MODE_COUNT: usize = 6;
pub const JIANLAI_DEBUG_CHANNEL_COUNT: usize = 4;
pub const JIANLAI_STRESS_VORTEX_COUNT: usize = 256;
pub const JIANLAI_COLLECTION_HERO: &str = "HeroRig";
pub const JIANLAI_COLLECTION_PROPS: &str = "StudioProps";
pub const JIANLAI_COLLECTION_CLIFF: &str = "InkCliffStage";
pub const JIANLAI_COLLECTION_VFX: &str = "SwordQiVfx";
pub const JIANLAI_COLLECTION_OUTLINES: &str = "FreestyleInk";
pub const JIANLAI_COLLECTION_ARMATURE: &str = "ArmatureOverlay";
pub const JIANLAI_BONE_NAMES: [&str; JIANLAI_BONE_COUNT] = [
"Root",
"Pelvis",
"Spine",
"Chest",
"Neck",
"Head",
"HairRibbonL",
"HairRibbonR",
"ShoulderL",
"UpperArmL",
"ForearmL",
"HandL",
"ShoulderR",
"UpperArmR",
"ForearmR",
"HandR",
"SwordSocket",
"ThighL",
"ShinL",
"FootL",
"ThighR",
"ShinR",
"FootR",
"RobeHemFront",
"RobeHemBack",
"RobeHemLeft",
"RobeHemRight",
];
pub const JIANLAI_BONE_PARENTS: [Option<usize>; JIANLAI_BONE_COUNT] = [
None,
Some(0),
Some(1),
Some(2),
Some(3),
Some(4),
Some(5),
Some(5),
Some(3),
Some(8),
Some(9),
Some(10),
Some(3),
Some(12),
Some(13),
Some(14),
Some(15),
Some(1),
Some(17),
Some(18),
Some(1),
Some(20),
Some(21),
Some(1),
Some(1),
Some(1),
Some(1),
];
pub const JIANLAI_ACTION_LABELS: [&str; JIANLAI_ACTION_COUNT] = [
"Ink Stance",
"Flowing Sword Dance",
"Myriad Swords Return",
"Sky-Cleaving Sword Qi",
"Cloud-Step Glide",
];
pub const JIANLAI_RENDER_MODE_LABELS: [&str; JIANLAI_RENDER_MODE_COUNT] = [
"Ink-Wash Donghua",
"Cycles PBR",
"Eevee Volumetric",
"Solid Matcap",
"Wire + Armature",
"Shader Debug",
];
pub const JIANLAI_DEBUG_CHANNEL_LABELS: [&str; JIANLAI_DEBUG_CHANNEL_COUNT] =
["Normals", "Rough / Metal", "Depth", "Freestyle Ink"];
pub(crate) const BONE_ROOT: usize = 0;
pub(crate) const BONE_PELVIS: usize = 1;
pub(crate) const BONE_SPINE: usize = 2;
pub(crate) const BONE_CHEST: usize = 3;
pub(crate) const BONE_NECK: usize = 4;
pub(crate) const BONE_HEAD: usize = 5;
pub(crate) const BONE_HAIR_L: usize = 6;
pub(crate) const BONE_HAIR_R: usize = 7;
pub(crate) const BONE_SHOULDER_L: usize = 8;
pub(crate) const BONE_UPPER_ARM_L: usize = 9;
pub(crate) const BONE_FOREARM_L: usize = 10;
pub(crate) const BONE_HAND_L: usize = 11;
pub(crate) const BONE_SHOULDER_R: usize = 12;
pub(crate) const BONE_UPPER_ARM_R: usize = 13;
pub(crate) const BONE_FOREARM_R: usize = 14;
pub(crate) const BONE_HAND_R: usize = 15;
pub(crate) const BONE_SWORD_SOCKET: usize = 16;
pub(crate) const BONE_THIGH_L: usize = 17;
pub(crate) const BONE_SHIN_L: usize = 18;
pub(crate) const BONE_FOOT_L: usize = 19;
pub(crate) const BONE_THIGH_R: usize = 20;
pub(crate) const BONE_SHIN_R: usize = 21;
pub(crate) const BONE_FOOT_R: usize = 22;
pub(crate) const BONE_HEM_FRONT: usize = 23;
pub(crate) const BONE_HEM_BACK: usize = 24;
pub(crate) const BONE_HEM_LEFT: usize = 25;
pub(crate) const BONE_HEM_RIGHT: usize = 26;
pub(crate) const JIANLAI_TEX_SIZE: u32 = 128;
pub(crate) const JIANLAI_MIN_TRI_DOUBLE_AREA: f32 = 1.0e-7;
pub(crate) const JIANLAI_HERO_OUTLINE_THICKNESS: f32 = 0.015;
pub(crate) const JIANLAI_STAGE_OUTLINE_THICKNESS: f32 = 0.035;
pub(crate) const JIANLAI_NLA_CROSSFADE_SECS: f32 = 0.35;
pub(crate) const JIANLAI_BONE_LOCAL_REST: [[f32; 3]; JIANLAI_BONE_COUNT] = [
[0.0, 0.0, 0.0],
[0.0, 0.96, 0.0],
[0.0, 0.22, 0.0],
[0.0, 0.24, 0.0],
[0.0, 0.16, 0.0],
[0.0, 0.11, 0.0],
[-0.08, 0.10, -0.10],
[0.08, 0.10, -0.10],
[-0.14, 0.12, 0.0],
[-0.12, -0.04, 0.0],
[-0.22, -0.18, 0.04],
[-0.18, -0.14, 0.06],
[0.14, 0.12, 0.0],
[0.12, -0.04, 0.0],
[0.22, -0.18, 0.04],
[0.18, -0.14, 0.06],
[0.05, 0.02, 0.14],
[-0.11, -0.06, 0.0],
[0.0, -0.44, 0.0],
[0.0, -0.40, 0.04],
[0.11, -0.06, 0.0],
[0.0, -0.44, 0.0],
[0.0, -0.40, 0.04],
[0.0, -0.08, 0.14],
[0.0, -0.08, -0.15],
[-0.16, -0.08, 0.0],
[0.16, -0.08, 0.0],
];
pub(crate) const MESH_NAME_HERO: &str = "Jianlai_Swordsman_Hero";
pub(crate) const MESH_NAME_HERO_OUTLINE: &str = "Jianlai_Swordsman_Freestyle";
pub(crate) const MESH_NAME_SPIRIT_SWORD: &str = "Jianlai_Spirit_Sword";
pub(crate) const MESH_NAME_SWORD_OUTLINE: &str = "Jianlai_Spirit_Sword_Freestyle";
pub(crate) const MESH_NAME_SCABBARD: &str = "Jianlai_Floating_Scabbard";
pub(crate) const MESH_NAME_TERRACE: &str = "Jianlai_Bagua_Terrace";
pub(crate) const MESH_NAME_PAVILION_ROOF: &str = "Jianlai_Pavilion_FlyingEaves";
pub(crate) const MESH_NAME_PAVILION_PILLARS: &str = "Jianlai_Pavilion_Pillars";
pub(crate) const MESH_NAME_LANTERN: &str = "Jianlai_Palace_Lantern";
pub(crate) const MESH_NAME_CLIFF_TERRAIN: &str = "Jianlai_Karst_Cliff_Terrain";
pub(crate) const MESH_NAME_KARST_SPIRE: &str = "Jianlai_Karst_Mountain_Spire";
pub(crate) const MESH_NAME_PINE_TRUNK: &str = "Jianlai_Cliff_Pine_Trunk";
pub(crate) const MESH_NAME_PINE_CANOPY: &str = "Jianlai_Cliff_Pine_Canopy";
pub(crate) const MESH_NAME_CLOUD_RIBBON: &str = "Jianlai_Ink_Cloud_Ribbon";
pub(crate) const MESH_NAME_CRESCENT_QI: &str = "Jianlai_Crescent_SwordQi_Wave";
pub(crate) const MESH_NAME_SHOCKWAVE_RING: &str = "Jianlai_Ink_Shockwave_Ring";
pub(crate) const MESH_NAME_SWORD_TRAIL: &str = "Jianlai_Sword_Arc_Trail";
pub(crate) const MESH_NAME_BONE_PRISM: &str = "Blender_Armature_OctaBone";
pub(crate) const MESH_NAME_WIREFRAME_CAGE: &str = "Blender_Wireframe_Cage";
pub(crate) const MESH_NAME_JADE_TALISMAN: &str = "Jianlai_Jade_Talisman";
pub(crate) const MESH_NAME_MONOLITH_SPIRE: &str = "Jianlai_SwordTomb_Monolith";
pub(crate) const MESH_NAME_LOTUS_PEDESTAL: &str = "Jianlai_Lotus_Pedestal";
pub(crate) const MORPH_NAME_BATTLE_AURA: &str = "SwordQi_BattleAura";
pub(crate) const MORPH_NAME_WIND_BILLOW: &str = "Robe_WindBillow";
pub(crate) const SKIN_NAME_JIANLAI_ARMATURE: &str = "Jianlai_Armature_27Bones";
pub(crate) const CAM_NAME_HERO_THREE_QUARTER: &str = "HeroInkCam";
pub(crate) const CAM_NAME_LOW_ULTIMATE: &str = "UltimateLowCam";
pub(crate) const CAM_NAME_CLIFF_PANORAMA: &str = "CliffPanoramaCam";
pub(crate) const CAM_NAME_ARRAY_OVERHEAD: &str = "BaguaArrayTopCam";
pub(crate) const MAT_NAME_INK_ROBE: &str = "InkWash_SwordsmanRobe";
pub(crate) const MAT_NAME_INK_TRIM: &str = "InkWash_CalligraphyTrim";
pub(crate) const MAT_NAME_INK_JADE: &str = "Mineral_CeladonJade";
pub(crate) const MAT_NAME_INK_BRONZE: &str = "Ancient_GildedBronze";
pub(crate) const MAT_NAME_INK_BLADE: &str = "SpiritBlade_RuneSteel";
pub(crate) const MAT_NAME_INK_CINNABAR: &str = "Cinnabar_Lacquer";
pub(crate) const MAT_NAME_INK_CLIFF: &str = "QingLv_KarstCliff";
pub(crate) const MAT_NAME_INK_TERRACE: &str = "Bagua_CarvedTerrace";
pub(crate) const MAT_NAME_PAVILION_ROOF: &str = "Glazed_InkRoofTiles";
pub(crate) const MAT_NAME_LANTERN_GLOW: &str = "Lantern_WarmPaperGlow";
pub(crate) const MAT_NAME_PINE_BARK: &str = "CliffPine_InkBark";
pub(crate) const MAT_NAME_PINE_NEEDLES: &str = "CliffPine_MalachiteNeedles";
pub(crate) const MAT_NAME_INK_CLOUD: &str = "XuanPaper_MistRibbon";
pub(crate) const MAT_NAME_QI_GOLD: &str = "SwordQi_GoldenCrescent";
pub(crate) const MAT_NAME_QI_CYAN: &str = "SwordQi_CyanJadeArc";
pub(crate) const MAT_NAME_FREESTYLE_INK: &str = "Freestyle_SumiInkOutline";
pub(crate) const MAT_NAME_MATCAP_CLAY: &str = "Blender_SolidMatcapClay";
pub(crate) const MAT_NAME_WIREFRAME_EDGE: &str = "Blender_WireframeTopology";
pub(crate) const MAT_NAME_BONE_PRISM: &str = "Blender_ArmatureBoneGlow";
pub(crate) const MAT_NAME_DBG_NORMALS: &str = "DebugPass_NormalsRGB";
pub(crate) const MAT_NAME_DBG_ROUGH_METAL: &str = "DebugPass_RoughnessMetallic";
pub(crate) const MAT_NAME_DBG_DEPTH: &str = "DebugPass_LinearDepth";
pub(crate) const MAT_NAME_DBG_FREESTYLE_PAPER: &str = "DebugPass_FreestylePaper";
pub(crate) const GALLERY_SWORD_LONGQUE: &str = "LongZhongQue_InkSteel";
pub(crate) const GALLERY_SWORD_QINGLIAN: &str = "QingLian_CeladonJade";
pub(crate) const GALLERY_SWORD_CHIXIAO: &str = "ChiXiao_CinnabarGold";
pub(crate) const GALLERY_SWORD_XUANMING: &str = "XuanMing_ObsidianInk";
pub(crate) const GALLERY_SWORD_TIANMEN: &str = "KaiTianMen_CelestialGold";