Tweaked ray-tracing demo to allow plane-type switching