HINT

I appear when something blocks the light.

In darkness I dwell, A shape that forms, where light rebels?