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:

Tables

Material

Fields:

Mesh

Fields:

  • name string
  • transform sk_transform.Transform
  • vertices {sk_math.Vector3,...}
  • normals {sk_math.Vector3,...}
  • faces {{number,number,number},...}
  • material Material
RenderChunk

Fields:

  • bone_pair {Bone,Bone}
  • mesh Mesh
  • meshRoot sk_scene.Node
  • attached_dl_index number
  • material Material
generated by LDoc 1.4.6 Last updated 2022-12-30 12:30:52