- Home /
How to make scene start dark/black and slowly illuminate over time?
Hi,
I am working on a VR project for school and trying to work on a scene where the user starts out in a black/dark area. Slowly, light pours in and they realize they are in the middle of a forest (they see the silhoutte of trees, etc).
Can anyone help me or direct me to the resources to do this?
Thanks!
Answer by leftshoe18 · Nov 16, 2018 at 04:57 AM
If you're using realtime lighting you could increase light intensity or change color through animation, tweening, lerp, etc.
Otherwise you could create a canvas with a solid color overlay and change the alpha in a similar way.
Hey, thanks for your comment. I'm a bit new to coding, does what you describe involve code?
$$anonymous$$ost things will require some amount of code.
For $$anonymous$$imal coding you'll probably just want to use animation. Unity's manual entry for Animation would be a great place to start.
Your answer
Follow this Question
Related Questions
Time Function in Javascript? 1 Answer
increase over time 1 Answer
Time function in OnTriggerStay 1 Answer
How to make GUI Text appear after a certain amount of time 2 Answers
Add to score every second 3 Answers