I’d like to set up a scene such that for all objects in the scene, if the sun lamp directly illuminates it, it is shaded in one colour. For all other scenarios (e.g. in shade, so that it is only indirectly illuminated) it will be shaded in another colour.
How can I achieve this in either Blender Internal, Cycles, or Eevee?
It should only consider direct illumination - no ray bouncing should be considered.
Bonus points if I can set another material to be like “glass” and not block direct illumination and basically be invisible.