I have problem with light adding to my .obj materials
.obj materials have his own color in .mlt
I don’t want to create a new color material
I want add lightPicker and shadowMethod to my m.material
Is it possible?
Here is my code
myMesh = e.asset as Mesh;
for each (var m:SubMesh in myMesh.subMeshes){
trace(m.material.name)
var t:TextureMaterial = m.material as TextureMaterial;
t.lightPicker = staticLightPicker;
}
a trace
k909090~C1_Atom
k909090~C2_Atom
k909090~C3_Atom
k909090~C4_Atom
k909090~C5_Atom
kffffff~H6_Atom
kffffff~H7_Atom
k909090~C8_Atom