/**
* This method creates a new MS3DMaterial.
* Note: Only textures of image type gif, jpg and bmp are supported
*/
public static MS3DMaterial decodeMS3DMaterial(DataInput input) throws IOException {
MS3DMaterial m = new MS3DMaterial();
m.name = MS3DModel.decodeZeroTerminatedString(input, 32);
m.ambient[0] = input.readFloat();
m.ambient[1] = input.readFloat();
m.ambient[2] = input.readFloat();
m.ambient[3] = input.readFloat();