//Get The Main Scene Root var scene=ccbGetRootSceneNode() //collect Fog information var fogState=ccbGetSceneNodeProperty(scene,"Fog")
//Check the State of the Fog if(fogState==false) { //Turn Fog On ccbSetSceneNodeProperty(scene,"Fog",true) }else { //turn Fog Off ccbSetSceneNodeProperty(scene,"Fog",false) }