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

PCSS doesn't work in builds #6

Closed
artyom-zuev opened this issue Dec 5, 2017 · 2 comments
Closed

PCSS doesn't work in builds #6

artyom-zuev opened this issue Dec 5, 2017 · 2 comments

Comments

@artyom-zuev
Copy link

artyom-zuev commented Dec 5, 2017

We've tested this in several versions of Unity (5.5, 5.6.0, 5.6.4, 2017.3) and it looks like PCSS is never applied in builds - only standard Unity shadows are visible. All references are correct at runtime (RT is non null, same light is shadow casting in same mode, etc.), and are no errors raised in the logs, so we're a bit stumped as to how to debug this. What might be the reason for shadows working perfectly in editor but disappearing in the final application?

In case that's relevant: we're using Windows 10, Nvidia GPUs, DX11, linear lighting and deferred rendering with aforementioned versions of Unity.

@Teogai
Copy link

Teogai commented Dec 12, 2017

@artyom-zuev
Try removing the function: ResetShadowMode() from OnDisable() and clean your old build before building a new one.
Mine works perfectly.

@TheMasonX
Copy link
Owner

@artyom-zuev @Teogai The issue was that it was stripping the necessary shader variants. I've added a shader variant collection asset that tracks the variants used in the editor and includes them in the build. It should be working now :) Sorry about the delay, I've been dealing with a lot of personal stuff, and focusing on spending time with my daughter.

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