๐Ÿ“ฆ anatawa12 / lilToonVAT

lilToonVAT: lilToon custom shader that ports and extends the nekoVAT system by nekoya

โ˜… 6 stars โ‘‚ 0 forks ๐Ÿ‘ 6 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/anatawa12/lilToonVAT.git
HTTPS git clone https://github.com/anatawa12/lilToonVAT.git
SSH git clone git@github.com:anatawa12/lilToonVAT.git
CLI gh repo clone anatawa12/lilToonVAT
anatawa12 anatawa12 Update README.md 7afc0ba 4 months ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .blender
๐Ÿ“ .github
๐Ÿ“ Editor
๐Ÿ“ Shaders
๐Ÿ“„ Editor.meta
๐Ÿ“„ LICENSE
๐Ÿ“„ LICENSE.meta
๐Ÿ“„ package.json
๐Ÿ“„ package.json.meta
๐Ÿ“„ README.md
๐Ÿ“„ README.md.meta
๐Ÿ“„ Shaders.meta
๐Ÿ“„ README.md

lilToonVAT Shader

This shader is a VAT (Vertex Animation Texture) system for the lilToon.

This is a custom shader of lilToon that ports the nekoVAT system by nekoya to lilToon.

You can use original nekoVAT system by nekoya for creating VAT textures in blender, or you can use our customized texture generator in .blender directory.

nekoVAT system by nekoya: https://booth.pm/ja/items/5943052

Usage

  • Create a VAT animation in Blender
  • Create VAT Texture (and optionally mock object) with blender plugin
  • Export & Import VAT Texture and object to Unity
When exporting from blender, make sure:
  • The VAT Texture is exported as a non-color RGBA exr texture
  • The object should be exported with
Scale = FBX All, Froward = -Z Forward, Up = Y Up, and Apply Transform enabled

When importing in unity, make sure:

  • The VAT Texture is imported as Float RGBA texture
  • The object is imported with vertex order optimization disabled if mock object is used
  • Create a material with lilToon VAT shader
  • Assign the VAT Texture to the material, and enable mock if you use mock object

Notes

  • Because of liltoon's problem, normals transformed by VAT may not be applied for outline rendering so
you might see weird outline artifacts, especially when using mock object mode. https://github.com/lilxyzw/lilToon/pull/296 This bug is fixed in lilToon 2.0.0