✦
shader · drop-in viewer
asset⌬ shadershaderprimary: shader.wgsl·part ofpackage sensorBlocks.package·originates fromworld 144ba6da-a…
xrayLayers
sensorBlocks internal surface shader for the x-ray passes (XrayPass): every surface draws into a screen image with additive blending, both sides and no depth test, so each pixel sums what lies along its ray (r: layers weighted toward surfaces seen edge-on, g: how many surfaces).…
by·posted 6d ago
What it does
xrayLayers (shader)
sensorBlocks internal surface shader for the x-ray passes (XrayPass): every surface draws into a screen image with additive blending, both sides and no depth test, so each pixel sums what lies along its ray (r: layers weighted toward surfaces seen edge-on, g: how many surfaces). The x-ray blocks read the result as the xray and xrayMetal inputs.
Known limits
- It counts surfaces rather than measuring true thickness, so a thin hollow box and a solid one of the same size read alike.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.