|
|
|
|
|
|
Selection.activeObject = sceneSettings; |
|
|
|
|
|
|
|
var profile = VolumeProfileFactory.CreateVolumeProfile(sceneSettings.scene, "Scene Settings"); |
|
|
|
profile.Add<HDShadowSettings>(true); |
|
|
|
var visualEnv = profile.Add<VisualEnvironment>(true); |
|
|
|
VolumeProfileFactory.CreateVolumeComponent<HDShadowSettings>(profile, true, false); |
|
|
|
var visualEnv = VolumeProfileFactory.CreateVolumeComponent<VisualEnvironment>(profile, true, false); |
|
|
|
profile.Add<ProceduralSky>(true); |
|
|
|
profile.Add<ExponentialFog>(true); |
|
|
|
VolumeProfileFactory.CreateVolumeComponent<ProceduralSky>(profile, true, false); |
|
|
|
VolumeProfileFactory.CreateVolumeComponent<ExponentialFog>(profile, true, true); |
|
|
|
|
|
|
|
var volume = sceneSettings.AddComponent<Volume>(); |
|
|
|
volume.isGlobal = true; |
|
|
|