light effect

how do you create the below type of light effect?

A white ray in a semi dark environment

That’s just a directional light casting a light into a darker environment with some level geometry blocking it so the rest of the level isn’t lit by it.