thermalMedical.styleBlock
- .metadata89 B
- README.md2.5 KB
- block.yaml2.4 KB
README.md
Thermal: medical (styleBlock, Colour)
A medical thermography palette: stepped colour bands from blue to red and white across a narrow range, so a fever or inflammation stands out as its own band.
It is one of the eight thermal blocks; all run the thermal shader with their own defaults, so any one swaps for another in the Colour slot with one change, and every setting of one works on the others. The temperature comes from heatSignatures (install it; it finds people, animals, fires, engines, metal and water by their names, and HeatSource sets anything else), mapped over the climate's display range.
local StyleKit = require("~styleKit.StyleKit")
StyleKit.add("thermalWhiteHot", { id = "sensor" })
StyleKit.swap("sensor", "thermalIronbow") -- one change
What it gives up in motion
The heat of a moving thing moves with it, so nothing slides. The grain changes every frame per pixel at 30 steps a second, a fine sensor noise rather than a flicker; nothing lights the whole screen in a pulse. The coarse sensor cells (resolution) are fixed to the screen, as a real core is.
How it treats content
- Opaque things: their heat, from heatSignatures's shapes and the climate, with a little of their shape and edges (
detail). - Transparent things (glass, water): drawn as the heat of what is behind them, since they are not in the depth. Give water a HeatSource or a name heatSignatures knows (stream, river, water) so its surface reads cool.
- Particles and smoke: fire particles are bright in the frame, and what glows reads hot; cold smoke is invisible, as on a real thermal camera.
- Sky: the climate's sky temperature, the coldest thing in the picture at night.
- Fog: ignored; thermal sees through light fog.
- Skinned characters: warm, from heatSignatures's person and animal classes, with cooler edges where clothes turn away.
- Foliage: green surfaces sit near the air temperature.
- World text: drawn as heat (unreadable, as on a real camera); keep labels a player must read in the screen UI, which is drawn after the stack.
- Black does not stay black: a sensor makes light where the eye saw none.
Known limits
- Heat shapes are boxes and ellipsoids fitted to each thing's bounds; at most the 64 nearest the camera are drawn.
- 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.