Emissive Shadow Reciever

I would like to make an emissive, or sortof shadeless texture that can receive shadows. Any ideas?

On a side note, how do I change the colour of an emissive texture with the light path being is camera ray?
I’m trying a mix rgb but that doesn’t seem to work. Thanks!


Light paths are “yes/no” type of information: one or zero, white or black. Use output to drive Fac input of Mix(Color, BSDF) node.
Shadeless kind of excludes shadows - in Cycles “shadeless” is Emission node, value 1. If you have Shadow information as a b/w gradient image you could use this to drive Emission value. Here is a quick example where shadow falling on plane was Baked in image which then is used to color and drive value of Emission node.
http://www.pasteall.org/pic/show.php?id=91081