Skip to content
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

Render queue not preserved #36

Open
hyblocker opened this issue May 7, 2023 · 5 comments
Open

Render queue not preserved #36

hyblocker opened this issue May 7, 2023 · 5 comments

Comments

@hyblocker
Copy link

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.

@d4rkc0d3r
Copy link
Owner

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.

@d4rkc0d3r
Copy link
Owner

Any more info on how this happened? Maybe some special shaders or shader inspectors?

@hyblocker
Copy link
Author

I'll have a look and see if I can notice any patterns regarding this.

@rskskr
Copy link

rskskr commented Aug 20, 2023

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

VRChat_2023-08-20_23-16-57 435_3840x2160
VRChat_2023-08-20_23-12-53 188_3840x2160

@rskskr
Copy link

rskskr commented Aug 30, 2023

I've included the broken shader of the post above.

shaders.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants