public static Formats.Materials.MatlAttribute.MatlSampler ParseMatlSampler(this SsbhParser parser) { var result = new Formats.Materials.MatlAttribute.MatlSampler(); result.WrapS = (Formats.Materials.MatlWrapMode)parser.ReadInt32(); result.WrapT = (Formats.Materials.MatlWrapMode)parser.ReadInt32(); result.WrapR = (Formats.Materials.MatlWrapMode)parser.ReadInt32(); result.MinFilter = (Formats.Materials.MatlMinFilter)parser.ReadInt32(); result.MagFilter = (Formats.Materials.MatlMagFilter)parser.ReadInt32(); result.TextureFilteringType = (Formats.Materials.FilteringType)parser.ReadInt32(); result.BorderColor = parser.ParseMatlVector4(); result.Unk11 = parser.ReadInt32(); result.Unk12 = parser.ReadInt32(); result.LodBias = parser.ReadSingle(); result.MaxAnisotropy = parser.ReadInt32(); return(result); }