blender-material
Skill1 starsChanged 13 days agoMITView on GitHub
Use when creating, baking, or fixing materials, declarative shader/geometry/compositor node graphs, zero-bleed per-facet palette atlases, animated gleam sweeps, emissive glow, transparency modes, and PBR texture slots.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- blender-animateSkill
- blender-cameraSkill
- blender-diagnoseSkill
- blender-exportSkill
- blender-handsSkill
- blender-modelSkill
- blender-qaSkill
- blender-refSkill
- blender-retopoSkill
- blender-rigSkill
- blender-setupSkill
- blenderSkill
- blender-topology-fixSkill
- blender-topologySkill
- blender-uv-bakeSkill
- blender-vfx-flipbookSkill
- blender-vfx-meshSkill
- blender-vfx-simSkill
- blender-vfxSkill
- blender-vfx-textureSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
If requested, call surface_add_gleam_effect (kit_add_gleam_effect in docs/blender/scripts/blender_kit_ops.py) with mode="shader_sweep" or …
- Very specific: line 35
Every material is valid for target_mode.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Material (declarative node graphs, exportable PBR, zero-bleed facet atlas & gleam)
Requires
UVs done (blender-uv-bake) or standalone Phase 1 swarm material lease (MAT_<Asset>_*). docs/blender/engine.md Materials rows (workflow, channel packing, normal map convention, color spaces, transparency).
Inputs
target_mode (game_realtime | film_cinematic | dual_cage) | Style (palette, procedural node graph, or PBR) | list of materials from ref-analysis.md section 6 | gleam/glow/transparency needs.
Steps
- DECISION CHECK: if
state.mdhas not locked surface choices (Q1: Surface workflow — Declarative Node Graph (node_graph_build) vs Zero-Bleed Per-Facet Palette Atlas vs Baked PBR Maps,Q2: Add animated gleam/shimmer sweep or compositor glare?), askQ1..Q2with(Recommended)first. - LIST materials: one per surface type (
MAT_<Asset>_<Part>); merge identical ones to minimize draw calls. In Swarm Phase 1, author standaloneMAT_<Asset>_*datablocks (obj_name=None, material_name="MAT_...") before binding at the Phase 2 Assembly Barrier. - BUILD MATERIALS NATIVELY (
blender-kit-mcp/docs/blender/scripts/blender_kit_ops.py):- Preset PBR (
material_apply_preset/kit_material_preset): buildmetal_steel,gold_trim,wood_warm,stone_slate,crystal_glow,foliage_leaf, orstylized_pbrusing version-safe Principled BSDF sockets. - Declarative Shader, Geometry Nodes & Compositor DAGs (
node_graph_build/kit_node_graph_build): construct multi-node graphs using semantic socket aliases (base_color,roughness,metallic,specular,emission,transmission,coat,normal) or built-in macros ("triplanar_pbr","edge_cavity_wear","subd_micro_displacement","gn_surface_scatter","gn_curve_profile_sweep","comp_cinematic_glare_grade"). - Zero-Bleed Facet Atlas (for low-poly / repaired AI meshes): pack each triangle into its own padded cell (
2048x2048with>= 6pxinner padding) using the palette fromref-analysis.mdsobleed_faces == 0.
- Preset PBR (
- GLEAM & EMISSIVE:
- If requested, call
surface_add_gleam_effect(kit_add_gleam_effectindocs/blender/scripts/blender_kit_ops.py) withmode="shader_sweep"ormode="starburst_mesh".
- If requested, call
- TRANSPARENCY & NAMES: pick the mode
engine.mdlists (opaque/cutout/blend, defaultopaque). Name materialsMAT_<Asset>_<Part>and texturesT_<Asset>_<Slot>. Pack modified images (img.pack()). - VISUAL & BLEED AUDIT: run
docs/blender/scripts/audit_naming.pyandaudit_run_isolated(audit_type="visual_match")(docs/blender/scripts/audit_visual_match.py); capturelook(mode="angles", shading="material")(andshading="rendered"forfilm_cinematic).
Hard rules
| Rule | Detail |
| Zero UV bleed | audit_visual_match.py must report bleed_ratio <= 0.05 (0 intra-triangle bleed for facet atlases) |
| Target-aware export | game_realtime exports Principled BSDF + baked image nodes (references/pbr-minimum.md); film_cinematic supports live procedural node_graph_build trees |
| Version-safe sockets | Always resolve sockets via node_graph_build aliases or [i.name for i in bsdf.inputs]; never hardcode Blender 3.x socket names |
| Color spaces | base color sRGB; all data maps Non-Color |
| No noisy normal maps on flat low-poly | disconnect corrupt normal/metallic maps on flat-shaded low-poly meshes |
Done when
Every material is valid for target_mode; audit_visual_match.py passes with zero missing-texture blotches; names pass audit_naming.py; look multi-angle screenshots saved.
On fail
| Failure | Action |
Unknown socket error from node_graph_build | read the returned Valid inputs/outputs list and re-call node_graph_build |
| Intra-triangle color bleed or white occlusion patches | repack into per-facet padded UV cells and fill from ref-analysis.md palette |
| Dark/inverted facet shading | clear custom_normal attribute, set use_smooth = False (low-poly) or True (SubD), disconnect corrupt normal map |
| Missing textures after export | run img.pack() and save images to <session_dir>/assets/<asset>/textures/ |
Next
blender-rig (deforming) or blender-qa.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

