d4rkc0d3r / d4rkAvatarOptimizer

d4rkpl4y3r's VRChat Avatar 3.0 optimizer
MIT License
394 stars 17 forks source link

Shader optimizations don't work on material variants #116

Closed lackofbindings closed 2 months ago

lackofbindings commented 3 months ago

If any material variants are used on the avatar, shader optimizations appear to fail with "Attempted to set shader on material variant". The build appears to continue as normal but without shader optimizations. My use case involves having material variants and then having the optimizer write the static values. This could likely be remedied by having the optimizer make copies of the material variants and then flatten them (see: top left three dots menu > flatten material variant) before continuing with other steps.

d4rkc0d3r commented 2 months ago

3.8.0 should now work with material variants.