mrdoob/three.js — pull request #5367 by iepure (2014-09-25 23:34:47+00:00)
Title: 3DSMax Exporter - Corrected specular export, support Phong

I've made a correction to the way the specular coefficient is exported; this was using the 3DSMax **Glossiness** attribute. It has been corrected to use the 3DSMax material **Specular Level**. The **Glossiness** has been correctly remapped to the **Shininess** three.js attribute.

Additionally I've included Phong shading support, so the three.js Phong material will be used if Phong when used in 3DSMax - without this the bump maps are disregarded as they aren't rendered with Lambert materials (the default material when unspecified). 3DSMax Blinn/Metal ShaderType materials will continue to be exported as Lambert.

I've tested this now with about 25 different models; with different materials, different shader types etc. I've maybe made about 100 exports in the line of the work that I was doing. Most importantly the models once exported *look right* in three.js; there a lot closer to the models' rendering in 3DSMax once exported.