// Initialization public void Awake() { managerState = "waking up"; m_radius = (float)parentCelestialBody.Radius; // print (m_radius); m_sunNode = new SunNode(); m_sunNode.Start (); m_skyNode = new SkyNode(); m_skyNode.setManager (this); m_skyNode.SetParentCelestialBody (parentCelestialBody); m_skyNode.setParentPlanetTransform (ParentPlanetTransform); // print ("skynode parent CB and PP set"); m_skyNode.loadSettings (); m_skyNode.Start (); m_skyNode.loadFromConfigNode (); // print ("skynode started"); // m_oceanNode = new OceanWhiteCaps(); // m_oceanNode.setManager (this); // m_oceanNode.setCore (m_core); // // m_oceanNode.Start (); for (int i=0;i<7;i++) { cam[i]=1; } managerState = "awake"; }
public void settings(Material inSkyMat, Vector3 inPos, Mesh inMesh, Manager inManager, SkyNode inSkyNode, Camera incam,int inlayer) { position = inPos; skyMat = inSkyMat; m_mesh = inMesh; m_skynode = inSkyNode; m_manager = inManager; cam = incam; layer = inlayer; }
public void settings(Mesh inmesh,Material inSkyMat, Material inSkyExtinct, Manager inManager, SkyNode inSkyNode, GameObject inSkyObject,GameObject inSkyExtinctObject, bool indebug6, Transform inparentTransform, Transform inCelestialTransform) { skyMat = inSkyMat; skyExtinct = inSkyExtinct; m_manager = inManager; m_skynode = inSkyNode; skyObject = inSkyObject; skyExtinctObject = inSkyExtinctObject; debug6 = indebug6; parentTransform = inparentTransform; celestialTransform = inCelestialTransform; m_mesh = inmesh; }
public void settings(SkyNode inSkyNode) { m_skynode = inSkyNode; HDR = m_skynode.farCameraHDR; }