-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shader Toggle Malfunction: Loss of Animation in Combined Skinned Meshes Utilizing Liltoon Fur Shader #66
Comments
hmm I remember adding a check specifically because of liltoon fur that checks if the shader name contains lilToon to make sure the optimizer doesn't try anything funny on it. |
It is correctly listed in unparsable materials. |
one last question. do the material property animations rely on write defaults? |
I have checked with a blank avatar with only one toggle: Monochrome. In this example, all the poiyomi shader meshes are combined as "Body", while all the liltoon fur shader meshes are combined as "Pajamas$String". I have located the only animation and notice that although liltoon fur shader is left untouched, material properties of liltoon fur shader is renamed to shader toggles. As for write defaults, I always unify it to WD ON. But I am not sure what do you mean by "rely on". Basically all the materials behave the same with regard to "Monochrome". The default state is something like "Monochromatic lighting=0" while the toggled state being "Monochromatic=0.5". Every material has exactly the same settings, so "the first material of a mesh renderer "does not matter in my case. |
With that I meant if you have animations for both states or just 1 animation state. WD ON can still do 2 animations like WD OFF and then it wouldn't matter if the states have WD ON or OFF actually set. But as you described this shouldn't matter in your case. Thanks to your detailed info I now know what causes the issue, thanks a bunch! |
Description:
I've discovered a compatibility issue involving the d4rkAvatarOptimizer plugin in Unity 2019, particularly when used alongside VRChat SDK 3.4.1, that affects the Liltoon Fur Shader. The expectation is for the shader's material properties to be animated correctly after the optimization process.
Issue Details:
Affected Shader: Liltoon Fur Shader
Settings: "Use shader toggles" is on.
Expected Behavior: Post-optimization, the material properties of the shader are anticipated to animate correctly, maintaining their intended functionality and appearance.
Observed Behavior: After optimization, there is a notable issue with the animation of material properties for combined skinned meshes using the Liltoon Fur Shader. Specifically, these material properties fail to animate as expected.
Steps to Reproduce:
Pre-Optimization Setup:
Enable the "Monochrome" toggle from expression menu. This changes the "Monochrome Lighting" material property from 0 to 0.5, as shown in the Screenshot1.
Note: This setup works correctly if "Use Shader Toggles" is unchecked, with other settings remaining the same, as shown in the Screenshot1
Post-Optimization Issues:
With "Use Shader Toggles" enabled and settings as shown in the Screenshot1, the optimized copy exhibits issues as shown in the Screenshot2.
Material properties of Liltoon Fur Shader on combined skinned meshes (e.g., "pajamas(combined)" and "socks(combined)") are incorrectly changed.
"pajamas(combined)" is a combination of four skinned meshes, as depicted in the provided screenshot3.
Skinned meshes that are not combined (e.g., the drawer) animate correctly.
The text was updated successfully, but these errors were encountered: