public override void OnAdd(Scene scene) { renderElement = new SkyRenderElement(); renderElement.mieHeight = 0.0015f; renderElement.rayleighHeight = 0.0055f; SetColor(new Vector3(0.65f, 0.57f, 0.475f)); base.OnAdd(scene); }
public override void OnAdd(Scene scene) { renderElement = new SkyRenderElement(); renderElement.mieHeight = 0.0022f; renderElement.rayleighHeight = 0.0035f; renderElement.rayleighGain = 9.235767f; renderElement.mieGain = 16.199024f; SetColor(new Vector3(0.8353f, 0.6119f, 0.4780f)); NoiseParameters cloudParams = new NoiseParameters(16, 0.49f, 0.018499f, 0.70999f); renderElement.cloudTexture = GFX.Inst.PerlinNoiseGen.Generate2DNoise(cloudParams, 512, 512, 1); //MieHeight = 15; //RayleighHeight = 55; //SetColor(new Vector3(0.65f, 0.57f, 0.475f)); base.OnAdd(scene); }
public override void OnAdd(Scene scene) { renderElement = new SkyRenderElement(); renderElement.mieHeight = 0.0022f; renderElement.rayleighHeight = 0.0035f; renderElement.rayleighGain = 9.235767f; renderElement.mieGain = 16.199024f; SetColor(new Vector3(0.8353f, 0.6119f, 0.4780f)); NoiseParameters cloudParams = new NoiseParameters(16, 0.49f, 0.018499f, 0.70999f); renderElement.cloudTexture = (Texture2D)ResourceManager.Inst.GetTexture("Textures/Sky/cloud1.png").GetTexture();// GFX.Inst.PerlinNoiseGen.Generate2DNoise(cloudParams, 512, 512, 1); GFX.Inst.PerlinNoiseGen.Generate2DNoise(cloudParams, 512, 512, 1).Save("NoiseTexture.dds", ImageFileFormat.Dds); //MieHeight = 15; //RayleighHeight = 55; //SetColor(new Vector3(0.65f, 0.57f, 0.475f)); base.OnAdd(scene); }