From 706beb1e88ba5534bedc5c4d82707a36cd0c2aa7 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Wed, 17 Dec 2025 03:36:29 -0600 Subject: [PATCH] website --- core.cm | 1 - examples/modelview.ce | 4 - website/index.html | 157 ++++++++++++++++++++++++++++++++ lance3d.md => website/manual.md | 12 ++- 4 files changed, 164 insertions(+), 10 deletions(-) create mode 100644 website/index.html rename lance3d.md => website/manual.md (97%) diff --git a/core.cm b/core.cm index cfc29d8..db68e3c 100644 --- a/core.cm +++ b/core.cm @@ -728,7 +728,6 @@ return { // Draw API load_model: load_model, - recalc_model_textures: recalc_model_textures, make_cube: make_cube, make_sphere: make_sphere, make_cylinder: make_cylinder, diff --git a/examples/modelview.ce b/examples/modelview.ce index 3d1dad1..d4a054e 100644 --- a/examples/modelview.ce +++ b/examples/modelview.ce @@ -173,10 +173,6 @@ function _switch_to_style(new_style) { if (style == new_style) return style = new_style lance3d.switch_style(style) - // Recalculate model textures for new style - if (model) { - lance3d.recalc_model_textures(model) - } log.console("Switched to " + style + " style") } diff --git a/website/index.html b/website/index.html new file mode 100644 index 0000000..1ded857 --- /dev/null +++ b/website/index.html @@ -0,0 +1,157 @@ + + + + + Manual + + + + + + + + + + + + + + + +
+
+Loading manual…
+
+If JavaScript is disabled, the Markdown below is the documentation.
+    
+
+ + + + + + + + + diff --git a/lance3d.md b/website/manual.md similarity index 97% rename from lance3d.md rename to website/manual.md index eae94b2..18e08f4 100644 --- a/lance3d.md +++ b/website/manual.md @@ -1,21 +1,23 @@ -## Core API +# Lance 3D + +# Core API Set style ps1 / n64 / saturn set_style("ps1" | "n64" | "saturn") -Get time since game boot, in seconds -time() +Get time since game boot, in seconds **time()** Get runtime statistics + stat(name: "draw_calls" | "triangles" | "fps" | "memory_bytes") -log(...args: any) - +``` set_lighting({ sun_dir: [0.3,-1,0.2], // normalized internally sun_color: [1,1,1], // rgb ambient: [0.25,0.25,0.25] // rgb }) +``` set_fog({ enabled: false,