Log inGet started
World

Sensor Looks: Thermal, Night Vision and X-ray

Branchmain
Commita92ee78fb2

README.md

sensorField (render feature)

sensorBlocks' per-frame hook. In its render step each frame it calls Sensors.frame, which packs this machine's sensor state (goggles power, flash blinding, gain, heading), the live sonar pings and the nearest contacts with their roles into a 41 x 4 data texture and publishes it to styleKit as the sensor input; while an x-ray block is on it also queues XrayPass's two geometry passes. All of this happens before the style stack runs at the end of the frame, so nothing shows from it alone: the sensor blocks turn it into rings, outlines and wash-outs.

Sensors.use and Sensors.start() create it on each machine; you never create it yourself.

Known limits

  • Main camera only: offscreen captures, mirrors and render-to-texture cameras get no sensor input.