Night vision goggles work on thermal energy and can work well in total darkness since they register the heat energy given by different sources around the camera.