How can I change the color of the sea using color picker or three sliders, one for Read color, one for Green, and one for Blue color please? I am using Water4Example (Advanced).
Using GUI Sliders changing a variable, setting Colour components.
Ensure to define all variables correctly as this has not been done in the sample below
public static void SetColour (this Material material, float value) {
Color color = material.color;
color.a = value;
color.r = redslidervalue;
color.g = greenslidervalue;
color.b = blueslidervalue;
material.color = color;
}
*Original Code Modified from here (Credit: Jessy)