From 3577c2872aff2e7c399093de41ececcf0a23adad Mon Sep 17 00:00:00 2001 From: ultrahacx Date: Thu, 3 Nov 2022 19:53:21 +0530 Subject: [PATCH] Add missing shadow blur parameter in drawable XML --- CodeWalker.Core/GameFiles/Resources/Drawable.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CodeWalker.Core/GameFiles/Resources/Drawable.cs b/CodeWalker.Core/GameFiles/Resources/Drawable.cs index bcf20f5..5baf6f3 100644 --- a/CodeWalker.Core/GameFiles/Resources/Drawable.cs +++ b/CodeWalker.Core/GameFiles/Resources/Drawable.cs @@ -4724,6 +4724,7 @@ namespace CodeWalker.GameFiles YdrXml.ValueTag(sb, indent, "CoronaSize", FloatUtil.ToString(CoronaSize)); YdrXml.ValueTag(sb, indent, "VolumeOuterExponent", FloatUtil.ToString(VolumeOuterExponent)); YdrXml.ValueTag(sb, indent, "LightFadeDistance", LightFadeDistance.ToString()); + YdrXml.ValueTag(sb, indent, "ShadowBlur", ShadowBlur.ToString()); YdrXml.ValueTag(sb, indent, "ShadowFadeDistance", ShadowFadeDistance.ToString()); YdrXml.ValueTag(sb, indent, "SpecularFadeDistance", SpecularFadeDistance.ToString()); YdrXml.ValueTag(sb, indent, "VolumetricFadeDistance", VolumetricFadeDistance.ToString()); @@ -4766,6 +4767,7 @@ namespace CodeWalker.GameFiles CoronaSize = Xml.GetChildFloatAttribute(node, "CoronaSize", "value"); VolumeOuterExponent = Xml.GetChildFloatAttribute(node, "VolumeOuterExponent", "value"); LightFadeDistance = (byte)Xml.GetChildUIntAttribute(node, "LightFadeDistance", "value"); + ShadowBlur = (byte)Xml.GetChildUIntAttribute(node, "ShadowBlur", "value"); ShadowFadeDistance = (byte)Xml.GetChildUIntAttribute(node, "ShadowFadeDistance", "value"); SpecularFadeDistance = (byte)Xml.GetChildUIntAttribute(node, "SpecularFadeDistance", "value"); VolumetricFadeDistance = (byte)Xml.GetChildUIntAttribute(node, "VolumetricFadeDistance", "value");