cel-shaded/toon shader not working as expected in Unity2017

I did post in the light section too, just in case this is a problem with how Unity handle lighting in the new version.

I have a scene, which was fine, using Unity 5; 1 directional light as sun, few point lights for interior section of the level, and the shader used is the standard Unity toon lit outline version.

Now, when I load the scene in 2017, I see the shader not showing black outline, unless you are very close to the object. I did try changing the outline intensity, but the value clamps at 0.33; and the difference is not even noticeable (while before, you could see it when the value was exaggerated).

Not sure if it is the shader, the light or what else, but I can’t get my meshes to look decent with the toon lit outline shader, and I even tried some other free shaders from the store, and the result seems to be the same. The project was updated from Unity 5, so if this won’t happen on a new scene, I can only assume that some garbage did dirty the scene, when it was converted to 2017 version, and cause that problem, but I have no idea where to start to troubleshoot this. Is there something that I can delete, to force Unity to rebuild everything from the ground up, like if I was importing these models for the first time, and applying the toon lit outline material? I would love to not start the whole scene from scratch, to solve the issue

You can selectively reimport a single item from the context menu in project view. There’s also an option there to reimport all. These methods won’t be a clean import but should update the library.

If you want a clean import of just the shaders, you can look in the Library folder in your project directory before starting Unity and delete the “ShaderCache” folder, “ShaderCache.db” and if you don’t want them the “shadercompiler*.log” files.

You can alternatively delete the entire “Library” folder to force a clean reimport of everything in the project.

Not sure it will fix the problem, but that’s the options for reimporting I’m aware of.

1 Like

Thanks, I will try to do that and see if it works.

I assume that nobody else is having this issue, so it must be something related to the project upgrade; after all I am upgrading this project since Unity 4.6