Agent skill

3D Paper Material

by MengTo in MengTo/Skills

Build a paper sheet in Three.js that reads as paper up close — washi, cotton rag or kraft with baked fibre and tooth relief, laid and chain lines, a torn deckle edge with frayed fibres, four-layer…

MITAuto-check passedGame Development

Install 3D Paper Material

skills CLI
$ npx skills add MengTo/Skills --skill 3d-paper-material -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install MengTo/Skills 3d-paper-material --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/MengTo/Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agent-skills/3d/3d-paper-material .claude/skills/3d-paper-material && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
3d-paper-material
GitHub stars
6.7k
Token cost
~2.4k tokens
SKILL.md length
1,370 words
Files
5
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

Build a paper sheet in Three.js that reads as paper up close — washi, cotton rag or kraft with baked fibre and tooth relief, laid and chain lines, a torn deckle edge with frayed fibres, four-layer…

  • Works in 7 steps: Bake fibres (GPU, once). One full-screen… → Warp the lattice. Domain-warp the fibre… → Paint the mask (Canvas 2D, on stock… → …
  • Card that must survive a macro close-up
  • SKILL.md covers The pipeline, Constants that landed, Rules and the failure each… and Gotchas, symptom first, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

3D Paper Material is an agent skill from MengTo/Skills. Build a paper sheet in Three.js that reads as paper up close — washi, cotton rag or kraft with baked fibre and tooth relief, laid and chain lines, a torn deckle edge with frayed fibres, four-layer thickness, a rolled corner and crease, ink that wicks along the fibres, toasted aged edges, contact shadows and back-lit translucency. Use for a hung sheet, scroll, page, label, shoji pane or card that must survive a macro close-up, or when paper looks like a flat white plane, has ruler-straight edges, no thickness, or…

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `PROMPT.md` and `agents/openai.yaml`).

It sits in Game Development, covering 3D graphics and WebGL. It works with Three.js. The repository describes itself as: Agent skills for designers and builders using Codex, Claude, Cursor, and other AI coding agents. The licence is MIT.

When your agent uses it

  • Card that must survive a macro close-up
  • Paper looks like a flat white plane
  • Has ruler-straight edges
  • Does not glow when lit from behind

