Log inGet started
Package

sensorBlocks.package

This package holds more than this page lists. See all of its files in its world.

README.md

nightVision (shader)

The shader every sensorBlocks night vision block runs: an image intensifier. It amplifies the frame's light with an automatic gain (measured fresh each frame from a coarse look at the picture, so it never pumps), adds an infrared illuminator cone and the near-infrared glow of leaves, blooms bright lights into halos, adds scintillating per-pixel grain, the tube's honeycomb, optional pixels and scanlines for digital and security cameras, and lands it on a phosphor colour. Flashes from Sensors.flash wash it out (rate limited by the runtime) and the goggles' power-on plays on it.

Known limits

  • The automatic gain reads 16 points of the picture each frame; one tiny very bright light does not dim the whole picture the way a real tube's gain would.
  • See the sensorBlocks README for the rest.