Zallist / unity.zallist.universal-simple-lit-shadergraph-target

This plugin simply adds a Simple Lit material (SubTarget) to the Universal target for Shader Graph for URP
Other
85 stars 14 forks source link

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

Open NMP-ffischer opened 1 year ago

NMP-ffischer commented 1 year ago

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?

Zallist commented 1 year ago

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 commented 1 year ago

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

NMP-ffischer commented 1 year ago

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 commented 1 year ago

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.

Zallist commented 1 year ago

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.