scenario-unreal-materials
Use when a UE5 task involves materials or textures: a master material and instances for a kit, Substrate or legacy, Blendable vs Adaptive GBuffer, glass…
от scenario-labs★ 4 422 звезды на GitHub
Установить scenario-unreal-materials в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Unreal materials (master materials, Substrate, textures, shader cost)
Expert level means a few master materials whose instances cover the kit, a known and budgeted
permutation count, cost proven in milliseconds on a fixed camera, and physically plausible values
before any artistic push. The graph is authored once (scripted build or template); everything else
is instances, Custom Primitive Data and textures that follow a role policy. Never trust the
instruction count or a pretty preview. If a sibling skill named here is missing from your available
skills, load it with skill_get (Scenario MCP) or ask the user to install it
(https://github.com/scenario-labs/skills#install); unattended, proceed from tool schemas and flag
the gap.
REQUIRED BACKGROUND: scenario-unreal-expert (channels, review loop, 5.8 traps).
Status (2026-09-24): Unreal is not installed; offline tests pass
(tests/code/unreal-materials/run_all.sh, editor layer on a fake unreal). Every snippet is not
yet run in Unreal: run P0 first.
Stance (the expert delta)
- Permutations = usage flags x unique static parameter sets across instances (x quality levels
with a Quality Switch), never a node count. A parent flag adds a shader row to every unique
child (Lauf and Nadro, Fortnite [wobQ8ZKQpbc 00:24:25, 00:05:32]); parents carry the fewest flags,
instances opt in (5.8 Usage Flag Overrides [verify]). Before adding a switch, count the instances
that would set it (
switch_ranking; Fortnite kept its top 10 [00:29:31]). - A static switch must gate texture samples, or heavy math most instances skip. Anything else is an If (parameter into A, 0.5 into B, A > B pin, never A == B), an Enum-bound scalar or a Channel Mask Parameter; the Static Component Mask Parameter is obsolete (Lauf [00:40:24, 00:40:56, 00:42:35]). An editable switch at default still sets the HSPR tag (5.7).
- The instruction count is not cost. Sine plus cosine read +2 but cost about 40 GCN cycles; a
fetch waits about 200 (Swierad [y0QASid1v8w 00:20:57, 00:35:57]). Math independent of the fetch
hides inside that wait (a screen's scanlines are nearly free); math on the sampled value is paid
in full [00:39:34, 00:46:03]. Budget samples and transcendentals (
cost_census), open every material function ("cheap" in a name is not a measurement [00:22:31]), decide on ms at a fixed camera. - Substrate starts from one slab (Morgan, Epic [SqPaL8HS_Lw 00:25:45]): a Slab or the Metalness helper, never a hand-added Substrate Shading Model node (the conversion target, Substrate overview). Blendable is a ceiling for every platform, SM6 included (5.7 article); Adaptive falls back per platform by itself and costs 20 to 80 B/px (663 MB at 4K), about +15% cook and forced DBuffer decals (Ben Cloward [P5I38f2O6W8 00:05:46, 00:06:54]). Converting a material is one-way.
- Metal next to paint is two slabs, not gray metallic (gray reads as plaster, Ben [VrY_SSvWdQ4 00:05:39]). With Use Parameter Blending a Horizontal Blend is near-lossless and one slab everywhere (Morgan [00:37:35]): mask sharpness is then artistic, not cost. "Mix exactly 0 or 1 evaluates one slab" holds only without parameter blending, on Adaptive [00:29:38]. Parameter blending on a Vertical Coat is lossy and propagates beneath: plan it early [00:38:08, 00:38:43].
- Detail comes from packing and tiling, not resolution. Two samples per terrain layer (CR +
NOH), a 2K game ceiling, compression by role, sRGB only on color, packed normals never as
Normalmap, BC7 for unrelated channels (Ben [-UZlUUQSGgQ 00:12:36], [gjOO5g4cgng 00:11:02]; Sumo
[SAr7oPKsgLE 00:29:20]; textures doc). Memory truth is the Platforms panel and
listtexturesin a cooked build; RDO shrinks disk, not memory. - Glass is matter, not opacity: Colored Transmittance only when tinted (Gray is cheaper), Surface Translucency Volume, Pixel Normal Offset for flat panes, slab Simple Volume with Transmittance-To-MFP (Ben [sf-K257zWh8 00:01:39, 00:09:17]).
- An RVT is a cache captured orthographically at time 0: no Time, Panner, camera distance, parallax or MPC in the write pass; a page change redraws all its writers; each distinct RVT sampled has a large fixed cost (PrismaticaDev [RLEPA16QDRw 00:20:14, 00:11:59, 01:04:29]).
Establish first
| Input | What it changes | Default when silent |
|---|---|---|
| Platforms and frame rate | GBuffer format (Blendable caps all), closures, samplers (16 on ES3.1), Adaptive-only features | console 60 Hz and PC: Blendable, 1 closure |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/critique.md
- references/expert-notes.md
- references/gui-paths.md
- references/procedures.md
- references/sources.md
- scripts/ue_materials.py
FAQ
Что делает скилл scenario-unreal-materials?
Use when a UE5 task involves materials or textures: a master material and instances for a kit, Substrate or legacy, Blendable vs Adaptive GBuffer, glass, emissive screens, decals, edge wear and dirt, landscape layers and RVT, toon or cel shading, "too many shaders" or shader permutations, static switches, usage flags, texture compression (BC7, normal maps, ORM packing, sRGB), texture memory, or "is this material expensive".
Как установить скилл scenario-unreal-materials?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scenario-unreal-materials запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
slack-gif-creator
AnthropicKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
automate-this
GitHubAnalyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
from-the-other-side-vega
GitHubPatterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
plantuml-ascii
GitHubGenerate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…