Water screen blur

How could I make it when a player walks into water the screen turns a shade of blue like in the Island demo that comes with the demo of unity.

if you have a pro version of unity then you can use the script Blur under image effects

Hello. I’m new to unityscript. Can someone please tell me the script for activating the blur script inside a camera when the camera is under water?

Thanx.

Hi,

there are different effects:

For coloring the ground underwater read this:
http://forum.unity3d.com/viewtopic.php?t=42886&highlight=cyan+water

When you are under water, and look upwards to a mountain on the other side of the water surface, you can use “UnderWater Water Surface” to color that. Look at the Prefab “UnderWater Water Surface” in the island map in the hierarchy window.

If you want to create an underwater-fog, look at the camera “Main Camera” within the “First Person Controller Prefab” in the hierarchy window. The Main Camera has a script attached called “UnderwaterEffects”.

There is defined, how dense your underwater fog is, which color it has, and when it actives:

// Over water
RenderSettings.fogDensity = aDensity;
RenderSettings.fogColor = aColor;

// Underwater
RenderSettings.fogDensity = uDensity;
RenderSettings.fogColor = uColor;

function Update ()
{
	if (waterLevel < transform.position.y  below)
	{
		audio.clip = aAudio;
		audio.Play();
		RenderSettings.fogDensity = aDensity;
		RenderSettings.fogColor = aColor;
		
		below = false;
		
		glow.enabled = !below  glow.IsSupported();
		blur.enabled = below  blur.IsSupported();
		waterSurface.enabled = true;
		underwaterSurface.enabled = false;
	}
	
	if (waterLevel > transform.position.y  !below)
	{
		audio.clip = uAudio;
		audio.Play();
		RenderSettings.fogDensity = uDensity;
		RenderSettings.fogColor = uColor;
		
		below = true;
		
		glow.enabled = !below  glow.IsSupported();
		blur.enabled = below  blur.IsSupported();
		waterSurface.enabled = false;
		underwaterSurface.enabled = false;
	}
}

Thak you!