Skip to content

LeoYeAI/agent-master-skills / skills/animation-shader

animation-shader

Verified

READ 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.

FileKindSize
SKILL.mdskill md17.0 KB
_meta.jsonconfig285 B
references/PoiyomiShaders/Details/01_Base_Main.mdmarkdown4.8 KB
references/PoiyomiShaders/Details/02_Lighting_Shadows.mdmarkdown4.9 KB
references/PoiyomiShaders/Details/03_Surface_Reflections.mdmarkdown3.9 KB
references/PoiyomiShaders/Details/04_Special_Effects.mdmarkdown3.4 KB
references/PoiyomiShaders/Details/05_Outline.mdmarkdown2.6 KB
references/PoiyomiShaders/Features.mdmarkdown2.1 KB
references/RToon/Details/01_Core_Shading.mdmarkdown5.3 KB
references/RToon/Details/02_ShadowT.mdmarkdown3.1 KB
references/RToon/Details/03_Outline.mdmarkdown4.6 KB
references/RToon/Details/04_MatCap_Reflection.mdmarkdown3.6 KB
references/RToon/Details/05_Gloss_Rim.mdmarkdown3.2 KB
references/RToon/Details/06_Advanced_Features.mdmarkdown3.3 KB
references/RToon/Features.mdmarkdown4.2 KB
references/SToon/Details/01_Core_Shading.mdmarkdown3.4 KB
references/SToon/Details/02_Outline.mdmarkdown2.9 KB
references/SToon/Details/03_Overlays.mdmarkdown3.1 KB
references/SToon/Details/04_Specular_Rim.mdmarkdown2.7 KB
references/SToon/Details/05_Artistic_Controls.mdmarkdown3.2 KB
references/SToon/Features.mdmarkdown2.6 KB
references/ToonShadingCollection/Details/01_ArtStyles.mdmarkdown2.5 KB
references/ToonShadingCollection/Details/02_Outline.mdmarkdown4.4 KB
references/ToonShadingCollection/Details/03_Diffuse.mdmarkdown4.5 KB
references/ToonShadingCollection/Details/04_Specular.mdmarkdown3.2 KB
references/ToonShadingCollection/Details/05_Environment.mdmarkdown3.1 KB
references/ToonShadingCollection/Details/06_PBR_Stylization.mdmarkdown4.6 KB
references/ToonShadingCollection/Details/07_Stylized_Features.mdmarkdown4.0 KB
references/ToonShadingCollection/Details/08_PostProcessing.mdmarkdown3.5 KB
references/ToonShadingCollection/Details/09_Lighting_Shadows.mdmarkdown3.1 KB
references/ToonShadingCollection/Details/10_Animation_VFX.mdmarkdown3.7 KB
references/ToonShadingCollection/Details/11_Modeling_Pipeline.mdmarkdown2.9 KB
references/ToonShadingCollection/Features.mdmarkdown2.1 KB
references/UnityChanToonShaderVer2/Details/01_DoubleShade.mdmarkdown3.6 KB
references/UnityChanToonShaderVer2/Details/02_ShadingGradeMap.mdmarkdown3.1 KB
references/UnityChanToonShaderVer2/Details/03_Outline.mdmarkdown2.7 KB
references/UnityChanToonShaderVer2/Details/04_SpecialFeatures.mdmarkdown3.6 KB
references/UnityChanToonShaderVer2/Features.mdmarkdown5.6 KB
references/lilToon/Details/01_Base_Main.mdmarkdown4.8 KB
references/lilToon/Details/02_Lighting_Shadows.mdmarkdown3.9 KB
references/lilToon/Details/03_Surface_Reflections.mdmarkdown4.2 KB
references/lilToon/Details/04_Special_Effects.mdmarkdown4.7 KB
references/lilToon/Details/05_Advanced.mdmarkdown3.9 KB
references/lilToon/Details/06_Variants.mdmarkdown3.4 KB
references/lilToon/Details/07_Variant_Features.mdmarkdown4.8 KB
references/lilToon/Details/08_Outline.mdmarkdown3.3 KB
references/lilToon/Features.mdmarkdown3.3 KB
workflow-standalone.mdmarkdown6.4 KB

references/UnityChanToonShaderVer2/Features.md

View on GitHub
# UnityChan Toon Shader Ver 2 (UTS2) - Universal Render Pipeline

**UnityChan Toon Shader Ver 2 (UTS2)** is a highly versatile uber shader designed for anime-style characters in the Universal Render Pipeline (URP). It excels in creating controllable, high-quality cel-shaded looks with support for standard URP lighting features while allowing for non-photorealistic artistic control.

## Core Architecture
*   **Uber Shader**: All features are integrated into a single shader (`Universal Render Pipeline/Toon`). You switch between workflows and enable features via the Inspector, rather than swapping shader files.
*   **Legacy Compatibility**: Material property names match the legacy pipeline version, allowing for easy migration of values.
*   **Real-time Adjustment**: Almost all features, including shadow thresholds and feathering, can be tweaked in real-time.

