d4rkAvatarOptimizer
d4rkAvatarOptimizer copied to clipboard
Render queue not preserved
One of the materials on my avatar's render queue is not preserved when generating the optimised shaders and materials. I have it set to a render queue of 1600, however upon optimising, the optimised variant's render queue option is reset to 2000.
I can't reproduce this issue.
The two places where I do mat.shader = something
I have it wrapped with render queue preservation since that assignment resets it to from shader.
Any more info on how this happened? Maybe some special shaders or shader inspectors?
I'll have a look and see if I can notice any patterns regarding this.
I've just come across this issue myself, so I hope I can add a bit more info.
Using Silent's shader, I noticed on a certain opaque material, default render queue, and with the bake button activated (pre-baked?), I would notice the material being semi-transparent in certain conditions. Shown in the image below, and 2nd image is what it should look like instead.
I've noticed the issue fixes itself when I do any of the following, independently of each other:
- manually setting the render queue very high
- undoing the "bake" option
- enabling GPU instancing (?)
My optimizer settings for this are only:
- Optimize on Upload
- Merge Different Property Materials (with both sub-options selected) Although the material in question doesn't show as merging with any other material.
The world is "White tile" by amanek: https://vrchat.com/home/world/wrld_1544f2bc-e6db-4810-b450-483376745f7a