|
Okay, so I'm trying to get the ambient lighting to switch to black (so everything is pitch black) and then fade up to a grayish ambient lighting. I'm not too experienced with programming, so this has been really difficult so far, and I'm left with a headache and little progress. I've been trying to use lerping
But then it keeps lerping between the two colors, and I only want to go through the cycle once. Anyone know anything that would work?
(comments are locked)
|
|
Ok my friend, here is a code that I created for you...
(comments are locked)
|
|
I guess to answer my own question, I found out the best way to do this was make a GUI Texture that was completely black and covered the entire screen, then change the alpha value in a for loop to make it look like it was fading in and out. It's a little crude, but it works really well But this have a problem that if you want to iluminate a certain place will not works.
Jan 26 '11 at 12:32 PM
Borgo
You're also going to have fillrate problems if you have any mobile applications. You want to avoid geometry of any kind (planes included) that fill up a lot of the screen in a semi-transparent fashion.
Apr 10 '12 at 04:11 AM
addo
(comments are locked)
|
