Sensor Looks: Thermal, Night Vision and X-ray
- ..
- .metadata102 B
- README.md2.3 KB
- block.yaml1.7 KB
README.md
Electron microscope (styleBlock, Colour)
A scanning electron microscope: grey surfaces bright at every edge and steep slope, lit from one side, grainy row by row, with a data bar and scale along the bottom.
It is one of the six "other light" blocks; all run the spectral shader with their own defaults, so any one swaps for another in the Colour slot with one change. Infrared reflectance and ultraviolet fluorescence are read from each surface's base colour, so a scene reads right without tagging: green surfaces are leaves, saturated bright paint is day-glo, near-whites carry optical brighteners.
local Sensors = require("~sensorBlocks.Sensors")
Sensors.use("uvBlacklight")
What it gives up in motion
Everything is computed from the scene each frame and fixed to surfaces, so nothing slides. Grain changes per pixel per frame; the electron microscope's row noise steps eight times a second, row by row, never the whole screen at once.
How it treats content
- Opaque things: by their base colour and the light on them, in the chosen band.
- Transparent things (glass, water): not in the depth, so they show what is behind; still water seen from above is darkened in infrared as it should be.
- Particles and smoke: by their brightness in the frame (fire glows; blacklight leaves them dim violet).
- Sky: black in infrared film, deep blue in colour infrared, violet-dark under blacklight, black-blue in false colour, black in a depth map.
- Fog: lit fog brightens the picture as in the frame.
- Skinned characters: like any surface, with their role marked so players and enemies read apart.
- Foliage: white in infrared film, red in colour infrared, dim under blacklight.
- World text: readable where its colours differ in the band; screen UI is drawn after the stack and is never touched.
- Black does not stay black where a band shows what the eye could not (fluorescence, infrared).
Known limits
- Reflectance and fluorescence are guesses from base colour, not measured per material; give a thing a style role or a distinct colour to change how it reads.
- 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.