Ember

Tangets

Jun 12th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LoadMesh("knot.mesh");
  2. source_coord_set = SuggestMeshTangentVectorSourceCoordSet("knot.mesh", VES_TANGENT);
  3. index = SuggestMeshTangentVectorIndex("knot.mesh", VES_TANGENT);
  4. BuildMeshTangentVectors("knot.mesh", VES_TANGENT, source_coord_set, index);
  5. knot_entity = CreateEntity("knot.mesh");
  6. SetEntityMaterial(knot_entity, "knot");
  7. knot_node = CreateRootChildSceneNode(0, 0, 0, 0, 0, 0);
  8. AttachEntityToSceneNode(knot_entity, knot_node);
Advertisement
Add Comment
Please, Sign In to add comment