From 59ea29d8ff9dad751659a0a42d76a5534f7b4b97 Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 16 May 2022 13:44:10 +0300 Subject: New GenMeshCustom, UpdateMesh and lightmap example. --- doc_parser.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'doc_parser.lua') diff --git a/doc_parser.lua b/doc_parser.lua index 19b69c9..a32ed7b 100644 --- a/doc_parser.lua +++ b/doc_parser.lua @@ -95,11 +95,22 @@ int id. Font type, includes texture and chars data\n\n---\n" ) apiFile:write( "\n> Camera = CameraId\n\ int id. Defines 3d camera position/orientation\n\n---\n" ) apiFile:write( "\n> Mesh = MeshId\n\ -int id. Vertex data defining a mesh\n\n---\n" ) +int id. Vertex data defining a mesh\n\ +```\ +mesh{} = {\ + vertices = { Vector3, ... },\ + texcoords = { Vector2, ... },\ + texcoords2 = { Vector2, ... },\ + normals = { Vector3, ... },\ + tangents = { Vector4, ... },\ + colors = { Color, ... },\ + indices = { int, ... },\ +}\ +```\n\n---\n" ) apiFile:write( "\n> Material = MaterialId\n\ int id. Material type\n\ ```\ -table = {\ +material{} = {\ shader = Shader,\ maps = {\ {\ -- cgit v1.2.3