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 on the picture below.

Is it the problem with my code? Away3D code? Or 3D model?
Thanks!
As Fabrice Closier has explained to me, the fix is to use repeat:true for material.
Here is the full answer he gave:
Here is the link.
Thank you, Fabrice, very much!