Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. var triangles:int[] = combineMesh.mesh.triangles;
  2. var normals:Vector3[] = combineMesh.mesh.normals;
  3. for(var n:int = 0;n<normals.length;n++){ normals[n] *= -1; }
  4. combineMesh.mesh.normals = normals;
  5. combineMesh.mesh.triangles = triangles;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement