Hi guys! I’m in the process of creating a little game/proof of concept scenario, that I’m gonna hand in as my exam project - HOWEVER, I can’t find a nice solution to a problem I’ve discovered.
I really want people to enter my “Mine shaft”, however, i really want some gradual darkness, that’s gonna engulf the player, as he enters the shaft.
I want to create the illusion of someone going “into the dark”, as it’ll act like my stage changer, so when someone enters the dark, the stage is gonna switch.
Here’s a screenshot :
Draw a rect over the screen and gradually change the alpha.
Would that actually be able to work? Like, in a smooth way?
EDIT : It wouldn’t work, as i want to show the “player”, that the mineshaft entrance is dark, and not just like, as soon as he get’s closer to the end of the (visible) tunnel shaft he turns blind. 
You could put a plane with a trigger over the entrance, so the player would walk through it and the trigger would activate the other things you want to happen.
You can try to reduce your lighting dynamically.
Fixed it, by putting in planes with the same shape as the mineshaft model itself.
Gave it a transparrent shader, and just created a lot of the same model, just further and further into the mineshaft, creating the illusion of something being “darker and darker”.
I’d try ramping up the fog via script?
Or simply fade in a plane infront of the camera or a full screen GUI texture.