public static EncodingDefinition GetEncodingDefinition() { var definition = new EncodingDefinition(); definition.AddPaletteEncodings(PaletteEncodings); definition.AddIndexEncodings(IndexFormats.Select(x => (x.Key, new IndexEncodingDefinition(x.Value, new[] { 0x6C09, 0x6409 }))).ToArray()); definition.AddPaletteShader(0x6C09, new HtexColorShader()); return(definition); }