Search code examples
three.jswavefront

three js mtl file basic material


I need a basic material in my mesh.

I have this material in my MTL file:

newmtl window
Ns 0.000000
Ka 0.000000 0.000000 0.000000
Kd 0.888930 0.994660 0.000000
Ks 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1

what attribute makes material to be "THREE Basic Material"?


Solution

  • The given MTL file translates to

    new THREE.MeshLambertMaterial( { color: new THREE.Color( 0.888930, 0.994660, 0 ) } );