Repository navigation
Releases
MToon Multishader v1.3.0
Version 1.3.0 Unity Package Release
-
Improved readability in editor. Compressed each texture slot and it's settings into dropdowns. Also combined Shade Texture settings with Color Texture settings since both sets are tied together in programming anyways
-
Added an Amount Behavior mode that changes the behavior of the amount slider for each texture. Binary will cause the slider to return 1 if it's above 0. This is useful for 2d lip syncing. By putting a texture atlas into multiple texture slots, then setting the mouth shape with Start/Selected Frame index and setting Amount Behavior to Binary, you can control which texture is active with the regular amount slider. This was necessary to prevent textures fading in/out when lip syncing for vtuber models that used the amount slider, and the Start/Selected Frame index for flipbook control was affected by mouth tracking returning floats, meaning the texture atlas would "travel" into position and cause rapid mouth texture switching. I might update this in the future so a custom threshold for returning 1 can be set
-
Added UV Set selection for each texture slot. Though under-utilized, models can be made with multiple uv sets with different layouts, meaning something like detail and emission maps, can be hyper optimized and increase quality as compared to the more common method of using the albedo uv map for everything, which may not make the best use of space. Defaulted to UV1 (it's actually uv0, this is just for readability) which is the standard uv map location. If a mesh doesn't have multiple uv sets, this setting will not change anything as non-existant uv sets are just duplicates of the first uv set
MToon Multishader v1.1.3
Version 1.1.3 Release (Converted to Unity Package)
- Converted to Unity Package file for compatibility reasons
- Discovered that while this shader is compatible with unity 2020.3.48 and UniVRM 0.104.0, one of those two requires a stricter folder layout than the setup I'm using in unity 2019.4.35f1, requiring that the shader files actually share the folders of the original MToon shader. This package should allow easier install.
MToon Multishader v1.1.2
Version 1.1.2 Release (bug fix and feature)
-
Bug Fix
- Completely corrected the UV mapping issue. Prior release forced uv maps to clamp to 0,1. This was a hack fix that I later noticed caused errors when a models uv's were outside of that 0,1 range.
-
Feature
- New Texture Wrap Mode drop down added. Defaults to Repeat. On the actual texture file, leave wrap mode set to repeat and instead control it through the shader with this setting. Repeat allows the texture to repeat across the mesh. Clamp prevents tiling by clamping the uv to 0,1. This is necessary for using the Scale and Offset settings of the material without the texture tiling automatically
-
Known Issues
- When in Transparent and Cutout render types, objects surface follows the first color channels texture sans flipbook settings. This can cause issues with post processing effects. Will tinker with this, but not sure how to correct it.
MToon Multishader v1.1.1
Version 1.1.1 release (bug fix)
- Bug Fix
- Properly fixed Stencil ID not defaulting to 1
- Corrected a UV error on decal textures due to using the mainuv instead of modified flipbook uv
- End Frame float added. If End Frame float is greater than 0, animation will loop from there. This is necessary for animation sheets that do not have an equal number of images per row/column and was missed in the initial release of this update
- Added flipbook to first texture channel of Main Tex/Shade Tex, Decal Tex, and Emission Tex
- Added a slider to the first Emission Tex channel so it can be animated the same as other texture channels
MToon Multishader v1.1.0
Version 1.1.0 release
New Features
- Each Texture slot can now take a Flipbook Texture Sheet
- Flipbook can be animated via speed or manually selected with the "Start/Selected Frame" float value
MToon Multishader v1.0.1
Version 1.0.1 release
Bug Fix
- Corrected an issue with how Decal Textures worked. Before they were simply added together, causing an issue where the alpha channel of a texture would interfere with the color channel of subsequent textures. Replaced additive method with lerp method.
- Texture color channels will override the color channel of prior textures.
New Features
- Implemented Stencil Buffer to shader. Defaults to 0, but if shader causes mesh to disappear, set this to 1 or greater.
MToon Multishader v1.0.0
Version 1.0.0 release
Adds support for:
-
10 Main texture channels with Alpha and Color
- Main texture channels are default white
- Color channels are multiplied by the Main texture channel
- Texture 1 is always on. Each subsequent channel overwrites the channel prior
-
10 Shade textures with Alpha
- Shade texture channels are default white
- Shade color channels are multiplied by Shade texture channel
- Shade channels are tied to the same sliders as the Main textures, pairing the Shade tex with Main tex
-
10 Decal textures with Alpha
- Shares UV map with Main textures
- Color is provided by the texture itself
- Decals are fully blended together, with the higher level decals taking depth priority in case of overlapping pixels
- Not affected by shading
-
10 Emission textures with color
- Emission texture channels are default white
- Color channels are multiplied by the Emission texture channel
- Emission 1 is always on. Each subsequent channel overwrites the channel prior
- All color channels are HDR enabled