/// <summary> /// Set the normals for the character's chest. This fixes the shadowing for small-chested characters. /// By default it is not applied to males so we do it manually for all characters in case the male is using a female body. /// </summary> internal static void SetChestNormals(ChaControl chaControl, BodyData bodyData) { if (chaControl.dictBustNormal.TryGetValue(ChaControl.BustNormalKind.NmlBody, out BustNormal bustNormal)) { bustNormal.Release(); } bustNormal = new BustNormal(); bustNormal.Init(chaControl.objBody, bodyData?.OOBase ?? Defaults.OOBase, bodyData?.Normals ?? Defaults.Normals, string.Empty); chaControl.dictBustNormal[ChaControl.BustNormalKind.NmlBody] = bustNormal; }
/// <summary> /// Set the normals for the character's chest. This fixes the shadowing for small-chested characters. /// By default it is not applied to males so we do it manually for all characters in case the male is using a female body. /// </summary> private void SetChestNormals() { #if KK || EC if (ChaControl.dictBustNormal.TryGetValue(ChaControl.BustNormalKind.NmlBody, out BustNormal bustNormal)) { bustNormal.Release(); } bustNormal = new BustNormal(); bustNormal.Init(ChaControl.objBody, BodyData?.OOBase ?? Defaults.OOBase, BodyData?.Normals ?? Defaults.Normals, string.Empty); ChaControl.dictBustNormal[ChaControl.BustNormalKind.NmlBody] = bustNormal; #endif }