unity.zallist.universal-simple-lit-shadergraph-target icon indicating copy to clipboard operation
unity.zallist.universal-simple-lit-shadergraph-target copied to clipboard

Unity 2022.3.3 and URP 14.0.8 No rendering in builds but in editor

Open NMP-ffischer opened this issue 2 years ago • 5 comments

Hello,

I recently updated to the newest Unity LTS version and with that to the corresponding URP packages. In the editor, everything looks good but if I made a build (all platforms so far) the objects using a shader graph with simple lit are not rendering at all.

Any ideas on how to solve it?

NMP-ffischer avatar Jun 27 '23 06:06 NMP-ffischer

Are you using forward, deferred or forward+ rendering? What version did you upgrade from and did you test builds on that one? Does the plain "simple lit" shader on materials also work? Are you building for windows in the list you tried?

Zallist avatar Jun 27 '23 06:06 Zallist

Do you have shader stripping turned on for builds? Try without if so

Zallist avatar Jun 27 '23 07:06 Zallist

Hi, thanks for the fast response. I upgraded from Unity 2021 to 2022.3.3 and we rendering with forward. We build for Android and UWP. Both platforms has the issue,

NMP-ffischer avatar Jun 27 '23 08:06 NMP-ffischer

Short update, I tried to turn off shader stripping but it does not work. I also added a sphere using Unity's SimpleLit material and it seems not to appear as well. That confuses me now. I keep you up to date.

NMP-ffischer avatar Jun 27 '23 09:06 NMP-ffischer

This ShaderGraph uses some of the same functions as the built in simple lit shader (the blinn phong function among others) so if unity broke that then it would break here too. Which would be a unity bug.

Zallist avatar Jun 27 '23 09:06 Zallist