/* 249 */ Material material = new Material(surf.getColor(), surf.getEmissiveColor(), surf.getDiffuseColor(), surf.getSpecularColor(), surf.getShininess());
/* */
/* 254 */ material.setLightingEnable(true);
/* 255 */ appearance.setMaterial(material);
/* 256 */ if (surf.getTransparency() != 0.0F) {
/* 257 */ TransparencyAttributes ta = new TransparencyAttributes();
/* 258 */ ta.setTransparency(surf.getTransparency());
/* 259 */ ta.setTransparencyMode(2);
/* 260 */ appearance.setTransparencyAttributes(ta);
/* */ }
/* 262 */ if (texture != null) {
/* 263 */ debugOutputLn(8, "texture != null, enable texturing");
/* 264 */ Texture tex = texture.getTexture();
/* 265 */ tex.setEnable(true);
/* 266 */ appearance.setTexture(tex);
/* 267 */ TextureAttributes ta = new TextureAttributes();
/* 268 */ if (texture.getType().equals("DTEX"))
/* 269 */ ta.setTextureMode(2);
/* 270 */ else if (texture.getType().equals("CTEX"))
/* 271 */ ta.setTextureMode(3);
/* 272 */ appearance.setTextureAttributes(ta);
/* */ }
/* */ else {
/* 275 */ debugOutputLn(8, "texture == null, no texture to use");
/* */ }