public static ushort GetBlurSkyValue(IImageSpaceDepthOfFieldGetter item) { if (item.Sky) { return(item.BlurRadius switch { 0 => 0x4000, 1 => 0x4120, 2 => 0x4190, 3 => 0x41D0, 4 => 0x4208, 5 => 0x4228, 6 => 0x4248, 7 => 0x4268, _ => throw new NotImplementedException(), });
public static partial void WriteBinaryBlurRadiusCustom(MutagenWriter writer, IImageSpaceDepthOfFieldGetter item) { writer.Write(GetBlurSkyValue(item)); }