Let’s think about how real life works: let’s assume you are inside for a bit. You were gaming but now you feel you should head outside. You open your front door, step out, and feel a rush of summer information to your brain. At first, it’s too much, your eyes constrict to make sure you absorb less light. Now that you are outside looking in, your house looks mighty dark (and small, now that I can see).
This script should helps reproduce that effect by using a quintuple ray system to adjust ExposureCompensation, Brightness, bloom, and color correction.
Update: It now uses color correction to make the effect look more convincing.
In addition, I have made a video that shows exactly what it does, and how it works.
Why is your model formatted so strangely? Had to go through two dummy scripts to get to your actual code. In the future I would suggest just directly posting it.
@unmiss There aren’t any dummy scripts. The first script (the main one) requires the module (so it can auto-update), and the second is just the module.
Agreed! I feel like lighting is a highly overlooked thing when it comes to niche effects like this. It just adds a touch of realism that baked lighting is bad with.