Transparent blocks like glass and leaf blocks also prevent any mob from spawning on them. Hence, they can be placed in certain areas as stylish flooring as well as help spawn-proofing. Though scaffolding is also considered a transparent block, it allows mobs to spawn.