BlackLight.setDiffuseTransparentPlane C# (CSharp) Method

setDiffuseTransparentPlane() public method

public setDiffuseTransparentPlane ( ) : void
return void
	public void setDiffuseTransparentPlane ()
	{
		foreach(GameObject fog in GameObject.FindGameObjectsWithTag("Fog"))
		{
            Transform plane = fog.transform.FindChild("plane");
			if(plane)
			{
				plane.GetComponent<Renderer>().material.shader = Shader.Find("Transparent/Diffuse");
			}
		}
		_shaderChanged = true;				
	}