forked from RigsOfRods/rigs-of-rods
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👼Script: added reading verts and texcoords from Mesh.
Task 3/3 from RigsOfRods#3030. This means I can start writing a script to batch together terrain objects (meshes+textures) for performance - especially for Community Map New script API: * objects: `MeshPtr, SubMesh, MeshManager` * to get vert positions, use "array<vector3>@ __getVertexPositions()" on SubMesh * ditto for vert texcoords, note the extra index param because mesh can have more than 1 texcoord layer: "array<vector2>@ __getVertexTexcoords(uint index)" See example script "example_ogre_vertexData.as"
- Loading branch information
Showing
2 changed files
with
382 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.