## 1. Shading Workflows
UTS2 offers two primary workflows for calculating shadows.

### A. Double Shade with Feather
The standard mode simulating anime production steps: **Base Color** -> **1st Shade** -> **2nd Shade**.
*   **Position Maps**: Two separate textures (`_Set_1st_ShadePosition`, `_Set_2nd_ShadePosition`) allow you to "fix" shadows to specific parts of the mesh (e.g., under the nose or chin) regardless of lighting.
*   **Feathering**: Adjustable softness (`_BaseShade_Feather`, `_1st2nd_Shades_Feather`) allows transition from hard cel-edges to soft gradient shading.

### B. Shading Grade Map
An advanced mode for more organic control.
*   **Concept**: Uses a single grayscale map (`_ShadingGradeMap`) to define the "shading threshold" per pixel.
    *   **Black (0.0)**: Shadows form easily (creases, deep areas).
    *   **White (1.0)**: Shadows form with difficulty (highlights, tips).
*   **Result**: Shadows flow continuously based on the map's gradient, allowing for complex shapes that still react to light direction.

## 2. Basic Color & Texture Setup
*   **Three Step Color**: Defines `BaseMap`, `1st_ShadeMap`, and `2nd_ShadeMap`. Textures can be shared (e.g., BaseMap used for 1st Shade) to simplify setup.
*   **Normal Map**:
    *   Used for **shading gradation**, not just surface bumps.
    *   Can be selectively applied to HighColor, RimLight, or the Base colors (`_Is_NormalMapToBase`).

## 3. Advanced Feature Modules

### Outline (Inverted Hull)
*   **Method**: Renders the mesh inside-out, slightly larger.
*   **Distance Scaling**: `_Farthest_Distance` / `_Nearest_Distance` scaling prevents clutter at a distance.
*   **Baked Normal Support**: `_BakedNormal` allows hard-edged meshes (split vertices) to have smooth, continuous outlines by reading a smooth normal map.
*   **Blending**: `_Is_BlendBaseColor` blends the outline color with the texture color for softer looks.
*   **Z-Offset**: `_Offset_Z` pushes the outline back to prevent Z-fighting.

### HighColor (Specular)
*   **Customization**: Supports textures for complex highlights.
*   **Specular Mode**: Can render as realistic gloss (`_Is_SpecularToHighColor`) or stylized vector circles.
*   **Masking**: `_Set_HighColorMask` allows masking highlights on specific areas (like skin).

### RimLight
*   **Directional**: Standard rim lighting based on view angle.
*   **Antipodean (Ap) RimLight**: Adds rim lighting to the **shadowed side** (opposite to light source), useful for backlighting effects.
*   **LightDirection Mask**: Can restrict rim lights to only appear in the direction of the main light.

### MatCap (Material Capture)
*   **Camera Rolling Stabilizer**: A unique feature (`_CameraRolling_Stabilizer`) that counter-rotates the MatCap UVs when the camera tilts, keeping reflections upright (horizon-stable).
*   **Normal Map**: Dedicated `_NormalMapForMatCap` allows adding surface detail (like brushed metal) specifically to the reflection without affecting the base shading.
*   **Masking**: `_Set_MatcapMask` controls where the MatCap is applied.

### Angel Ring
*   **Purpose**: Fixed "halo" highlights on hair that slide horizontally but stay vertically fixed relative to the camera.
*   **Requirement**: Uses **UV2** coordinates (projected orthographically from the front) to map the highlight texture.

### Emissive (Self-Illumination)
*   **Animation**: Supports `Scroll`, `Rotate`, and `PingPong` (blinking) animations.
*   **Color Shift**: Can shift colors over time or based on **View Angle** (iridescence).
*   **Masking**: Alpha channel of the Emissive texture acts as a mask.

## 4. System Integration & Lighting

### Environmental Lighting
*   **GI Intensity**: Controls how much Light Probe/Ambient data affects the material (`_GI_Intensity`).
*   **Unlit Intensity**: Boosts ambient blending when no directional light is present (`_Unlit_Intensity`).
*   **SceneLights Hi-Cut Filter**: Intelligent filter to prevent overexposure when multiple bright lights or intense Bloom are present (`_Is_Filter_LightColor`).

### Light Color Contribution
*   **Fine Control**: Individual toggles (`_Is_LightColor_Base`, `_Is_LightColor_1st_Shade`, etc.) to determine if specific layers react to the *color* of real-time lights or strictly use their set colors.

### System Shadows
*   **Receive Shadows**: Full support for receiving shadows from other objects (`_Set_SystemShadowsToBase`).
*   **Raytraced Hard Shadows**: Support for RTHS if the environment supports DXR.

## 5. Utility Features
*   **Clipping / Stencil**:
    *   **Clipping**: Alpha cutout support (`_ClippingMask`), including "TransClipping" (alpha-weighted clipping).
    *   **Stencil**: Standard Stencil Buffer support (`StencilMask` / `StencilOut`) for effects like "eyebrows visible through hair".
*   **Culling Options**: Configurable `Culling Mode` (Off, Front, Back).
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall