After exporting a simple white material with my geometry from Blender, I noticed that the Three.js loader somehow created a MeshPhongMaterial "type" object from the source JSON file:
...
"materials":[{
"colorEmissive":[0,0,0],
"colorDiffuse":[0.8,0.8,0.8],
"DbgName":"Material",
"wireframe":false,
"opacity":1,
"shading":"phong",
"colorSpecular":[0.5,0.5,0.5],
"blending":1,
"transparent":false,
"specularCoef":50,
"doubleSided":false,
"DbgIndex":0,
"DbgColor":15658734,
"depthTest":true,
"depthWrite":true,
"visible":true
}],
...
Now, I want to clone and reuse the geometry in different colors, but I am struggling to understand how the loader managed to build the object from the source. Despite reading the documentation, I haven't found any information that could assist me. The properties available on Material and PhongMaterial are not matching what's seen in this source code. Can anyone provide some guidance on this? :) As someone who is not an expert in this area, I apologize if this question seems silly ^^
Thank you for your answers and time! :)