public void InitData(WeatherSkyboxData skyboxData) { SunSize.Init(skyboxData.SunSize); SkyTint.Init(skyboxData.SkyTint); Exposure.Init(skyboxData.Exposure); TintColor.Init(skyboxData.TintColor); AddColor.Init(skyboxData.AddColor); CloudFactor.Init(skyboxData.CloudFactor); CloudSpeed.Init(skyboxData.CloudSpeed); }
public void SetData(WeatherSkyboxData data) { SunSize.SetFloat(data.SunSize); SkyTint.SetColor(data.SkyTint); Exposure.SetFloat(data.Exposure); TintColor.SetColor(data.TintColor); AddColor.SetColor(data.AddColor); CloudFactor.SetFloat(data.CloudFactor); CloudSpeed.SetFloat(data.CloudSpeed); }
public static WeatherSkyboxData operator +(WeatherSkyboxData data1, WeatherSkyboxData data2) { WeatherSkyboxData data = new WeatherSkyboxData(); data.SunSize = data1.SunSize + data2.SunSize; data.SkyTint = data1.SkyTint + data2.SkyTint; data.Exposure = data1.Exposure + data2.Exposure; data.TintColor = data1.TintColor + data2.TintColor; data.AddColor = data1.AddColor + data2.AddColor; data.CloudFactor = data1.CloudFactor + data2.CloudFactor; data.CloudSpeed = data1.CloudSpeed + data2.CloudSpeed; return(data); }
public WeatherSkyboxData GetDataByBlendWeight(float blendWeight) { WeatherSkyboxData data = new WeatherSkyboxData(); data.SunSize = SunSize * blendWeight; data.SkyTint = SkyTint * blendWeight; data.Exposure = Exposure * blendWeight; data.TintColor = TintColor * blendWeight; data.AddColor = AddColor * blendWeight; data.CloudFactor = CloudFactor * blendWeight; data.CloudSpeed = CloudSpeed * blendWeight; return(data); }