public void UpdateParameters() { pp.SaveParameters(); sss?.SaveParameters(); SkyboxManager manager = Graphics.Instance.SkyboxManager; Material mat = manager.Skybox; if (mat) { SkyboxSettings setting = null; // Generate Setting Class // TODO: Find better way... // TODO: Add EnviroSky Support (AI) // TODO: Add AIOSky Support (HS2) // TODO: Stronger exception handling for different games. if (mat.shader.name == ProceduralSkyboxSettings.shaderName) { setting = new ProceduralSkyboxSettings(); } else if (mat.shader.name == TwoPointColorSkyboxSettings.shaderName) { setting = new TwoPointColorSkyboxSettings(); } else if (mat.shader.name == FourPointGradientSkyboxSetting.shaderName) { setting = new FourPointGradientSkyboxSetting(); } else if (mat.shader.name == HemisphereGradientSkyboxSetting.shaderName) { setting = new HemisphereGradientSkyboxSetting(); } if (setting != null) { setting.Save(); skyboxSetting = setting; } } skybox = manager.skyboxParams; }
public void UpdateParameters() { pp.SaveParameters(); SkyboxManager manager = Graphics.Instance.SkyboxManager; Material mat = manager.Skybox; if (mat) { SkyboxSettings setting = null; // Generate Setting Class // TODO: Find better way if (mat.shader.name == ProceduralSkyboxSettings.shaderName) { setting = new ProceduralSkyboxSettings(); } else if (mat.shader.name == TwoPointColorSkyboxSettings.shaderName) { setting = new TwoPointColorSkyboxSettings(); } else if (mat.shader.name == FourPointGradientSkyboxSetting.shaderName) { setting = new FourPointGradientSkyboxSetting(); } else if (mat.shader.name == HemisphereGradientSkyboxSetting.shaderName) { setting = new HemisphereGradientSkyboxSetting(); } if (setting != null) { setting.Save(); skyboxSetting = setting; } } skybox = manager.skyboxParams; }
public void UpdateParameters() { pp.SaveParameters(); skybox = AIGraphics.Instance.SkyboxManager.skyboxParams; }