lilToon Documentation
repository·master·Indexed 23 days ago
https://github.com/lilxyzw/liltoonA feature-rich, high-performance toon shader for Unity, specifically designed for VRChat avatars and 3D models. It provides advanced capabilities including rim lighting, matcaps, outlines, and URP Light Layer support. The package includes tools for batch editing via the Multi-Editor, automated material setup from FBX, and various optimization features for event submissions and real-time rendering.
What's inside lilToon
- lilToon is a high-performance toon shader for Unity, specifically designed for VRChat avatars and other 3D models. It provides a wide range of visual effects including rim lighting, matcaps, outlines, and advanced lighting models while maintaining high efficiency for real-time rendering.
Use Light Layers in URP
masterAs of version 1.2.4, lilToon supports Light Layers when using the Universal Render Pipeline (URP).Configure Rim Light parallax for VR
masterIn version 1.2.7, a feature was added to the Rim Light settings that allows you to adjust the strength of the parallax effect specifically for VR environments.Optimize shaders for event submissions
masterTo prepare shaders for event submissions (e.g., for VRChat worlds), you can use theイベント入稿用に最適化(Optimize for Event Submission) button. Additionally, the shader settings will automatically optimize during build time if the VRCSDK for worlds is detected (available since version 1.2.8).Customize VRChat safety fallback shaders
masterIn version 1.2.6, you can now customize the fallback shader used when VRChat's Safety settings are activated, allowing for more controlled visual degradation.Usage rights for the lilToon logo image
masterThe lilToon logo image can be used in the following ways:
- Thumbnails and Product Pages: You may use the logo in thumbnails on sales websites (such as BOOTH), within your works, or bundled with your products.
- No Attribution Required: You are not required to describe the license on your product page when using the logo.
- Customization: You are permitted to change the color and resolution of the image to better match your specific work.
Important Note: The copyright of the logo has not been abandoned; ownership remains with the original creator.
Automate material creation with Setup from FBX
masterThe
Setup from FBXtool automates the material workflow for FBX files. It performs the following tasks:- Automatically generates materials from the FBX.
- Applies presets to the generated materials.
- Applies outline masks.
- Applies shadow masks.
Install lilToon in Unity
masterYou can install lilToon using one of the following two methods:
- Unity Package Manager (UPM): Add the package via its Git URL.
- UnityPackage: Download the
.unitypackagefile and drag and drop it directly into your Unity project window.
UPM Git URL:
https://github.com/lilxyzw/lilToon.git?path=Assets/lilToon#masterhttps://github.com/lilxyzw/lilToon.git?path=Assets/lilToon#masterOptimize materials with Remove unused properties
masterUse theRemove unused propertiesfeature to optimize materials. This removes properties that are enabled in the shader settings but do not visually affect the material, helping to keep the material data clean and efficient.Batch configure lighting for meshes and materials
masterVersion 1.1.2 introduced a feature to batch-configure lighting settings for multiple meshes and materials at once, rather than editing them individually.Use the lilToon Multi-Editor for batch editing
masterFor editing multiple shader variations simultaneously, use the beta multi-editor window located atWindow/_lil/[Beta] lilToon Multi-Editor(available since version 1.2.10).Optimize shader settings with Auto shader setting
masterUse theAuto shader settingfeature to scan all materials and animations within your project and automatically optimize their shader settings. This is useful for ensuring consistent and efficient performance across your assets.