Is it possible to do an underwater effect for Unity iPhone? By this I don't mean fog but rather the wavey kind of ripply lines that you get underwater to make everything look more organic. If there is then could someone point me in the right direction?
`
//set your varibles here.
var fog = false;
var fogColor = Color (0, 0.4, 0.7, 0.6);
var fogDensity = 0.04;
var skybox : Material;
//this is where you go underneath the water or in this case into the trigger aera
//this is just the effect not anything to do with force.
function OnTriggerEnter(other : Collider) {
fog = true;
RenderSettings.fog = fog;
RenderSettings.fogColor = fogColor;
RenderSettings.fogDensity = fogDensity;
RenderSettings.skybox = skybox;
}
//this is where we are exiting the water and the effect of being underneath the water is ended.
function OnTriggerExit(){
fog = false;
RenderSettings.fog = fog;
}