I'm trying to make a fake AO shader using nodes, which gives the color of the AO rather than a closure.
I thought it would be pretty easy to get the ray length of reflection rays and map that to 0-1 for use as the surface color, however it seems shaders mixed based on is reflection ray only affect reflection rays and can't affect the object as seen from the camera.
The above node setup affects the color of the object as "seen" by rays reflected off the floor plane, but not for camera rays.
I'd like to use the length of the the reflection ray in the example below to set the color of the object as seen by direct camera rays:
Is this even possible?