Module sk_mesh
Functions
| generate_render_chunks (node) | generate runder chunks for a node |
| generate_mesh (renderChunks, file[, changes]) | Generates a mesh |
| generate_vertex_buffer (mesh[, material[, file_suffix]]) | Generates a vertex buffer for a given mesh and material pair Materials are important since it will determine if the vertex buffer uses normals or colors and the size of the texture used for calculated uv coordinates |
Tables
| Material | |
| Mesh | |
| RenderChunk |
Functions
- generate_render_chunks (node)
-
generate runder chunks for a node
Parameters:
- node sk_scene.Node
Returns:
-
{RenderChunk,...}
result
- generate_mesh (renderChunks, file[, changes])
-
Generates a mesh
Parameters:
- renderChunks {RenderChunk,...}
- file string suffix where the mesh definition is written to
- changes DisplayListOverrides to the display list (optional)
- generate_vertex_buffer (mesh[, material[, file_suffix]])
-
Generates a vertex buffer for a given mesh and material pair
Materials are important since it will determine if the vertex
buffer uses normals or colors and the size of the texture
used for calculated uv coordinates
Parameters: