I am trying to get the original material that object has and add the directional light that I have in the scene:
protected function onMeshComplete(event:AssetEvent):void {
if (event.asset.assetType == AssetType.MESH) {
myMesh = event.asset as Mesh;
for each (var m:SubMesh in myMesh.subMeshes){
var mat:MaterialBase = m.material;
mat.lightPicker = staticLightPicker;
m.material = mat;
}
}
}
As a result, as expected, I have the original material and the directional light. But my problem is that I have some strange lines as at the picture below.
Is it the problem with my code? Away3D code? Or 3D model?
Thanks!