Log inGet started
Package

XrayPass.module

README.md

XrayPass (module)

Makes the layer images the x-ray blocks read, on this machine only and only while an x-ray block is in the stack. Two geometry passes draw every surface, then only the metal things heatSignatures knows (crates, barrels, engines, vehicles, electronics), into screen-sized images with additive blending, both sides and no depth test, so each pixel adds up what lies along its ray. They are published to styleKit as the xray and xrayMetal inputs.

Who calls it: Sensors' frame (through the sensorField render feature). Game code never needs it; a block of your own reads the layers with reads: ["input:xray", "input:xrayMetal"] in its block.yaml.

Known limits

  • It counts surfaces, not real density or thickness: a hollow box and a solid one of the same size read alike.
  • What counts as metal comes from heatSignatures's classes (names and HeatSource), not from materials.
  • Two extra full-scene passes while an x-ray block is on.