Log inGet started
World

Sensor Looks: Thermal, Night Vision and X-ray

Branchmain
Commita92ee78fb2

README.md

Optics: monocular (styleBlock, Medium)

The view through a single night vision tube: one round picture in the middle of a black housing, darker and slightly bent toward the rim.

It is one of the four optics blocks; all run the optics shader with their own defaults, so any one swaps for another in the Medium slot with one change, under any sensor in the Colour slot (or none: binoculars over the plain scene work too).

local StyleKit = require("~styleKit.StyleKit")
StyleKit.add("opticsBinocular", { id = "optic" })
StyleKit.swap("optic", "opticsScope")

What it gives up in motion

It belongs to the device, so it is fixed to the screen by design. The scope's parallax drifts slowly; nothing flickers.

How it treats content

  • Opaque things: seen through the tubes, a little bent and darker toward each rim.
  • Transparent things (glass, water): the same.
  • Particles and smoke: the same.
  • Sky: the same; the housing covers the corners.
  • Fog: the same.
  • Skinned characters: the same.
  • Foliage: the same.
  • World text: bent with the picture inside a tube and hidden by the housing outside it; screen UI is drawn after the stack and is never touched.
  • Black stays black inside the tubes; the housing is its own colour.

Known limits

  • It runs on the whole frame after antialiasing, so offscreen captures, mirrors and render-to-texture cameras do not show it.
  • The sensorBlocks package README's Known limits lists the rest.

Part of sensorBlocks, version 1.0.0.