You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I was testing the engine importer in my personal project, and I noticed that while importing models, it doesn't carry over material names to the converted Three.js objects. I needed to show material names in UI so I made following small changes. I think this small improvement can be useful for others as well.
// /engine/threejs/threeconverter.jsCreateThreeFaceMaterial(materialIndex){//...letmaterialParams={name : material.name,// add this line to carry material name over three.js objectcolor : baseColor,vertexColors : material.vertexColors,opacity : material.opacity,transparent : material.transparent,alphaTest : material.alphaTest,side : THREE.DoubleSide};//...}
// /engine/threejs/threeconverter.jsCreateThreeLineMaterial(materialIndex){//...letmaterialParams={name : material.name,// add this line to carry material name over three.js objectcolor : baseColor,opacity : material.opacity};//...}
The text was updated successfully, but these errors were encountered:
Hello, I was testing the engine importer in my personal project, and I noticed that while importing models, it doesn't carry over material names to the converted Three.js objects. I needed to show material names in UI so I made following small changes. I think this small improvement can be useful for others as well.
The text was updated successfully, but these errors were encountered: