thanks :) the effect is done with raycasting. https://lodev.org/cgtutor/raycasting.html
Oh whoa thanks ive been looking for a tutorial like this for ages. I know what im going to be doing for the next week.