Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Local v:Int
- For Local i:Int = 0 Until Size
- If vPoint0[i] Then
- surf.AddVertex(vPoint0[i].y * MeshScale, vPoint0[i].z * MeshScale, vPoint0[i].x * MeshScale)
- surf.AddVertex(vPoint1[i].y * MeshScale, vPoint1[i].z * MeshScale, vPoint1[i].x * MeshScale)
- surf.AddVertex(vPoint2[i].y * MeshScale, vPoint2[i].z * MeshScale, vPoint2[i].x * MeshScale)
- surf.AddTriangle(v, v + 2, v + 1)
- 'Last mystery vertex!
- surf.AddVertex(vPoint2[i].y * MeshScale, vPoint0[i].z * MeshScale, vPoint1[i].x * MeshScale)
- 'surf.AddTriangle(v, v + 3, v + 2)
- v:+4
- EndIf
- Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement