private void UpdateDyeParticleOverrides() { if (this.FaceArmorDye.HasValue) { this.player.cFace = ShaderHelpers.GetShaderIdByDyeItemType(this.FaceArmorDye.Value); } if (this.HeadArmorDye.HasValue) { this.player.cHead = ShaderHelpers.GetShaderIdByDyeItemType(this.HeadArmorDye.Value); } if (this.BodyArmorDye.HasValue) { this.player.cBody = ShaderHelpers.GetShaderIdByDyeItemType(this.BodyArmorDye.Value); } if (this.LegsArmorDye.HasValue) { this.player.cLegs = ShaderHelpers.GetShaderIdByDyeItemType(this.LegsArmorDye.Value); } }
private void UpdateShaderOverrides(ref PlayerDrawInfo drawInfo) { if (this.HairDye.HasValue) { drawInfo.hairShader = ShaderHelpers.GetShaderIdByDyeItemType(this.HairDye.Value); } if (this.FaceArmorDye.HasValue) { drawInfo.faceShader = ShaderHelpers.GetShaderIdByDyeItemType(this.FaceArmorDye.Value); } if (this.HeadArmorDye.HasValue) { drawInfo.headArmorShader = ShaderHelpers.GetShaderIdByDyeItemType(this.HeadArmorDye.Value); } if (this.BodyArmorDye.HasValue) { drawInfo.bodyArmorShader = ShaderHelpers.GetShaderIdByDyeItemType(this.BodyArmorDye.Value); } if (this.LegsArmorDye.HasValue) { drawInfo.legArmorShader = ShaderHelpers.GetShaderIdByDyeItemType(this.LegsArmorDye.Value); } }