- Home /
Has cellshading been removed in 5.4?
I have updated unity to 5.4 but the shader changes mentioned here no longer work: http://gamasutra.com/blogs/DavidLeon/20150702/247602/NextGen_Cel_Shading_in_Unity_5.php
Specifically, download the Built-In Shaders and copy into our project the file named “Internal-DeferredShading.shader”. We edit this file looking for the function ‘CalculateLight’ and modify the next line:
light.ndotl = LambertTerm (normalWorld, light.dir);
And add these lines:
if (light.ndotl <= 0.0) light.ndotl = 0; else light.ndotl = 1;
Like the last time, we go to Edit -> Project Settings -> Graphics and in Deferred we choose our modified file. Check that the Camera component has Rendering Path = Deferred, and that you are using a model with a Standard shader in its material. You should now notice that your model has all the advantages of the Standard Shader, but with Cel Shading applied.
In fact changing the shader has no effects at all.
I loaded an older project where this was working and updated it to 5.4 and this one just lights normally now as well. How can we get these effects again in 5.4?