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:
// The Material to change
var SkyboxMaterial : Material;
function Start () {
// Set the initial tint
SkyboxMaterial.shader.GetComponent("TintColor");
}
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.