Implemented fog, touch and mouse control.