LeoYeAI/agent-master-skills / skills/animation-shader
animation-shader
VerifiedREAD this skill when implementing or configuring animation-style shaders (Toon/Cel Shaders) — including outlines, rim lighting, toon shading, MatCap, emission, dissolve, hatching, or any stylized rendering effect. Contains preset styles and feature-to-reference mappings for lilToon, Poiyomi, UTS2, RToon, SToon, and ToonShadingCollection. Works as a domain knowledge plugin alongside workflow skills (OpenSpec, SpecKit) or plan mode of an agent.
references/PoiyomiShaders/Details/05_Outline.md
View on GitHub# Outline
Poiyomi uses an Inverted Hull method for outlines, implemented in a separate shader pass or variant (`Poiyomi Outline.shader`).
## 1. Vertex Displacement
Vertices are extruded along their normals to create the outline shell.
### Call Site
`Assets/_PoiyomiShaders/Shaders/8.1/Toon/Poiyomi Outline.shader` (approx line 9300 in `vert`).
### Properties
* **Width**:
* **`_LineWidth`**: Base width of the outline.
* **`_OutlineFixedSize`**: Toggle for screen-space constant size.
* **`_OutlineFixWidth`**: Factor for fixed size scaling.
* **Masking**:
* **`_OutlineMask`**: Texture mask.
* **`_OutlineVertexColorMask`**: Channel of vertex color to use as mask.
* **Color**:
* **`_OutlineColor`**: Base color.
* **`_OutlineLit`**: Toggle to enable lighting on outlines.
### Logic (Pseudo-code)
```hlsl
// 1. Calculate Mask
float mask = SampleTexture(_OutlineMask);
if (_OutlineVertexColorMask > 0) {
// 1=R, 2=G, 3=B, 4=A
mask *= v.color[_OutlineVertexColorMask - 1];
}
// 2. Select Normal
// Can use mesh normals or custom normals baked into vertex colors
float3 normal = _OutlineSpace ? worldNormal : objectNormal;
if (_OutlineUseVertexColorNormals) {
// Decode custom normal from vertex color (0..1 -> -1..1)
float3 customNormal = v.color.rgb * 2.0 - 1.0;
normal = TransformToWorld(customNormal);
}
// 3. Distance Scaling (Fixed Size)
// Keeps outlines visible even at a distance
float dist = distance(CameraPos, WorldPos);
float sizeFactor = 1.0;
if (_OutlineFixedSize) {
sizeFactor = lerp(1.0, clamp(dist, 0, _OutlinesMaxDistance), _OutlineFixWidth);
}
// 4. AudioLink Modulation
float width = _LineWidth;
if (_AudioLinkAnimToggle) {
// Modulate width by audio band volume
width += lerp(_AudioLinkOutlineSize.x, _AudioLinkOutlineSize.y, AudioLinkData(Band));
}
// 5. Extrude
// Base extrusion formula
float3 offset = normal * (width / 100.0) * mask * sizeFactor;
v.vertex.xyz += offset;
```
## 2. Rendering Features
* **Lighting**: Outlines can be Lit (affected by shadows) or Unlit.
* If `_OutlineLit` is enabled, the fragment shader calculates standard lighting.
* **Coloring**: Texture mode, Color tint, or Screen-space texture.
* **Culling**: Front-face culling is used to render the backfaces of the extruded shell.
* **Z-Bias**: Offsets depth to prevent Z-fighting or to make lines appear "on top".
## 3. AudioLink
Outlines can react to music:
* **Width**: Pulse thickness to the beat (logic in Vertex Shader).
* **Color**: Shift hue or emission brightness based on audio bands (logic in Fragment Shader).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |