HeatField.module
README.md
HeatField (module)
The render half of heatSignatures, run on each machine. Every frame a style block reads the heat input, it brings temperatures up to date, packs the climate and the 64 heat shapes nearest the camera into a 65 x 5 float data texture and publishes it to styleKit with StyleKit.publishInput("heat", ...). With no block reading it, it only keeps temperatures moving a few times a second for gameplay.
Who calls it: the heatField render feature (every frame), the HeatClimate component and Sensors.use (to start it). Game code does not need it; block authors read what it publishes through the heatField shader module (hk_temp(uv)).
local HeatField = require("~heatSignatures.HeatField")
HeatField.start() -- safe to call again
print(HeatField.status()) -- what it packed last frame
Known limits
- At most the 64 heat shapes nearest the camera (within 250 m) are packed; farther ones show only the climate.
- The data texture is float; where the device lacks the preferred format it falls back to rgba16f.