Example prompts

  • “/3d-paper-material”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Bake fibres (GPU, once). One full-screen pass writes R height, G formation, B fibre, A fleck to a half-float target. Height is 0.5 +…
  2. Warp the lattice. Domain-warp the fibre coordinates by 0.014 unit and rotate them by (gnoise(q*2.1)-0.5)*1.5 rad. Add a finer, fainter…
  3. Paint the mask (Canvas 2D, on stock change). R thin strip inside the tear, G silhouette plus fray fibres, B ink with a low-alpha bleed…
  4. Shape the sheet. A 168 x 240 plane: hung bow, a mountain crease, pin dimples, and a cylinder roll (radius 0.23, angle 2.6*curl) that keeps…
  5. Shade. Albedo from formation and fibre, ink over it, toast and foxing by the age mask. Height goes through a world-unit bump (see…
  6. Transmit. emissive += L * tr, where tr = 0.74 + (0.5-form)*0.85 + (0.5-lowfbm)*0.45 - fibre*0.22 - fleck*0.45, times stock gain, plus the…
  7. Macro. Re-bake a second height target and mask over a 0.5 unit window at the focus point and blend it over the base by window edge. Never…

What it can do on your machine

Read from SKILL.md and the folder at commit 83a47fe. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

3D Paper Material loads about 2.4k tokens when it runs. Until then it costs about 175 tokens; SKILL.md has 1,370 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~175
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from MengTo/Skills at commit 83a47fe, republished under its MIT licence (© MengTo). 1,370 words, ~2,361 tokens.

Download SKILL.mdSave it as .claude/skills/3d-paper-material/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
3d-paper-material
description
Build a paper sheet in Three.js that reads as paper up close — washi, cotton rag or kraft with baked fibre and tooth relief, laid and chain lines, a torn deckle edge with frayed fibres, four-layer thickness, a rolled corner and crease, ink that wicks along the fibres, toasted aged edges, contact shadows and back-lit translucency. Use for a hung sheet, scroll, page, label, shoji pane or card that must survive a macro close-up, or when paper looks like a flat white plane, has ruler-straight edges, no thickness, or does not glow when lit from behind. Use 3d-wood-material, 3d-cloth-material or 3d-metal-material for those materials, and paper-cinder-transition for burning paper.

3D Paper Material

Paper is a fibre field cut out by a torn outline: a height map of laid fibres and formation clouds gives the surface, an alpha mask with pulled-out fibres gives the edge, offset copies give the thickness, and the back light is transmitted by how thin the formation is at each pixel. Drop any one and the sheet is a white plane.

Reach for paper-cinder-transition when the paper burns or is revealed by fire; this skill is the unburnt sheet. It is a hung or laid sheet in a scene. A page-turning book needs a bend rig this skill does not provide.

Read demo.html for a working build: MeshPhysicalMaterial patched with onBeforeCompile, maps baked once into half-float targets, masks painted with Canvas 2D. Its NOISE GLSL, formation, kozo-fibre and bark-fleck expressions, back-light transmission, tearLine and the fray loop are ported unchanged from the Kibori workshop page (kibori.html, washiMat, footTear).

The pipeline

  1. Bake fibres (GPU, once). One full-screen pass writes R height, G formation, B fibre, A fleck to a half-float target. Height is 0.5 + fibre*0.34 + (tooth-0.5)*0.1 - fleck*0.2 - crease*0.55. Keep samples: 0 on the target and mipmaps on.
  2. Warp the lattice. Domain-warp the fibre coordinates by 0.014 unit and rotate them by (gnoise(q*2.1)-0.5)*1.5 rad. Add a finer, fainter fibre set at 2.7x frequency (max 0.55).
  3. Paint the mask (Canvas 2D, on stock change). R thin strip inside the tear, G silhouette plus fray fibres, B ink with a low-alpha bleed halo, A the silhouette blurred by a shadow drawn off to the side (edge age). Read back with getImageData and write into a DataTexture, rows flipped, alpha as data.
  4. Shape the sheet. A 168 x 240 plane: hung bow, a mountain crease, pin dimples, and a cylinder roll (radius 0.23, angle 2.6*curl) that keeps length. Add three copies offset along the normal by thick/3, 2thick/3, thick.
  5. Shade. Albedo from formation and fibre, ink over it, toast and foxing by the age mask. Height goes through a world-unit bump (see gotchas). Alpha is coverage, not a cut.
  6. Transmit. emissive += L * tr, where tr = 0.74 + (0.5-form)*0.85 + (0.5-lowfbm)*0.45 - fibre*0.22 - fleck*0.45, times stock gain, plus the thin strip, minus ink. L is the garden behind: sky, sun patch, black bamboo stems sampled through a mip bias of 1.4.
  7. Macro. Re-bake a second height target and mask over a 0.5 unit window at the focus point and blend it over the base by window edge. Never tile a small texture.

Constants that landed

washicotton ragkraft
tint#f0e8d2#f0eee6#a88f70
fibre lattice A / B (per unit)1.9x54 / 44x2.315x17 / 16x147x26 / 26x7
fibre relief, bump height (unit)0.55, 0.00170.32, 0.00240.8, 0.0034
tooth freq, amp230, 0.09430, 0.17300, 0.20
laid lines /unit, amp, chain110, 0.28, 0150, 0.55, 0.5none
tear amplitude (T,R,B,L), fray scale64,72,60,76; x123,58,3,54; x696,3,4,3; x8
thickness (unit), transmission0.0045, 1.00.0085, 0.420.011, 0.16
roughness, sheen0.93, 0.40.9, 0.250.96, 0.10

Scale: 1 unit = 134.8 mm (A4 is 1.55 x 2.2). Base bake 990 px/unit = 7.3 px/mm; macro window 1536 px over 0.5 unit = 22.8 px/mm. Tear samples 3400 per unit. Camera 28 degree FOV; macro distance 0.46-0.50.

Rules and the failure each prevents

  • Cut the outline from four independent tear lines, never a rectangle with a wobble. A single sine or noise edge reads as a CSS wave; tearLine runs straight, turns, runs again. Give cut sides amplitude 3-4, torn sides 60-100.
  • Pull fibres past the edge and paint them as partial coverage. A hard alpha edge reads as scissors. Fibres are 0.3-0.7 px wide at 30-75% alpha; on a dark wall they show as pale hairs.
  • Stack three offset copies behind the front layer, tinted 0.8-0.94 of the paper. One quad has no thickness and shows nothing side-on. Keep the offset at 0.0045-0.011 unit; more reads as cardboard.
  • Warp and rotate the fibre lattice. Two orthogonal ridged families read as scratched glass or a crosshatch, especially raking-lit.
  • Drive transmission from the same fields as the albedo. A flat emissive constant reads as a lamp inside a card; thin formation must glow, fibre bundles and ink must hold light back.
  • Fade the toast band to zero beyond the edge. Toasting the fray turns pulled-out fibres brown-black against a dark wall.
  • Bleed ink with a halo below the ink threshold and let fibre and formation carry it over. A blurred halo alone is out-of-focus ink; smoothstep(0.62,0.85, halo + fibre*0.4 + (0.5-form)*0.5) wicks along strands. Guard the term with smoothstep(0.03,0.16, halo) or fibres far from any ink go black.
  • Round the bark flecks. Kibori's cell hash gives squares at macro; multiply by an ellipse smoothstep(0.5,0.12,length((fract(q*cell)-0.5)*vec2(1,1.9))).
  • Bake a window for macro. A base map at 7 px/mm turns to fog at 22 px/mm; a tiled 512 px paper tile shows its seam.
Show full SKILL.md (566 more words)Show less

Gotchas, symptom first

  • Fringe fibres vanish or a solid black fringe appears beyond the edge. alphaTest cuts anything under 0.5. Use alphaToCoverage: true with alphaTest 0 and antialias on; four MSAA samples dither the partial alpha. Give the shadow depth material its own alphaMap and alphaTest: 0.5.
  • A big black hairy shape beside the paper is not a bug. It is the sheet's shadow on the wall. Light the wall with a fill or a faint emissive so the shadow reads brown.
  • Relief looks stronger far away and vanishes in macro. three's perturbNormalArb normalises the surface derivatives, so slope depends on pixel size. Replace bumpmap_pars_fragment with the un-normalised Mikkelsen form and give the height in world units.
  • Edge-age or ink texture arrives premultiplied and dark. Never upload data through a canvas texture with alpha. Merge four canvases through getImageData into a DataTexture (rows reversed, flipY false).
  • A blurred edge band is missing on Safari. ctx.filter is unreliable; draw the shape offset by 20000 px with shadowOffsetX = -20000 so only its blur lands.
  • Half-float target resolves to blocky tiles. MSAA on it; use samples: 0.
  • The rolled corner shows nothing. Face-on, a 65 degree roll is foreshortened; sway the camera by 0.3 unit at distance 6 or rake the key to about 54 degrees.
  • Fibre swirls read as marbling at overview. The rotation field is too strong; 1.5 rad is the cap, 1.9 reads as floral.

Playback and lifecycle

The demo idles with a slow camera sway; prefers-reduced-motion renders one composed still and only re-renders on control input. It pauses on document.hidden and resets its time base on resume, clamps dt to 1/30 s, caps device pixel ratio at 2, sizes from a ResizeObserver, and eases back-light and macro with 1 - exp(-dt*k). Controls are real radios, checkboxes and ranges with focus rings and a live status line.

Cost (measured, 1440x900 headless Chrome on Metal, DPR 1)

Idle sway about 85 fps; 325k triangles in 7 draw calls (front plus three layers is 4x81k); stock switch rebuilds in about 320 ms (masks 4 canvases, bake, geometry); macro window in about 150 ms. GPU memory about 100 MB (base target 40, macro target 25, masks 33). What costs: the four mask canvases and the tens of thousands of fray strokes. What does not: the bake pass and the normal taps. The cheap lever: base density (PPU_B); 660 px/unit halves memory and keeps overview sharp.

Provenance

Extracted from the Kibori 木彫 launch page, where washi is the back-lit shoji panes, the torn footer sheet and the paper lantern; this build restages those generators on one sheet with a macro mode.

Self-score against the anchored rubric (0 = flat plane, 5 = tileable noise texture, 8 = directional fibre with real edge, 10 = passes a macro test against a photograph)

itemscorewhy
fibre structure8warped, rotating strands, two scales; no fibre cross-overs in depth
deckle edge8four independent tears, fray fibres, feather strip; fibres do not shadow
thickness6three stepped layers; steps show at extreme rake, no cross-section fibres
translucency8formation-driven, stems, amber sun patch; no scattering blur by thickness
curl and crease6roll is convincing, crease reads faint at overview
ink6fibre wicking narrow; no pooling at stroke ends
aged edges and shadow6toast and foxing good; shadow on the wall is a hard shape
texel density822.8 px/mm in macro, 7.3 px/mm overview

© MengTo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files in agent-skills/3d/3d-paper-material of MengTo/Skills.

  • SKILL.md
  • PROMPT.md
  • agents/openai.yaml
  • demo.html
  • preview.jpg

Open the folder on GitHubat commit 83a47fe

Compare with similar skills

3D Paper Material next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

3D Paper Material compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
3D Paper Material this skillMengTo/Skills6.7k—~2.4kAutomated safety check: PassMIT
Image to Three.js Modelimg2threejs/img2threejs18k1 repos~8.2kAutomated safety check: PassApache-2.0
Web CloneJane-xiaoer/claude-skill-web-clone1k1 repos~2.7kAutomated safety check: PassMIT
Threejs Game Directormajidmanzarpour/threejs-game-skills2.5k—~2.2kAutomated safety check: PassMIT
Threejs Gameplay Systemsvalkor-ai/loom1.2k1 repos~1.4kAutomated safety check: PassApache-2.0
Threejs World Generationcalesthio/OpenMontage66k—~2kAutomated safety check: PassAGPL-3.0

Similar skills

  • Image to Three.js Model

    img2threejs/img2threejs

    Rebuilds the object in a reference image as a procedural, animation-ready Three.js model written entirely in code, using staged sculpting with quality checks.

    18k GitHub starsUsed in 1 repo~8.2k tokens
    Game DevelopmentAuto-check passed
  • Web Clone

    Jane-xiaoer/claude-skill-web-clone

    网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…

    1k GitHub starsUsed in 1 repo~2.7k tokens
    Game DevelopmentAuto-check passed
  • Threejs Game Director

    majidmanzarpour/threejs-game-skills

    Entrypoint for building, upgrading, and finishing Three.js browser games.

    2.5k GitHub stars~2.2k tokensUpdated 11 days ago
    Game DevelopmentAuto-check passed
  • Build and iterate playable Three.js game systems: starter scaffold, architecture, design briefs, core loops, level and encounter design, entities, input, camera, collision and physics, scoring…

    1.2k GitHub starsUsed in 1 repo~1.4k tokens
    Game DevelopmentAuto-check passed
  • Threejs World Generation

    calesthio/OpenMontage

    Build deterministic, editable, free-viewpoint Three.js worlds from text or structured briefs.

    66k GitHub stars~2k tokensUpdated 6 days ago
    Game DevelopmentAuto-check passed
  • 3Dviz Pro Max Scene Builder

    viettranx/3dviz-pro-max

    Guides building an expressive 3D scene in Three.js or Blender by reasoning through intent, object construction and scientific grounding before using a catalog of recipes and kits.

    697 GitHub stars~2.8k tokensUpdated 28 days ago
    Game DevelopmentAuto-check passed

More from MengTo/Skills

All 39 skills in this repo
  • Draws hand-authored SVG spot illustrations in a bold pop-geometric style for design and coding scenes.

    6.7k GitHub stars~5.1k tokensUpdated 3 days ago
    Auto-check passed
  • Draws a slim, long-limbed character acting out one coding or design moment as an outline-free flat SVG card, in a fixed measured palette with confetti and no ground line.

    6.7k GitHub stars~4.9k tokensUpdated 3 days ago
    Auto-check passed
  • Draws flat vector spot illustrations of lanky people doing design and coding things, with solid black as a main fill, for empty states, onboarding and error pages.

    6.7k GitHub stars~5.2k tokensUpdated 3 days ago
    Auto-check passed
  • Draws cozy animal scenes as hand-authored 480x360 SVG cards in a grainy, risograph-like gouache style on hot pink, for empty states, headers and marketing cards.

    6.7k GitHub stars~5.2k tokensUpdated 3 days ago
    Auto-check passed
  • Draws hand-authored SVG spot illustrations in a halftone line style for design and coding scenes.

    6.7k GitHub stars~4.7k tokensUpdated 3 days ago
    Auto-check passed
  • Draws hand-inked cartoon critters and living objects as SVG cards (480x360), each acting out a coding or design idea.

    6.7k GitHub stars~4.6k tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about 3D Paper Material

What does 3D Paper Material do?

Build a paper sheet in Three.js that reads as paper up close — washi, cotton rag or kraft with baked fibre and tooth relief, laid and chain lines, a torn deckle edge with frayed fibres, four-layer…. 3D Paper Material is an agent skill from MengTo/Skills.js that reads as paper up close — washi, cotton rag or kraft with baked fibre and tooth relief, laid and chain lines, a torn deckle edge with frayed fibres, four-layer thickness, a rolled corner and crease, ink that wicks along the fibres, toasted aged edges, contact shadows and back-lit translucency.

When should I use 3D Paper Material?

3D Paper Material fits situations like: card that must survive a macro close-up; paper looks like a flat white plane; has ruler-straight edges; does not glow when lit from behind.

How do I install 3D Paper Material in Claude Code?

Run `npx skills add MengTo/Skills --skill 3d-paper-material -a claude-code`. Or copy the skill folder (agent-skills/3d/3d-paper-material in MengTo/Skills) into .claude/skills/3d-paper-material in your project. Claude Code loads it when a task matches its description.

How do I install 3D Paper Material in Codex?

Run `npx skills add MengTo/Skills --skill 3d-paper-material -a codex`. Or copy the skill folder (agent-skills/3d/3d-paper-material in MengTo/Skills) into .agents/skills/3d-paper-material in your project. Codex loads it when a task matches its description.

Can I use 3D Paper Material in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add MengTo/Skills --skill 3d-paper-material -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/3d-paper-material, .gemini/skills/3d-paper-material, .github/skills/3d-paper-material and .opencode/skills/3d-paper-material in your project.

What does 3D Paper Material need to run?

SKILL.md names no scripts, command-line tools or credentials: 3D Paper Material is instructions for the agent only.

Does 3D Paper Material access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is 3D Paper Material safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does 3D Paper Material use?

3D Paper Material is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does 3D Paper Material use?

About 2.4k tokens (SKILL.md is roughly 9.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to 3D Paper Material?

Skills that share tags, products or a category with 3D Paper Material: Image to Three.js Model (img2threejs/img2threejs, 18k stars), Web Clone (Jane-xiaoer/claude-skill-web-clone, 1k stars), Threejs Game Director (majidmanzarpour/threejs-game-skills, 2.5k stars) and Threejs Gameplay Systems (valkor-ai/loom, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains 3D Paper Material?

MengTo (a GitHub user) maintains it in MengTo/Skills, which has 6,675 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on October 6, 2026.

Source: MengTo/Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.