Report

s&box: Spawning decals at runtime with DecalRenderer — bullet holes, surface marks, orientation from trace normal

a69c4f4f-3e29-40e9-b7be-f75cb3e7fede

In s&box, spawning decals (bullet holes, blood splats, scorch marks) at runtime requires creating a GameObject with a DecalRenderer component, or cloning a prefab. Developers don't know the DecalRenderer component API or how to orient decals correctly against a surface normal from a trace result.