Here we have a fog which is red in color and has a visibilty range set to 1. As the mouse goes over the cube, the fog changes to green in color as shown in Example 2.
source
run with LR
run with CosmoPlayer