Weird shading when using Cycles rendering
Two points here:

&quot;Shader to RGB&quot; does not work for Cycles, it is normally Eevee only.

The color is directly pluged into the surface output, so this is considered direct color, unshaded.


You should plug a shader to the surface output, starting from this for instance: