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