|
Ok so what I'm trying to do is change the brightness of a material by changing it's "V" value in the Tint Color property. Not sure where to go from there though. This what I've got so far: I'm trying to do this so I can Mathf.SmoothDamp my skybox from black to the blue color that it normally is. Any help would be appreciated.
(comments are locked)
|
|
You need to use SkyboxMaterial.SetCOlor( "_Tint", myColor ); to change the color. Not sure what you mean by V value. The V of a HSV color ? Thanks, yes I mean the HSV color portion. Is myColor a constant of some kind or is that a variable I make up? And what type of variable should it be?
Jun 24 '12 at 05:34 AM
TheDavil86
That's a var you need to declare (and rename, myColor is quite general).
Jun 25 '12 at 02:33 AM
Berenger
(comments are locked)
|
