usually the lighting effect is used to reveal an area from a black haze
if you put the black haze over your objects you could get an effect like this

by detecting the first and last ray cast to touch an object. rather than drawing your raycast around the object, drawing it through the object from first to last point.
to get a brightening effect like you have shown, you will need to do a bit more work i think.
you could still use the first and last raycast to touch any given object to give you the lighting shape, then use a bitmap effect to cause the lighting.
if you put the black haze over your objects you could get an effect like this

by detecting the first and last ray cast to touch an object. rather than drawing your raycast around the object, drawing it through the object from first to last point.
to get a brightening effect like you have shown, you will need to do a bit more work i think.
you could still use the first and last raycast to touch any given object to give you the lighting shape, then use a bitmap effect to cause the lighting.
