@call-me-sensei/toonlab 0.4.23 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NPM-LIBRARY.md +7 -6
- package/README.md +50 -49
- package/agents/PROMPTS.md +1 -1
- package/agents/references/custom-gap-report.md +2 -2
- package/agents/skills/claude/toon-shading/SKILL.md +1 -1
- package/agents/skills/codex/toon-shading/SKILL.md +1 -1
- package/database/seeds/catalog/0008_2026-08-c7-v2.sql +39404 -0
- package/database/seeds/catalog/0009_2026-09-c8-first100-profiles.sql +14844 -0
- package/database/seeds/catalog/0010_2026-09-community-trees.sql +4466 -0
- package/mcp/server.mjs +1 -4
- package/package.json +9 -7
- package/scripts/generate-catalog-seed.mjs +60 -7
- package/src/character/modelLoader.js +42 -1
- package/src/core/materialRoles.js +40 -5
- package/src/environment/environmentMaterialAdapter.js +3 -3
- package/src/post/postProcessing.js +12 -0
- package/src/shaders-tsl/character/castShadows.js +147 -0
- package/src/shaders-tsl/character/characterMaterial.js +764 -0
- package/src/shaders-tsl/character/characterState.js +90 -0
- package/src/shaders-tsl/character/debugViews.js +34 -0
- package/src/shaders-tsl/character/displayColor.js +71 -0
- package/src/shaders-tsl/character/highlightsRim.js +123 -0
- package/src/shaders-tsl/character/paintedDetails.js +86 -0
- package/src/shaders-tsl/character/sceneLights.js +229 -0
- package/src/shaders-tsl/character/surfaceLight.js +148 -0
- package/src/shaders-tsl/chunks/character-roles.js +10 -3
- package/src/shaders-tsl/chunks/environment-lighting.js +2 -2
- package/src/shaders-tsl/chunks/pass-depth-color.js +11 -2
- package/src/shaders-tsl/chunks/projected-water-caustics.js +2 -3
- package/src/shaders-tsl/environment.js +2 -2
- package/src/shaders-tsl/flower.js +14 -2
- package/src/shaders-tsl/post-composite.js +14 -4
- package/src/sky/skySystem.js +4 -5
- package/src/styles/neutralStylePresets.js +12 -42
- package/src/toon/alphaCoverage.js +82 -0
- package/src/toon/autoRoles.js +589 -0
- package/src/toon/bakeAttribute.js +86 -0
- package/src/toon/characterParameters.js +269 -0
- package/src/toon/characterRenderPasses.js +430 -549
- package/src/toon/faceShadowBake.js +547 -0
- package/src/toon/featureBakes.js +353 -0
- package/src/toon/headBone.js +139 -0
- package/src/toon/occlusionBake.js +236 -0
- package/src/toon/settings/alphaSettings.js +68 -7
- package/src/toon/settings/autoRolesSettings.js +24 -0
- package/src/toon/settings/baseTextureSettings.js +21 -3
- package/src/toon/settings/faceSettings.js +56 -0
- package/src/toon/settings/fieldSchema.js +324 -0
- package/src/toon/settings/furSettings.js +1 -1
- package/src/toon/settings/highlightSettings.js +67 -0
- package/src/toon/settings/lightSettings.js +44 -0
- package/src/toon/settings/mapsSettings.js +132 -0
- package/src/toon/settings/outlineSettings.js +61 -254
- package/src/toon/settings/rampSettings.js +38 -0
- package/src/toon/settings/rimSettings.js +46 -0
- package/src/toon/settings/shadingSettings.js +42 -0
- package/src/toon/settings/shadowSettings.js +54 -0
- package/src/toon/skinEvidence.js +102 -0
- package/src/toon/sourceShading.js +176 -0
- package/src/toon/texturePixels.js +196 -0
- package/src/toon/toonMaterialAdapter.js +992 -1697
- package/src/toon/toonSettings.js +345 -923
- package/src/version.js +1 -1
- package/src/water/waterSurface.js +1 -1
- package/types/cloud/noise/weatherMap.d.ts +1 -1
- package/types/index.d.ts +18 -61
- package/types/post/postGenerator.d.ts +1 -0
- package/types/shaders-tsl/character/castShadows.d.ts +29 -0
- package/types/shaders-tsl/character/characterMaterial.d.ts +61 -0
- package/types/shaders-tsl/character/characterState.d.ts +27 -0
- package/types/shaders-tsl/character/debugViews.d.ts +6 -0
- package/types/shaders-tsl/character/displayColor.d.ts +13 -0
- package/types/shaders-tsl/character/highlightsRim.d.ts +43 -0
- package/types/shaders-tsl/character/paintedDetails.d.ts +20 -0
- package/types/shaders-tsl/character/sceneLights.d.ts +67 -0
- package/types/shaders-tsl/character/surfaceLight.d.ts +28 -0
- package/types/shaders-tsl/chunks/character-roles.d.ts +3 -2
- package/types/shaders-tsl/chunks/pass-depth-color.d.ts +3 -1
- package/types/shaders-tsl/post-composite.d.ts +0 -4
- package/types/styles/neutralStylePresets.d.ts +22 -415
- package/types/toon/alphaCoverage.d.ts +28 -0
- package/types/toon/autoRoles.d.ts +60 -0
- package/types/toon/bakeAttribute.d.ts +18 -0
- package/types/toon/characterParameters.d.ts +103 -0
- package/types/toon/characterRenderPasses.d.ts +45 -3
- package/types/toon/faceShadowBake.d.ts +31 -0
- package/types/toon/featureBakes.d.ts +20 -0
- package/types/toon/headBone.d.ts +34 -0
- package/types/toon/occlusionBake.d.ts +18 -0
- package/types/toon/settings/alphaSettings.d.ts +29 -3
- package/types/toon/settings/autoRolesSettings.d.ts +12 -0
- package/types/toon/settings/faceSettings.d.ts +43 -0
- package/types/toon/settings/fieldSchema.d.ts +101 -0
- package/types/toon/settings/highlightSettings.d.ts +77 -0
- package/types/toon/settings/lightSettings.d.ts +30 -0
- package/types/toon/settings/mapsSettings.d.ts +62 -0
- package/types/toon/settings/outlineSettings.d.ts +70 -124
- package/types/toon/settings/rampSettings.d.ts +26 -0
- package/types/toon/settings/rimSettings.d.ts +34 -0
- package/types/toon/settings/shadingSettings.d.ts +30 -0
- package/types/toon/settings/shadowSettings.d.ts +37 -0
- package/types/toon/skinEvidence.d.ts +14 -0
- package/types/toon/sourceShading.d.ts +36 -0
- package/types/toon/texturePixels.d.ts +25 -0
- package/types/toon/toonMaterialAdapter.d.ts +103 -855
- package/types/toon/toonSettings.d.ts +193 -1101
- package/types/version.d.ts +1 -1
- package/src/shaders-tsl/anime.js +0 -970
- package/src/shaders-tsl/chunks/character-color.js +0 -64
- package/src/shaders-tsl/chunks/character-highlights.js +0 -174
- package/src/shaders-tsl/chunks/character-lighting.js +0 -309
- package/src/shaders-tsl/chunks/character-material-maps.js +0 -146
- package/src/shaders-tsl/chunks/character-scene-lights.js +0 -270
- package/src/shaders-tsl/chunks/character-shadow-color.js +0 -61
- package/src/toon/settings/averageShadowSettings.js +0 -181
- package/src/toon/settings/celShadeSettings.js +0 -96
- package/src/toon/settings/contactShadowSettings.js +0 -114
- package/src/toon/settings/eyeHighlightSettings.js +0 -187
- package/src/toon/settings/faceLightingSettings.js +0 -135
- package/src/toon/settings/glitterSettings.js +0 -102
- package/src/toon/settings/hairHighlightSettings.js +0 -325
- package/src/toon/settings/indirectLightSettings.js +0 -244
- package/src/toon/settings/localLightSettings.js +0 -176
- package/src/toon/settings/materialMapSettings.js +0 -299
- package/src/toon/settings/perspectiveRemovalSettings.js +0 -60
- package/src/toon/settings/rimLightSettings.js +0 -268
- package/src/toon/settings/sceneShadowSettings.js +0 -147
- package/src/toon/settings/selfShadowSettings.js +0 -221
- package/src/toon/settings/shadowColorSettings.js +0 -238
- package/src/toon/settings/skinToneSettings.js +0 -150
- package/src/toon/settings/specularSettings.js +0 -314
- package/types/shaders-tsl/anime.d.ts +0 -9
- package/types/shaders-tsl/chunks/character-color.d.ts +0 -6
- package/types/shaders-tsl/chunks/character-highlights.d.ts +0 -12
- package/types/shaders-tsl/chunks/character-lighting.d.ts +0 -20
- package/types/shaders-tsl/chunks/character-material-maps.d.ts +0 -18
- package/types/shaders-tsl/chunks/character-scene-lights.d.ts +0 -48
- package/types/shaders-tsl/chunks/character-shadow-color.d.ts +0 -5
- package/types/toon/settings/averageShadowSettings.d.ts +0 -39
- package/types/toon/settings/celShadeSettings.d.ts +0 -37
- package/types/toon/settings/contactShadowSettings.d.ts +0 -30
- package/types/toon/settings/eyeHighlightSettings.d.ts +0 -55
- package/types/toon/settings/faceLightingSettings.d.ts +0 -32
- package/types/toon/settings/glitterSettings.d.ts +0 -43
- package/types/toon/settings/hairHighlightSettings.d.ts +0 -89
- package/types/toon/settings/indirectLightSettings.d.ts +0 -43
- package/types/toon/settings/localLightSettings.d.ts +0 -46
- package/types/toon/settings/materialMapSettings.d.ts +0 -86
- package/types/toon/settings/perspectiveRemovalSettings.d.ts +0 -14
- package/types/toon/settings/rimLightSettings.d.ts +0 -79
- package/types/toon/settings/sceneShadowSettings.d.ts +0 -32
- package/types/toon/settings/selfShadowSettings.d.ts +0 -44
- package/types/toon/settings/shadowColorSettings.d.ts +0 -77
- package/types/toon/settings/skinToneSettings.d.ts +0 -30
- package/types/toon/settings/specularSettings.d.ts +0 -96
package/NPM-LIBRARY.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# ToonLab npm library guide
|
|
2
2
|
|
|
3
3
|
This guide is included in `@call-me-sensei/toonlab`. It is the package-first
|
|
4
|
-
reference for version 0.
|
|
4
|
+
reference for version 0.5.0 and does not require access to the source
|
|
5
5
|
repository.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
@@ -89,9 +89,10 @@ import {
|
|
|
89
89
|
} from '@call-me-sensei/toonlab/toon';
|
|
90
90
|
|
|
91
91
|
const settings = createToonSettings({
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
preset: 'call_me_sensei',
|
|
93
|
+
rim: { intensity: { hair: 0.35 }, mode: 'depth' },
|
|
94
|
+
outline: { width: { cloth: 0.006 } },
|
|
95
|
+
ramp: { tone: { skin: [0.93, 0.74, 0.68] } },
|
|
95
96
|
});
|
|
96
97
|
|
|
97
98
|
applyToonShader(characterRoot, { settings });
|
|
@@ -142,7 +143,7 @@ surface detail, not displacement that replaces a geometric high-to-low bake.
|
|
|
142
143
|
|
|
143
144
|
## Load Nature Reference Rocks
|
|
144
145
|
|
|
145
|
-
Version 0.
|
|
146
|
+
Version 0.5.0 understands both the original `rock-0001`–`rock-0480`
|
|
146
147
|
identities and the Nature Reference Rocks catalog. Acquiring an asset
|
|
147
148
|
directly returns its realistic PBR GLB. The one-call placement path additionally
|
|
148
149
|
loads that asset's reviewed geology maps and `call_me_sensei` material settings
|
|
@@ -228,7 +229,7 @@ it uses the disk workspace passed through `--workspace`; no account is needed.
|
|
|
228
229
|
"command": "npx",
|
|
229
230
|
"args": [
|
|
230
231
|
"-y",
|
|
231
|
-
"--package=@call-me-sensei/toonlab@0.
|
|
232
|
+
"--package=@call-me-sensei/toonlab@0.5.0",
|
|
232
233
|
"toonlab-mcp",
|
|
233
234
|
"--workspace",
|
|
234
235
|
"/absolute/path/to/your-game/.toonlab"
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Use ToonLab as a focused runtime library (`@call-me-sensei/toonlab` on npm), as
|
|
|
19
19
|
an asset/preset authoring workspace, or as an asset-discovery service—not as a
|
|
20
20
|
one-shot world generator.
|
|
21
21
|
|
|
22
|
-
## Versioned expectation: 0.
|
|
22
|
+
## Versioned expectation: 0.5.0
|
|
23
23
|
|
|
24
24
|
For a correctly constructed and semantically labeled scene, one strict Call Me
|
|
25
25
|
Sensei bundle application is expected to establish the supported visual
|
|
@@ -115,7 +115,7 @@ await inspector.setDomainEnabled(label.domain, false);
|
|
|
115
115
|
**Run the labs locally** (this repo):
|
|
116
116
|
|
|
117
117
|
```bash
|
|
118
|
-
git clone https://github.com/call-me-sensei/toonlab.git && cd toonlab
|
|
118
|
+
git clone https://github.com/call-me-sensei-app/toonlab.git && cd toonlab
|
|
119
119
|
npm install
|
|
120
120
|
npm run setup
|
|
121
121
|
npm run dev
|
|
@@ -125,7 +125,7 @@ Setup starts local Postgres with Docker Compose, applies schema migrations and
|
|
|
125
125
|
official catalog seeds, and reports configured BYO-key providers. Set an
|
|
126
126
|
external `DATABASE_URL` to use an existing Postgres service instead. Vite
|
|
127
127
|
serves the labs at `http://127.0.0.1:5175`. See
|
|
128
|
-
[Getting started](https://github.com/call-me-sensei/toonlab/blob/main/docs/getting-started.md) for a tour.
|
|
128
|
+
[Getting started](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/getting-started.md) for a tour.
|
|
129
129
|
|
|
130
130
|
### Open the full documentation locally
|
|
131
131
|
|
|
@@ -153,7 +153,7 @@ Prerequisites:
|
|
|
153
153
|
Install and configure:
|
|
154
154
|
|
|
155
155
|
```bash
|
|
156
|
-
git clone https://github.com/call-me-sensei/toonlab.git
|
|
156
|
+
git clone https://github.com/call-me-sensei-app/toonlab.git
|
|
157
157
|
cd toonlab
|
|
158
158
|
npm install
|
|
159
159
|
cp .env.example .env
|
|
@@ -317,8 +317,8 @@ exported files; generate approved seeded recipes; and import assets into the
|
|
|
317
317
|
project. Authored Gallery recipes are fetched with their public license and
|
|
318
318
|
provenance instead of being copied into the npm package. The server uses stdio,
|
|
319
319
|
requires no account or OAuth for public discovery, and keeps local work local.
|
|
320
|
-
See [Local MCP and workspace](https://github.com/call-me-sensei/toonlab/blob/main/docs/mcp.md) and
|
|
321
|
-
[Local database and public asset releases](https://github.com/call-me-sensei/toonlab/blob/main/docs/local-database-and-public-assets.md).
|
|
320
|
+
See [Local MCP and workspace](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/mcp.md) and
|
|
321
|
+
[Local database and public asset releases](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/local-database-and-public-assets.md).
|
|
322
322
|
|
|
323
323
|
## The labs
|
|
324
324
|
|
|
@@ -326,7 +326,7 @@ Lab UIs are development tools and are not published in the npm package. The
|
|
|
326
326
|
Labs home (`/`) presents the 15 live user-facing Labs by the artifact they
|
|
327
327
|
author. Every Lab can save and reopen its documented portable creation type;
|
|
328
328
|
preview cameras, stages, lights, playback, and comparison helpers remain
|
|
329
|
-
preview-only. See [The 15 live ToonLab Labs](https://github.com/call-me-sensei/toonlab/blob/main/docs/live-labs.md).
|
|
329
|
+
preview-only. See [The 15 live ToonLab Labs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/live-labs.md).
|
|
330
330
|
|
|
331
331
|
Focused ToonLab shaders, water, vegetation, generated assets, texture recipes,
|
|
332
332
|
Gallery assets, and metadata are intended for supplied scene content. Complete
|
|
@@ -336,7 +336,7 @@ construction remain host responsibilities.
|
|
|
336
336
|
Every lab also uses one shared 24-hour preview harness with Dawn, Day, Sunset,
|
|
337
337
|
and Night captures. The Day reference must visibly show Call Me Sensei's
|
|
338
338
|
cool/blue shadow response. See the
|
|
339
|
-
[universal preview contract](https://github.com/call-me-sensei/toonlab/blob/main/docs/lab-preview-environment.md).
|
|
339
|
+
[universal preview contract](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/lab-preview-environment.md).
|
|
340
340
|
|
|
341
341
|
- **Shaders** — Character, Tree, Grass, Flower, Rock, Ground, Manufactured
|
|
342
342
|
Surface, Water, Sky, Cloud, and integrated Sky & Cloud authoring.
|
|
@@ -345,8 +345,8 @@ cool/blue shadow response. See the
|
|
|
345
345
|
|
|
346
346
|
Every card links to a working editor. Integration examples are documented as
|
|
347
347
|
examples rather than additional Labs. See
|
|
348
|
-
[Lab responsibilities](https://github.com/call-me-sensei/toonlab/blob/main/docs/lab-architecture.md) for scope rules and
|
|
349
|
-
[Getting started](https://github.com/call-me-sensei/toonlab/blob/main/docs/getting-started.md) for current direct routes.
|
|
348
|
+
[Lab responsibilities](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/lab-architecture.md) for scope rules and
|
|
349
|
+
[Getting started](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/getting-started.md) for current direct routes.
|
|
350
350
|
|
|
351
351
|
Sky, Cloud, and Water Labs author reusable rendering artifacts. Your application
|
|
352
352
|
still supplies valid scene geometry, placement, current conditions, and the
|
|
@@ -362,7 +362,7 @@ retired after the verified commit. Static hosted builds
|
|
|
362
362
|
fall back to browser storage. **Reset Lab** clears the current lab state.
|
|
363
363
|
Point any model-aware lab at your own model with the Model URL input or
|
|
364
364
|
`?model=` — see
|
|
365
|
-
[Characters](https://github.com/call-me-sensei/toonlab/blob/main/docs/characters.md).
|
|
365
|
+
[Characters](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/characters.md).
|
|
366
366
|
|
|
367
367
|
## What's inside
|
|
368
368
|
|
|
@@ -375,21 +375,21 @@ camera behavior, and game feel remain host-owned or pre-beta.
|
|
|
375
375
|
|
|
376
376
|
| Cluster | Import | What you get |
|
|
377
377
|
|---|---|---|
|
|
378
|
-
| Styles and bundles | `@call-me-sensei/toonlab/styles` | Local, versioned style-bundle documents that coordinate domain profiles without storing asset identity or current scene state. Create, validate, serialize, parse, and resolve JSON with no account or database; hosts currently route explicitly labeled assets through each owning runtime. [Contract](https://github.com/call-me-sensei/toonlab/blob/main/docs/styles-and-bundles.md) |
|
|
379
|
-
| Toon character shading | `@call-me-sensei/toonlab/toon` |
|
|
380
|
-
| Environment shading | `@call-me-sensei/toonlab/environment` | Modern anime-style scene shader for texture packs, standard glTF, and untextured scenes: material-role classification, wrapped lighting, packed-map hints, window cutouts, sun/lamp rigs, time-of-day, six-direction ambient probe, planar floor reflections, BVH vertex-AO baking, height fog, cloud shadows. [Docs](https://github.com/call-me-sensei/toonlab/blob/main/docs/environment.md) |
|
|
381
|
-
| Water | `@call-me-sensei/toonlab/water` | Focused water treatment for a host-authored water footprint, continuous shore, and closed seabed: Gerstner waves, absorption color, refraction/caustics/foam, ripples, splashes, wakes, kelp, underwater treatment, and CPU buoyancy sampling. It does not design the coast or underwater habitat. [Docs](https://github.com/call-me-sensei/toonlab/blob/main/docs/water.md) |
|
|
382
|
-
| Vegetation | `@call-me-sensei/toonlab/vegetation` | Tree/grass/flower construction and shader runtimes, including the focused procedural broadleaf `BranchTree` with deterministic branching, eight leaf silhouettes, caller-supplied leaf/bark textures, and a portable recipe. No authored tree asset collection is bundled or exported: reviewed tree recipes remain searchable Gallery assets delivered through MCP with their CC0 metadata. Package-generated trees preserve authored bark first and otherwise select a registered deterministic bark surface instead of a bare trunk. The experimental species roster remains repository-only. [Docs](https://github.com/call-me-sensei/toonlab/blob/main/docs/vegetation-sky.md) |
|
|
383
|
-
| Rock shader | `@call-me-sensei/toonlab/rock-shader` | Detailed, versioned rock-material profiles with projected detail, distance tint, normal fading, striping, moss and optional top layers, plus explicit source-albedo and vertex-color/AO integration. Call Me Sensei is the default. Geometry generation remains separate in `rockgen`. [Docs](https://github.com/call-me-sensei/toonlab/blob/main/docs/rock-shader.md) |
|
|
384
|
-
| Ground shader | `@call-me-sensei/toonlab/ground-shader` | Splat-weighted anime terrain with slope/cliff detail, shoreline and weather response, HDR sun/shade controls, safe shadow defaults, and flat-albedo ground-field output for vegetation adoption. [Docs](https://github.com/call-me-sensei/toonlab/blob/main/docs/ground-shader.md) |
|
|
385
|
-
| Sky | `@call-me-sensei/toonlab/sky` | Reusable atmosphere, palette, sun, moon, stars, and god-ray settings authored by Sky Lab and Sky & Cloud Lab. Your application coordinates final lighting and scene state. [Docs](https://github.com/call-me-sensei/toonlab/blob/main/docs/sky.md) |
|
|
386
|
-
| Cloud | `@call-me-sensei/toonlab/cloud` | Reusable cloud shape, erosion, density, lighting, wind, cirrus, haze, fade, style, and hero-cloud recipe controls authored by Cloud Shader Lab and Sky & Cloud Lab. [Docs](https://github.com/call-me-sensei/toonlab/blob/main/docs/cloud-shader.md) |
|
|
387
|
-
| Post-processing | `@call-me-sensei/toonlab/post` | Optional single-pipeline compositor: character-aware bloom, color grade, LUT, vignette, screen outline, depth cue — schema-driven, preset-serializable. [Docs](https://github.com/call-me-sensei/toonlab/blob/main/docs/post-processing.md) |
|
|
388
|
-
| Procedural textures | `@call-me-sensei/toonlab/texgen` | Seamless CPU-baked PBR texture generator: 25 tileable pattern/noise generators, layered detail + colored overlays (moss, rust, grime), five-stop cel-capable color ramp, cavity/sheen hand-painted read, derived normal/AO/roughness/metalness/height/ORM/emissive maps, 60+ presets, and a natural-language recipe mapper (offline keywords or BYO-key Gemini/OpenAI). [Docs](https://github.com/call-me-sensei/toonlab/blob/main/docs/texture-lab.md) |
|
|
389
|
-
| Character pipeline | `@call-me-sensei/toonlab/character` | High-level load/style/rig/animate lifecycle runtime, bone-role adapters for VRM/MMD/Mixamo/Rigify rigs, native-or-packaged locomotion fallback, and procedural freestyle swim. [Docs](https://github.com/call-me-sensei/toonlab/blob/main/docs/characters.md) |
|
|
378
|
+
| Styles and bundles | `@call-me-sensei/toonlab/styles` | Local, versioned style-bundle documents that coordinate domain profiles without storing asset identity or current scene state. Create, validate, serialize, parse, and resolve JSON with no account or database; hosts currently route explicitly labeled assets through each owning runtime. [Contract](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/styles-and-bundles.md) |
|
|
379
|
+
| Toon character shading | `@call-me-sensei/toonlab/toon` | Anime-game character shader: flat lit colour, per-surface shadow tones with a warm band at the terminator, face maps baked automatically from the face, a nose shadow, eye-white shade and stocking sheen derived from the model, environment-aware light (sun, sky, cast shade), scenery, character and hair-on-face shadows, depth rim, hair ring and masked specular, ink outlines coloured from the surface, source map routing (normal/AO/emissive/MatCap/detail), stickers, shell fur, dither fades — 14 settings groups, all preset-serializable. [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/toon-shading.md) |
|
|
380
|
+
| Environment shading | `@call-me-sensei/toonlab/environment` | Modern anime-style scene shader for texture packs, standard glTF, and untextured scenes: material-role classification, wrapped lighting, packed-map hints, window cutouts, sun/lamp rigs, time-of-day, six-direction ambient probe, planar floor reflections, BVH vertex-AO baking, height fog, cloud shadows. [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/environment.md) |
|
|
381
|
+
| Water | `@call-me-sensei/toonlab/water` | Focused water treatment for a host-authored water footprint, continuous shore, and closed seabed: Gerstner waves, absorption color, refraction/caustics/foam, ripples, splashes, wakes, kelp, underwater treatment, and CPU buoyancy sampling. It does not design the coast or underwater habitat. [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/water.md) |
|
|
382
|
+
| Vegetation | `@call-me-sensei/toonlab/vegetation` | Tree/grass/flower construction and shader runtimes, including the focused procedural broadleaf `BranchTree` with deterministic branching, eight leaf silhouettes, caller-supplied leaf/bark textures, and a portable recipe. No authored tree asset collection is bundled or exported: reviewed tree recipes remain searchable Gallery assets delivered through MCP with their CC0 metadata. Package-generated trees preserve authored bark first and otherwise select a registered deterministic bark surface instead of a bare trunk. The experimental species roster remains repository-only. [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/vegetation-sky.md) |
|
|
383
|
+
| Rock shader | `@call-me-sensei/toonlab/rock-shader` | Detailed, versioned rock-material profiles with projected detail, distance tint, normal fading, striping, moss and optional top layers, plus explicit source-albedo and vertex-color/AO integration. Call Me Sensei is the default. Geometry generation remains separate in `rockgen`. [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/rock-shader.md) |
|
|
384
|
+
| Ground shader | `@call-me-sensei/toonlab/ground-shader` | Splat-weighted anime terrain with slope/cliff detail, shoreline and weather response, HDR sun/shade controls, safe shadow defaults, and flat-albedo ground-field output for vegetation adoption. [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/ground-shader.md) |
|
|
385
|
+
| Sky | `@call-me-sensei/toonlab/sky` | Reusable atmosphere, palette, sun, moon, stars, and god-ray settings authored by Sky Lab and Sky & Cloud Lab. Your application coordinates final lighting and scene state. [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/sky.md) |
|
|
386
|
+
| Cloud | `@call-me-sensei/toonlab/cloud` | Reusable cloud shape, erosion, density, lighting, wind, cirrus, haze, fade, style, and hero-cloud recipe controls authored by Cloud Shader Lab and Sky & Cloud Lab. [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/cloud-shader.md) |
|
|
387
|
+
| Post-processing | `@call-me-sensei/toonlab/post` | Optional single-pipeline compositor: character-aware bloom, color grade, LUT, vignette, screen outline, depth cue — schema-driven, preset-serializable. [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/post-processing.md) |
|
|
388
|
+
| Procedural textures | `@call-me-sensei/toonlab/texgen` | Seamless CPU-baked PBR texture generator: 25 tileable pattern/noise generators, layered detail + colored overlays (moss, rust, grime), five-stop cel-capable color ramp, cavity/sheen hand-painted read, derived normal/AO/roughness/metalness/height/ORM/emissive maps, 60+ presets, and a natural-language recipe mapper (offline keywords or BYO-key Gemini/OpenAI). [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/texture-lab.md) |
|
|
389
|
+
| Character pipeline | `@call-me-sensei/toonlab/character` | High-level load/style/rig/animate lifecycle runtime, bone-role adapters for VRM/MMD/Mixamo/Rigify rigs, native-or-packaged locomotion fallback, and procedural freestyle swim. [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/characters.md) |
|
|
390
390
|
| Scene surface runtime | `@call-me-sensei/toonlab/runtime` | One strict heightfield contract for grounded props/characters, terrain-aware meadow scatter, shoreline water bed/phase/state wiring, source-texture continuity, and actual labeled shadow-coverage readiness. The host still authors terrain and XZ layout. |
|
|
391
391
|
| Scene collision runtime | `@call-me-sensei/toonlab/runtime` | Automatic reversible collision discovery for labeled static solids, lightweight walkable blockers by default, strict readiness diagnostics, and public Rapier/custom-adapter integration. |
|
|
392
|
-
| Model loaders | `@call-me-sensei/toonlab/loaders` | Optional GLB/glTF, VRM 0+1, PMX/PMD, FBX, OBJ, and text-USDZ loading helpers. Kept off the root import so apps that do not load models avoid loader dependencies. [Docs](https://github.com/call-me-sensei/toonlab/blob/main/docs/characters.md) |
|
|
392
|
+
| Model loaders | `@call-me-sensei/toonlab/loaders` | Optional GLB/glTF, VRM 0+1, PMX/PMD, FBX, OBJ, and text-USDZ loading helpers. Kept off the root import so apps that do not load models avoid loader dependencies. [Docs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/characters.md) |
|
|
393
393
|
|
|
394
394
|
The main `vegetation` barrel exposes the complete runtime. Smaller consumers
|
|
395
395
|
can import the same bindings from
|
|
@@ -573,7 +573,8 @@ Use the domain-specific runtimes below to implement each `apply` callback.
|
|
|
573
573
|
Asset identity stays in project/library sourcing configuration; it is never
|
|
574
574
|
embedded in the style bundle. Custom adapters and custom assets must be
|
|
575
575
|
recorded in `.toonlab/reports/style-asset-gaps.json` and
|
|
576
|
-
|
|
576
|
+
`.toonlab/reports/asset-gaps.md`. These generated review records stay local and are
|
|
577
|
+
excluded from source control.
|
|
577
578
|
|
|
578
579
|
### Individual clusters
|
|
579
580
|
|
|
@@ -582,8 +583,8 @@ import { applyToonShader, createToonSettings } from '@call-me-sensei/toonlab/too
|
|
|
582
583
|
|
|
583
584
|
const settings = createToonSettings({
|
|
584
585
|
preset: 'default',
|
|
585
|
-
|
|
586
|
-
|
|
586
|
+
ramp: {
|
|
587
|
+
tone: { skin: [0.94, 0.82, 0.76] },
|
|
587
588
|
},
|
|
588
589
|
});
|
|
589
590
|
|
|
@@ -622,42 +623,42 @@ stack, with WebGL2 fallback through the same TSL path.
|
|
|
622
623
|
MCP setup, the prompt cookbook, and the full settings reference. Hosted
|
|
623
624
|
features are marked "Pro"; the extended hosted docs live at
|
|
624
625
|
[toonlab.io/docs](https://toonlab.io/docs).
|
|
625
|
-
- [Lab responsibilities](https://github.com/call-me-sensei/toonlab/blob/main/docs/lab-architecture.md) — the finalized artifact,
|
|
626
|
+
- [Lab responsibilities](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/lab-architecture.md) — the finalized artifact,
|
|
626
627
|
production-method, editor/library, and preview-state boundaries.
|
|
627
|
-
- [The 15 live ToonLab Labs](https://github.com/call-me-sensei/toonlab/blob/main/docs/live-labs.md) — each user-facing editor, saved artifact, runtime, and generation workflow.
|
|
628
|
-
- [Universal lab preview environment](https://github.com/call-me-sensei/toonlab/blob/main/docs/lab-preview-environment.md) —
|
|
628
|
+
- [The 15 live ToonLab Labs](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/live-labs.md) — each user-facing editor, saved artifact, runtime, and generation workflow.
|
|
629
|
+
- [Universal lab preview environment](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/lab-preview-environment.md) —
|
|
629
630
|
shared 24-hour controls, four-state regression matrix, and required cool/blue
|
|
630
631
|
daylight-shadow verification.
|
|
631
|
-
- [Rock shader](https://github.com/call-me-sensei/toonlab/blob/main/docs/rock-shader.md) — the separate generator/material
|
|
632
|
+
- [Rock shader](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/rock-shader.md) — the separate generator/material
|
|
632
633
|
architecture, schema-defined public configuration, import policy, and bundle use.
|
|
633
|
-
- [Styles, style bundles, and asset routing](https://github.com/call-me-sensei/toonlab/blob/main/docs/styles-and-bundles.md) —
|
|
634
|
+
- [Styles, style bundles, and asset routing](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/styles-and-bundles.md) —
|
|
634
635
|
rendering domains, required asset labels, fallback policy, bundle ownership,
|
|
635
636
|
OSS application boundaries, and the shader/lab migration contract.
|
|
636
|
-
- [Open asset library and scene coverage](https://github.com/call-me-sensei/toonlab/blob/main/docs/open-asset-library.md) —
|
|
637
|
+
- [Open asset library and scene coverage](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/open-asset-library.md) —
|
|
637
638
|
measurable scene-kit coverage, curated stylized generator base sets,
|
|
638
639
|
CC0/CC-BY provenance, gallery routing, and generation fallback policy.
|
|
639
|
-
- [Getting started](https://github.com/call-me-sensei/toonlab/blob/main/docs/getting-started.md) — clone, run, tour the labs,
|
|
640
|
+
- [Getting started](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/getting-started.md) — clone, run, tour the labs,
|
|
640
641
|
load your own models.
|
|
641
|
-
- [Current capability status](https://github.com/call-me-sensei/toonlab/blob/main/docs/capability-status.md) — recommended
|
|
642
|
+
- [Current capability status](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/capability-status.md) — recommended
|
|
642
643
|
existing-scene, Gallery, MCP, and focused-authoring workflows versus
|
|
643
644
|
experimental scene-construction claims.
|
|
644
|
-
- [Toon character shading](https://github.com/call-me-sensei/toonlab/blob/main/docs/toon-shading.md)
|
|
645
|
-
- [Manufactured environment materials](https://github.com/call-me-sensei/toonlab/blob/main/docs/urban-prop-surface-roles.md) —
|
|
645
|
+
- [Toon character shading](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/toon-shading.md)
|
|
646
|
+
- [Manufactured environment materials](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/urban-prop-surface-roles.md) —
|
|
646
647
|
the layered classify-once contract for props, vehicles, buildings,
|
|
647
648
|
interiors, and reusable material-aware shaders.
|
|
648
|
-
- [Environment shading](https://github.com/call-me-sensei/toonlab/blob/main/docs/environment.md)
|
|
649
|
-
- [Styles and bundles](https://github.com/call-me-sensei/toonlab/blob/main/docs/styles-and-bundles.md) — apply coordinated treatments to explicitly labeled scene targets.
|
|
650
|
-
- [Current release notes](https://github.com/call-me-sensei/toonlab/blob/main/docs/release-notes.md)
|
|
651
|
-
- [Water](https://github.com/call-me-sensei/toonlab/blob/main/docs/water.md)
|
|
652
|
-
- [Sky system](https://github.com/call-me-sensei/toonlab/blob/main/docs/sky.md)
|
|
653
|
-
- [Cloud shader](https://github.com/call-me-sensei/toonlab/blob/main/docs/cloud-shader.md)
|
|
654
|
-
- [Vegetation](https://github.com/call-me-sensei/toonlab/blob/main/docs/vegetation-sky.md)
|
|
655
|
-
- [Post-processing](https://github.com/call-me-sensei/toonlab/blob/main/docs/post-processing.md)
|
|
656
|
-
- [Texture Lab and texgen](https://github.com/call-me-sensei/toonlab/blob/main/docs/texture-lab.md)
|
|
657
|
-
- [Characters and animation](https://github.com/call-me-sensei/toonlab/blob/main/docs/characters.md)
|
|
658
|
-
- [Settings reference](https://github.com/call-me-sensei/toonlab/blob/main/docs/settings-reference.md) — selected runtime and repository settings,
|
|
649
|
+
- [Environment shading](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/environment.md)
|
|
650
|
+
- [Styles and bundles](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/styles-and-bundles.md) — apply coordinated treatments to explicitly labeled scene targets.
|
|
651
|
+
- [Current release notes](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/release-notes.md)
|
|
652
|
+
- [Water](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/water.md)
|
|
653
|
+
- [Sky system](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/sky.md)
|
|
654
|
+
- [Cloud shader](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/cloud-shader.md)
|
|
655
|
+
- [Vegetation](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/vegetation-sky.md)
|
|
656
|
+
- [Post-processing](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/post-processing.md)
|
|
657
|
+
- [Texture Lab and texgen](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/texture-lab.md)
|
|
658
|
+
- [Characters and animation](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/characters.md)
|
|
659
|
+
- [Settings reference](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/settings-reference.md) — selected runtime and repository settings,
|
|
659
660
|
generated from the schemas (`node scripts/generate-settings-reference.mjs`).
|
|
660
|
-
- [Shader constants](https://github.com/call-me-sensei/toonlab/blob/main/docs/shader-constants.md) — the deliberately unexposed
|
|
661
|
+
- [Shader constants](https://github.com/call-me-sensei-app/toonlab/blob/main/docs/shader-constants.md) — the deliberately unexposed
|
|
661
662
|
constants and where they live.
|
|
662
663
|
|
|
663
664
|
## Build with an AI coding agent
|
package/agents/PROMPTS.md
CHANGED
|
@@ -12,5 +12,5 @@ Custom work should be traceable instead of becoming an invisible fallback. Befor
|
|
|
12
12
|
- Why the customization exists and what your team may want to revisit later.
|
|
13
13
|
|
|
14
14
|
The MCP server maintains `.toonlab/reports/style-asset-gaps.json` and the
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
workspace report `.toonlab/reports/asset-gaps.md`. These are local review records; exclude
|
|
16
|
+
them from source control when working with custom rendering or content.
|
|
@@ -11,7 +11,7 @@ References beginning `agents/` resolve from the installed ToonLab package root
|
|
|
11
11
|
|
|
12
12
|
Use this skill when a developer wants ToonLab character toon materials, toon
|
|
13
13
|
settings, preset documents, material-role handling, outlines, hair highlights,
|
|
14
|
-
rim light, shadows,
|
|
14
|
+
rim light, shadows, shadow tones, face maps, stickers, fur, or debug views in their app.
|
|
15
15
|
|
|
16
16
|
Public imports:
|
|
17
17
|
- `@call-me-sensei/toonlab/toon`
|
|
@@ -11,7 +11,7 @@ References beginning `agents/` resolve from the installed ToonLab package root
|
|
|
11
11
|
|
|
12
12
|
Use this skill when a developer wants ToonLab character toon materials, toon
|
|
13
13
|
settings, preset documents, material-role handling, outlines, hair highlights,
|
|
14
|
-
rim light, shadows,
|
|
14
|
+
rim light, shadows, shadow tones, face maps, stickers, fur, or debug views in their app.
|
|
15
15
|
|
|
16
16
|
Public imports:
|
|
17
17
|
- `@call-me-sensei/toonlab/toon`
|