fix:代码提初始化
This commit is contained in:
@@ -0,0 +1,509 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using System;
|
||||
|
||||
namespace Enviro
|
||||
{
|
||||
[Serializable]
|
||||
public class EnviroLighting
|
||||
{
|
||||
// DirectLighting
|
||||
public enum LightingMode
|
||||
{
|
||||
Single,
|
||||
Dual
|
||||
};
|
||||
|
||||
public LightingMode lightingMode;
|
||||
public bool setDirectLighting = true;
|
||||
public int updateIntervallFrames = 2;
|
||||
public AnimationCurve sunIntensityCurve;
|
||||
public AnimationCurve moonIntensityCurve;
|
||||
[GradientUsageAttribute(true)]
|
||||
public Gradient sunColorGradient;
|
||||
[GradientUsageAttribute(true)]
|
||||
public Gradient moonColorGradient;
|
||||
public AnimationCurve sunIntensityCurveHDRP = new AnimationCurve();
|
||||
public AnimationCurve moonIntensityCurveHDRP = new AnimationCurve();
|
||||
public AnimationCurve lightColorTemperatureHDRP = new AnimationCurve();
|
||||
[GradientUsageAttribute(true)]
|
||||
public Gradient ambientColorTintHDRP;
|
||||
public float lightIntensityHDRP = 750f;
|
||||
public bool controlExposure = true;
|
||||
public AnimationCurve sceneExposure = new AnimationCurve();
|
||||
public bool controlIndirectLighting = true;
|
||||
public AnimationCurve diffuseIndirectIntensity = new AnimationCurve();
|
||||
public AnimationCurve reflectionIndirectIntensity = new AnimationCurve();
|
||||
|
||||
[Range(0f,2f)]
|
||||
public float directLightIntensityModifier = 1f;
|
||||
|
||||
//Ambient Lighting
|
||||
public bool setAmbientLighting = true;
|
||||
public UnityEngine.Rendering.AmbientMode ambientMode;
|
||||
[GradientUsage(true)]
|
||||
public Gradient ambientSkyColorGradient;
|
||||
[GradientUsage(true)]
|
||||
public Gradient ambientEquatorColorGradient;
|
||||
[GradientUsage(true)]
|
||||
public Gradient ambientGroundColorGradient;
|
||||
public AnimationCurve ambientIntensityCurve;
|
||||
|
||||
[Range(0f,2f)]
|
||||
public float ambientIntensityModifier = 1f;
|
||||
|
||||
public bool ambientUpdateEveryFrame = false;
|
||||
|
||||
[Range(0f,2f)]
|
||||
public float ambientUpdateIntervall = 0.1f;
|
||||
|
||||
[Range(0f,1f)]
|
||||
public float shadowIntensity = 1f;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
[ExecuteInEditMode]
|
||||
public class EnviroLightingModule : EnviroModule
|
||||
{
|
||||
public Enviro.EnviroLighting Settings;
|
||||
public EnviroLightingModule preset;
|
||||
|
||||
private int currentFrame;
|
||||
private float lastAmbientSkyboxUpdate;
|
||||
|
||||
//Inspector
|
||||
public bool showDirectLightingControls;
|
||||
public bool showAmbientLightingControls;
|
||||
public bool showReflectionControls;
|
||||
|
||||
#if ENVIRO_HDRP
|
||||
public UnityEngine.Rendering.HighDefinition.HDAdditionalLightData directionalLightHDRP;
|
||||
public UnityEngine.Rendering.HighDefinition.HDAdditionalLightData additionalLightHDRP;
|
||||
public UnityEngine.Rendering.HighDefinition.Exposure exposureHDRP;
|
||||
public UnityEngine.Rendering.HighDefinition.IndirectLightingController indirectLightingHDRP;
|
||||
#endif
|
||||
|
||||
public override void Enable ()
|
||||
{
|
||||
if(EnviroManager.instance == null)
|
||||
return;
|
||||
|
||||
Setup();
|
||||
}
|
||||
|
||||
public override void Disable ()
|
||||
{
|
||||
if(EnviroManager.instance == null)
|
||||
return;
|
||||
|
||||
Cleanup();
|
||||
}
|
||||
|
||||
//Applies changes when you switch the lighting mode.
|
||||
public void ApplyLightingChanges ()
|
||||
{
|
||||
Cleanup();
|
||||
Setup();
|
||||
}
|
||||
|
||||
private void Setup()
|
||||
{
|
||||
if(EnviroManager.instance.Objects.directionalLight == null)
|
||||
{
|
||||
GameObject newLight = new GameObject();
|
||||
|
||||
if(Settings.lightingMode == EnviroLighting.LightingMode.Single)
|
||||
newLight.name = "Sun and Moon Directional Light";
|
||||
else
|
||||
newLight.name = "Sun Directional Light";
|
||||
|
||||
newLight.transform.SetParent(EnviroManager.instance.transform);
|
||||
newLight.transform.localPosition = Vector3.zero;
|
||||
EnviroManager.instance.Objects.directionalLight = newLight.AddComponent<Light>();
|
||||
EnviroManager.instance.Objects.directionalLight.type = LightType.Directional;
|
||||
EnviroManager.instance.Objects.directionalLight.shadows = LightShadows.Soft;
|
||||
}
|
||||
|
||||
if(EnviroManager.instance.Objects.additionalDirectionalLight == null && Settings.lightingMode == EnviroLighting.LightingMode.Dual)
|
||||
{
|
||||
GameObject newLight = new GameObject();
|
||||
newLight.name = "Moon Directional Light";
|
||||
newLight.transform.SetParent(EnviroManager.instance.transform);
|
||||
newLight.transform.localPosition = Vector3.zero;
|
||||
EnviroManager.instance.Objects.additionalDirectionalLight = newLight.AddComponent<Light>();
|
||||
EnviroManager.instance.Objects.additionalDirectionalLight.type = LightType.Directional;
|
||||
EnviroManager.instance.Objects.additionalDirectionalLight.shadows = LightShadows.Soft;
|
||||
}
|
||||
else if (EnviroManager.instance.Objects.additionalDirectionalLight != null && Settings.lightingMode == EnviroLighting.LightingMode.Single)
|
||||
{
|
||||
DestroyImmediate(EnviroManager.instance.Objects.additionalDirectionalLight.gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
private void Cleanup()
|
||||
{
|
||||
if(EnviroManager.instance == null)
|
||||
return;
|
||||
|
||||
if(EnviroManager.instance.Objects.directionalLight != null)
|
||||
DestroyImmediate(EnviroManager.instance.Objects.directionalLight.gameObject);
|
||||
|
||||
if(EnviroManager.instance.Objects.additionalDirectionalLight != null)
|
||||
DestroyImmediate(EnviroManager.instance.Objects.additionalDirectionalLight.gameObject);
|
||||
}
|
||||
|
||||
// Update Method
|
||||
public override void UpdateModule ()
|
||||
{
|
||||
if(!active)
|
||||
return;
|
||||
|
||||
if(EnviroManager.instance == null)
|
||||
return;
|
||||
|
||||
currentFrame++;
|
||||
|
||||
if(currentFrame >= Settings.updateIntervallFrames)
|
||||
{
|
||||
EnviroManager.instance.updateSkyAndLighting = true;
|
||||
currentFrame = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
EnviroManager.instance.updateSkyAndLighting = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Update Direct Lighting
|
||||
if(EnviroManager.instance.Objects.directionalLight != null && Settings.setDirectLighting)
|
||||
{
|
||||
#if !ENVIRO_HDRP
|
||||
if(EnviroManager.instance.updateSkyAndLighting)
|
||||
UpdateDirectLighting ();
|
||||
#else
|
||||
if(EnviroManager.instance.updateSkyAndLighting)
|
||||
UpdateDirectLightingHDRP();
|
||||
#endif
|
||||
}
|
||||
|
||||
if (Settings.setAmbientLighting)
|
||||
{
|
||||
#if !ENVIRO_HDRP
|
||||
UpdateAmbientLighting (Settings.ambientUpdateEveryFrame);
|
||||
#else
|
||||
if(EnviroManager.instance.updateSkyAndLighting)
|
||||
UpdateAmbientLightingHDRP ();
|
||||
#endif
|
||||
}
|
||||
|
||||
#if ENVIRO_HDRP
|
||||
if(EnviroManager.instance.updateSkyAndLighting)
|
||||
UpdateExposureHDRP ();
|
||||
#endif
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void UpdateDirectLighting ()
|
||||
{
|
||||
if(Settings.lightingMode == EnviroLighting.LightingMode.Single)
|
||||
{
|
||||
if(!EnviroManager.instance.isNight)
|
||||
{
|
||||
//Set light to sun
|
||||
EnviroManager.instance.Objects.directionalLight.transform.rotation = EnviroManager.instance.Objects.sun.transform.rotation;
|
||||
EnviroManager.instance.Objects.directionalLight.intensity = Settings.sunIntensityCurve.Evaluate(EnviroManager.instance.solarTime) * Settings.directLightIntensityModifier;
|
||||
EnviroManager.instance.Objects.directionalLight.color = Settings.sunColorGradient.Evaluate(EnviroManager.instance.solarTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
//Set light to moon
|
||||
EnviroManager.instance.Objects.directionalLight.transform.rotation = EnviroManager.instance.Objects.moon.transform.rotation;
|
||||
EnviroManager.instance.Objects.directionalLight.intensity = Settings.moonIntensityCurve.Evaluate(EnviroManager.instance.lunarTime) * Settings.directLightIntensityModifier;
|
||||
EnviroManager.instance.Objects.directionalLight.color = Settings.moonColorGradient.Evaluate(EnviroManager.instance.lunarTime);
|
||||
}
|
||||
|
||||
EnviroManager.instance.Objects.directionalLight.shadowStrength = Settings.shadowIntensity;
|
||||
}
|
||||
else
|
||||
{
|
||||
//Sun
|
||||
EnviroManager.instance.Objects.directionalLight.transform.rotation = EnviroManager.instance.Objects.sun.transform.rotation;
|
||||
EnviroManager.instance.Objects.directionalLight.intensity = Settings.sunIntensityCurve.Evaluate(EnviroManager.instance.solarTime) * Settings.directLightIntensityModifier;
|
||||
EnviroManager.instance.Objects.directionalLight.color = Settings.sunColorGradient.Evaluate(EnviroManager.instance.solarTime);
|
||||
EnviroManager.instance.Objects.directionalLight.shadowStrength = Settings.shadowIntensity;
|
||||
//Moon
|
||||
EnviroManager.instance.Objects.additionalDirectionalLight.transform.rotation = EnviroManager.instance.Objects.moon.transform.rotation;
|
||||
EnviroManager.instance.Objects.additionalDirectionalLight.intensity = Settings.moonIntensityCurve.Evaluate(EnviroManager.instance.lunarTime) * Settings.directLightIntensityModifier;
|
||||
EnviroManager.instance.Objects.additionalDirectionalLight.color = Settings.moonColorGradient.Evaluate(EnviroManager.instance.lunarTime);
|
||||
EnviroManager.instance.Objects.additionalDirectionalLight.shadowStrength = Settings.shadowIntensity;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
#if ENVIRO_HDRP
|
||||
public void UpdateDirectLightingHDRP ()
|
||||
{
|
||||
if(directionalLightHDRP == null && EnviroManager.instance.Objects.directionalLight != null)
|
||||
directionalLightHDRP = EnviroManager.instance.Objects.directionalLight.gameObject.GetComponent<UnityEngine.Rendering.HighDefinition.HDAdditionalLightData>();
|
||||
|
||||
if(additionalLightHDRP == null && EnviroManager.instance.Objects.additionalDirectionalLight != null)
|
||||
additionalLightHDRP = EnviroManager.instance.Objects.additionalDirectionalLight.gameObject.GetComponent<UnityEngine.Rendering.HighDefinition.HDAdditionalLightData>();
|
||||
|
||||
if(Settings.lightingMode == EnviroLighting.LightingMode.Single)
|
||||
{
|
||||
if(!EnviroManager.instance.isNight)
|
||||
{
|
||||
//Set light to sun
|
||||
EnviroManager.instance.Objects.directionalLight.transform.rotation = EnviroManager.instance.Objects.sun.transform.rotation;
|
||||
EnviroManager.instance.Objects.directionalLight.color = Settings.sunColorGradient.Evaluate(EnviroManager.instance.solarTime);
|
||||
EnviroManager.instance.Objects.directionalLight.useColorTemperature = true;
|
||||
EnviroManager.instance.Objects.directionalLight.colorTemperature = Settings.lightColorTemperatureHDRP.Evaluate(EnviroManager.instance.solarTime);
|
||||
|
||||
#if UNITY_6000_0_OR_NEWER
|
||||
EnviroManager.instance.Objects.directionalLight.intensity = Settings.sunIntensityCurve.Evaluate(EnviroManager.instance.solarTime) * Settings.lightIntensityHDRP * Settings.directLightIntensityModifier;
|
||||
#else
|
||||
if(directionalLightHDRP != null)
|
||||
directionalLightHDRP.SetIntensity(Settings.sunIntensityCurve.Evaluate(EnviroManager.instance.solarTime) * Settings.lightIntensityHDRP * Settings.directLightIntensityModifier);
|
||||
#endif
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
//Set light to moon
|
||||
EnviroManager.instance.Objects.directionalLight.transform.rotation = EnviroManager.instance.Objects.moon.transform.rotation;
|
||||
EnviroManager.instance.Objects.directionalLight.color = Settings.moonColorGradient.Evaluate(EnviroManager.instance.lunarTime);
|
||||
EnviroManager.instance.Objects.directionalLight.useColorTemperature = true;
|
||||
EnviroManager.instance.Objects.directionalLight.colorTemperature = Settings.lightColorTemperatureHDRP.Evaluate(EnviroManager.instance.solarTime);
|
||||
#if UNITY_6000_0_OR_NEWER
|
||||
EnviroManager.instance.Objects.directionalLight.intensity = Settings.moonIntensityCurve.Evaluate(EnviroManager.instance.lunarTime) * Settings.lightIntensityHDRP* Settings.directLightIntensityModifier;
|
||||
#else
|
||||
if (directionalLightHDRP != null)
|
||||
directionalLightHDRP.SetIntensity(Settings.moonIntensityCurve.Evaluate(EnviroManager.instance.lunarTime) * Settings.lightIntensityHDRP * Settings.directLightIntensityModifier);
|
||||
#endif
|
||||
}
|
||||
|
||||
if(directionalLightHDRP != null)
|
||||
directionalLightHDRP.shadowDimmer = Settings.shadowIntensity;
|
||||
}
|
||||
else
|
||||
{
|
||||
//Sun
|
||||
EnviroManager.instance.Objects.directionalLight.transform.rotation = EnviroManager.instance.Objects.sun.transform.rotation;
|
||||
EnviroManager.instance.Objects.directionalLight.color = Settings.sunColorGradient.Evaluate(EnviroManager.instance.solarTime);
|
||||
EnviroManager.instance.Objects.directionalLight.useColorTemperature = true;
|
||||
EnviroManager.instance.Objects.directionalLight.colorTemperature = Settings.lightColorTemperatureHDRP.Evaluate(EnviroManager.instance.solarTime);
|
||||
|
||||
if(directionalLightHDRP != null)
|
||||
{
|
||||
#if UNITY_6000_0_OR_NEWER
|
||||
EnviroManager.instance.Objects.directionalLight.intensity = Settings.sunIntensityCurve.Evaluate(EnviroManager.instance.solarTime) * Settings.lightIntensityHDRP* Settings.directLightIntensityModifier;
|
||||
#else
|
||||
directionalLightHDRP.SetIntensity(Settings.sunIntensityCurve.Evaluate(EnviroManager.instance.solarTime) * Settings.lightIntensityHDRP * Settings.directLightIntensityModifier);
|
||||
#endif
|
||||
|
||||
directionalLightHDRP.shadowDimmer = Settings.shadowIntensity;
|
||||
}
|
||||
//Moon
|
||||
if(EnviroManager.instance.Objects.additionalDirectionalLight != null)
|
||||
{
|
||||
EnviroManager.instance.Objects.additionalDirectionalLight.transform.rotation = EnviroManager.instance.Objects.moon.transform.rotation;
|
||||
EnviroManager.instance.Objects.additionalDirectionalLight.color = Settings.moonColorGradient.Evaluate(EnviroManager.instance.lunarTime);
|
||||
EnviroManager.instance.Objects.additionalDirectionalLight.useColorTemperature = true;
|
||||
EnviroManager.instance.Objects.additionalDirectionalLight.colorTemperature = Settings.lightColorTemperatureHDRP.Evaluate(EnviroManager.instance.solarTime);
|
||||
}
|
||||
|
||||
if(additionalLightHDRP != null)
|
||||
{
|
||||
#if UNITY_6000_0_OR_NEWER
|
||||
EnviroManager.instance.Objects.directionalLight.intensity = Settings.moonIntensityCurve.Evaluate(EnviroManager.instance.lunarTime) * Settings.lightIntensityHDRP * Settings.directLightIntensityModifier;
|
||||
#else
|
||||
additionalLightHDRP.SetIntensity(Settings.moonIntensityCurve.Evaluate(EnviroManager.instance.lunarTime) * Settings.lightIntensityHDRP * Settings.directLightIntensityModifier);
|
||||
#endif
|
||||
|
||||
additionalLightHDRP.shadowDimmer = Settings.shadowIntensity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateAmbientLightingHDRP ()
|
||||
{
|
||||
if(EnviroManager.instance.volumeHDRP != null && EnviroManager.instance.volumeProfileHDRP != null)
|
||||
{
|
||||
if(indirectLightingHDRP == null)
|
||||
{
|
||||
UnityEngine.Rendering.HighDefinition.IndirectLightingController TempIndirectLight;
|
||||
|
||||
if (EnviroManager.instance.volumeProfileHDRP.TryGet<UnityEngine.Rendering.HighDefinition.IndirectLightingController>(out TempIndirectLight))
|
||||
{
|
||||
indirectLightingHDRP = TempIndirectLight;
|
||||
}
|
||||
else
|
||||
{
|
||||
EnviroManager.instance.volumeProfileHDRP.Add<UnityEngine.Rendering.HighDefinition.IndirectLightingController>();
|
||||
|
||||
if (EnviroManager.instance.volumeProfileHDRP.TryGet<UnityEngine.Rendering.HighDefinition.IndirectLightingController>(out TempIndirectLight))
|
||||
{
|
||||
indirectLightingHDRP = TempIndirectLight;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(Settings.controlIndirectLighting)
|
||||
{
|
||||
indirectLightingHDRP.active = true;
|
||||
indirectLightingHDRP.indirectDiffuseLightingMultiplier.overrideState = true;
|
||||
indirectLightingHDRP.indirectDiffuseLightingMultiplier.value = Settings.diffuseIndirectIntensity.Evaluate(EnviroManager.instance.solarTime);
|
||||
indirectLightingHDRP.reflectionLightingMultiplier.overrideState = true;
|
||||
indirectLightingHDRP.reflectionLightingMultiplier.value = Settings.reflectionIndirectIntensity.Evaluate(EnviroManager.instance.solarTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
indirectLightingHDRP.active = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateExposureHDRP ()
|
||||
{
|
||||
if(EnviroManager.instance.volumeHDRP != null && EnviroManager.instance.volumeProfileHDRP != null)
|
||||
{
|
||||
if(exposureHDRP == null)
|
||||
{
|
||||
UnityEngine.Rendering.HighDefinition.Exposure TempExposure;
|
||||
|
||||
if (EnviroManager.instance.volumeProfileHDRP.TryGet<UnityEngine.Rendering.HighDefinition.Exposure>(out TempExposure))
|
||||
{
|
||||
exposureHDRP = TempExposure;
|
||||
}
|
||||
else
|
||||
{
|
||||
EnviroManager.instance.volumeProfileHDRP.Add<UnityEngine.Rendering.HighDefinition.Exposure>();
|
||||
|
||||
if (EnviroManager.instance.volumeProfileHDRP.TryGet<UnityEngine.Rendering.HighDefinition.Exposure>(out TempExposure))
|
||||
{
|
||||
exposureHDRP = TempExposure;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(Settings.controlExposure)
|
||||
{
|
||||
exposureHDRP.active = true;
|
||||
exposureHDRP.mode.overrideState = true;
|
||||
exposureHDRP.mode.value = UnityEngine.Rendering.HighDefinition.ExposureMode.Fixed;
|
||||
exposureHDRP.fixedExposure.overrideState = true;
|
||||
exposureHDRP.fixedExposure.value = Settings.sceneExposure.Evaluate(EnviroManager.instance.solarTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
exposureHDRP.active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
public void UpdateAmbientLighting (bool forced = false)
|
||||
{
|
||||
RenderSettings.ambientMode = Settings.ambientMode;
|
||||
|
||||
float intensity = Settings.ambientIntensityCurve.Evaluate(EnviroManager.instance.solarTime) * Settings.ambientIntensityModifier;
|
||||
|
||||
RenderSettings.ambientIntensity = intensity;
|
||||
|
||||
if(forced)
|
||||
{
|
||||
UpdateAmbient(Settings.ambientMode,intensity);
|
||||
|
||||
if(EnviroManager.instance.Time != null)
|
||||
{
|
||||
lastAmbientSkyboxUpdate = EnviroManager.instance.Time.Settings.timeOfDay + Settings.ambientUpdateIntervall;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(EnviroManager.instance.Time != null)
|
||||
{
|
||||
if (lastAmbientSkyboxUpdate < EnviroManager.instance.Time.Settings.timeOfDay || lastAmbientSkyboxUpdate > EnviroManager.instance.Time.Settings.timeOfDay + (Settings.ambientUpdateIntervall + 0.01f))
|
||||
{
|
||||
UpdateAmbient(Settings.ambientMode,intensity);
|
||||
lastAmbientSkyboxUpdate = EnviroManager.instance.Time.Settings.timeOfDay + Settings.ambientUpdateIntervall;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (lastAmbientSkyboxUpdate < Time.time)
|
||||
{
|
||||
UpdateAmbient(Settings.ambientMode,intensity);
|
||||
lastAmbientSkyboxUpdate = Time.time + (Settings.ambientUpdateIntervall * 60);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateAmbient(UnityEngine.Rendering.AmbientMode ambientMode, float intensity)
|
||||
{
|
||||
switch (ambientMode)
|
||||
{
|
||||
case UnityEngine.Rendering.AmbientMode.Flat:
|
||||
RenderSettings.ambientSkyColor = Settings.ambientSkyColorGradient.Evaluate(EnviroManager.instance.solarTime) * intensity;
|
||||
break;
|
||||
|
||||
case UnityEngine.Rendering.AmbientMode.Trilight:
|
||||
RenderSettings.ambientSkyColor = Settings.ambientSkyColorGradient.Evaluate(EnviroManager.instance.solarTime) * intensity;
|
||||
RenderSettings.ambientEquatorColor = Settings.ambientEquatorColorGradient.Evaluate(EnviroManager.instance.solarTime) * intensity;
|
||||
RenderSettings.ambientGroundColor = Settings.ambientGroundColorGradient.Evaluate(EnviroManager.instance.solarTime) * intensity;
|
||||
break;
|
||||
|
||||
case UnityEngine.Rendering.AmbientMode.Skybox:
|
||||
DynamicGI.UpdateEnvironment();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//Save and Load
|
||||
public void LoadModuleValues ()
|
||||
{
|
||||
if(preset != null)
|
||||
{
|
||||
Settings = JsonUtility.FromJson<Enviro.EnviroLighting>(JsonUtility.ToJson(preset.Settings));
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("Please assign a saved module to load from!");
|
||||
}
|
||||
}
|
||||
|
||||
public void SaveModuleValues ()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
EnviroLightingModule t = ScriptableObject.CreateInstance<EnviroLightingModule>();
|
||||
t.name = "Lighting Module";
|
||||
t.Settings = JsonUtility.FromJson<Enviro.EnviroLighting>(JsonUtility.ToJson(Settings));
|
||||
|
||||
string assetPathAndName = UnityEditor.AssetDatabase.GenerateUniqueAssetPath(EnviroHelper.assetPath + "/New " + t.name + ".asset");
|
||||
UnityEditor.AssetDatabase.CreateAsset(t, assetPathAndName);
|
||||
UnityEditor.AssetDatabase.SaveAssets();
|
||||
UnityEditor.AssetDatabase.Refresh();
|
||||
#endif
|
||||
}
|
||||
|
||||
public void SaveModuleValues (EnviroLightingModule module)
|
||||
{
|
||||
module.Settings = JsonUtility.FromJson<Enviro.EnviroLighting>(JsonUtility.ToJson(Settings));
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorUtility.SetDirty(module);
|
||||
UnityEditor.AssetDatabase.SaveAssets();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b18a0693e95fd064e9d0a3b96e538236
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 236601
|
||||
packageName: Enviro 3 - Sky and Weather
|
||||
packageVersion: 3.1.2
|
||||
assetPath: Assets/Enviro 3 - Sky and Weather/Scripts/Runtime/Modules/Lighting/EnviroLightingModule.cs
|
||||
uploadId: 660896
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 43d2103184b3c9b4a9f920958db18b55
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,542 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b18a0693e95fd064e9d0a3b96e538236, type: 3}
|
||||
m_Name: Default Lighting Preset
|
||||
m_EditorClassIdentifier:
|
||||
showModuleInspector: 1
|
||||
showSaveLoad: 0
|
||||
active: 1
|
||||
Settings:
|
||||
lightingMode: 0
|
||||
setDirectLighting: 1
|
||||
updateIntervallFrames: 1
|
||||
sunIntensityCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.42
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.5817692
|
||||
value: 1.9319578
|
||||
inSlope: 0.20075521
|
||||
outSlope: 0.20075521
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.99427843
|
||||
value: 1.9724423
|
||||
inSlope: 0.138579
|
||||
outSlope: 0.138579
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33801654
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
moonIntensityCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.42
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.61047
|
||||
value: 0.46311775
|
||||
inSlope: 0.20075521
|
||||
outSlope: 0.20075521
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.9869074
|
||||
value: 0.49453083
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
sunColorGradient:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0.29803923, g: 0.33333334, b: 0.4392157, a: 1}
|
||||
key1: {r: 0.3853806, g: 0.4379325, b: 0.5955882, a: 1}
|
||||
key2: {r: 1, g: 0.51851845, b: 0, a: 0}
|
||||
key3: {r: 0.91764706, g: 0.78431374, b: 0.6431373, a: 0}
|
||||
key4: {r: 0.91764706, g: 0.8627451, b: 0.80784315, a: 0}
|
||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||
ctime0: 0
|
||||
ctime1: 29491
|
||||
ctime2: 33153
|
||||
ctime3: 36700
|
||||
ctime4: 65535
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 0
|
||||
atime3: 0
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 5
|
||||
m_NumAlphaKeys: 2
|
||||
moonColorGradient:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0.009433985, g: 0.009433985, b: 0.009433985, a: 1}
|
||||
key2: {r: 0.35844606, g: 0.38487896, b: 0.4245283, a: 0}
|
||||
key3: {r: 0.45990568, g: 0.5011793, b: 0.6132076, a: 0}
|
||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||
ctime0: 0
|
||||
ctime1: 29491
|
||||
ctime2: 33539
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 0
|
||||
atime3: 0
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 2
|
||||
sunIntensityCurveHDRP:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: -0.005858557
|
||||
value: 0
|
||||
inSlope: -69.7483
|
||||
outSlope: -69.7483
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.28545874
|
||||
- serializedVersion: 3
|
||||
time: 0.42
|
||||
value: 0
|
||||
inSlope: -14.224594
|
||||
outSlope: -14.224594
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.16805899
|
||||
outWeight: 0.5635239
|
||||
- serializedVersion: 3
|
||||
time: 0.51438606
|
||||
value: 619.9909
|
||||
inSlope: 14358.117
|
||||
outSlope: 14358.117
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.12846851
|
||||
outWeight: 0.20660013
|
||||
- serializedVersion: 3
|
||||
time: 0.6068845
|
||||
value: 1314.4552
|
||||
inSlope: 1486.1951
|
||||
outSlope: 1486.1951
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.330822
|
||||
outWeight: 0.16775069
|
||||
- serializedVersion: 3
|
||||
time: 1.0073586
|
||||
value: 1497.6918
|
||||
inSlope: -142.08925
|
||||
outSlope: -142.08925
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.18685488
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
moonIntensityCurveHDRP:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 34
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.42
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 1
|
||||
- serializedVersion: 3
|
||||
time: 0.5151054
|
||||
value: 29.550873
|
||||
inSlope: 936.90796
|
||||
outSlope: 936.90796
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.42325592
|
||||
outWeight: 0.25243106
|
||||
- serializedVersion: 3
|
||||
time: 0.5727867
|
||||
value: 65.81247
|
||||
inSlope: 153.72064
|
||||
outSlope: 153.72064
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.3182723
|
||||
outWeight: 0.17477258
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 89.63618
|
||||
inSlope: 0.074095555
|
||||
outSlope: 0.074095555
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.14896
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
lightColorTemperatureHDRP:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0.0042874366
|
||||
value: 10002.518
|
||||
inSlope: -65.305664
|
||||
outSlope: -65.305664
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.38720584
|
||||
value: 9894.908
|
||||
inSlope: -855.4398
|
||||
outSlope: -855.4398
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.4745867
|
||||
value: 2850.5876
|
||||
inSlope: 926.3545
|
||||
outSlope: 926.3545
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.6485079
|
||||
value: 4931.462
|
||||
inSlope: 4445.381
|
||||
outSlope: 4445.381
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 1.0041809
|
||||
value: 5500
|
||||
inSlope: 93.2233
|
||||
outSlope: 93.2233
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
ambientColorTintHDRP:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0.8867924, g: 0.8867924, b: 0.8867924, a: 1}
|
||||
key1: {r: 0.9056604, g: 0.9013884, b: 0.9013884, a: 1}
|
||||
key2: {r: 2, g: 2, b: 2, a: 0.78431374}
|
||||
key3: {r: 0, g: 0, b: 0, a: 0.78431374}
|
||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||
ctime0: 0
|
||||
ctime1: 65535
|
||||
ctime2: 65535
|
||||
ctime3: 0
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 65535
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
lightIntensityHDRP: 350
|
||||
controlExposure: 1
|
||||
sceneExposure:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 5
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 34
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 5
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 34
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
controlIndirectLighting: 1
|
||||
diffuseIndirectIntensity:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 34
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 34
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
reflectionIndirectIntensity:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 34
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 34
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
directLightIntensityModifier: 1
|
||||
setAmbientLighting: 1
|
||||
ambientMode: 0
|
||||
ambientSkyColorGradient:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0.010946958, g: 0.015512637, b: 0.05660379, a: 1}
|
||||
key2: {r: 0.17475082, g: 0.18796726, b: 0.31132078, a: 0}
|
||||
key3: {r: 0.33931115, g: 0.43156135, b: 0.5754717, a: 0}
|
||||
key4: {r: 0.5298594, g: 0.60636276, b: 0.764151, a: 0}
|
||||
key5: {r: 0.5298594, g: 0.60636276, b: 0.764151, a: 0}
|
||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||
ctime0: 0
|
||||
ctime1: 15360
|
||||
ctime2: 29593
|
||||
ctime3: 36556
|
||||
ctime4: 65535
|
||||
ctime5: 65535
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 0
|
||||
atime3: 0
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 5
|
||||
m_NumAlphaKeys: 2
|
||||
ambientEquatorColorGradient:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0.010946958, g: 0.015512637, b: 0.05660379, a: 1}
|
||||
key2: {r: 0.15356888, g: 0.16649368, b: 0.2735849, a: 0}
|
||||
key3: {r: 0.33931115, g: 0.43156135, b: 0.5754717, a: 0}
|
||||
key4: {r: 0.5298594, g: 0.60636276, b: 0.764151, a: 0}
|
||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||
ctime0: 0
|
||||
ctime1: 15360
|
||||
ctime2: 29593
|
||||
ctime3: 36556
|
||||
ctime4: 65535
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 0
|
||||
atime3: 0
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 5
|
||||
m_NumAlphaKeys: 2
|
||||
ambientGroundColorGradient:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0.010946958, g: 0.015512637, b: 0.05660379, a: 1}
|
||||
key2: {r: 0.15356888, g: 0.16649368, b: 0.2735849, a: 0}
|
||||
key3: {r: 0.33931115, g: 0.43156135, b: 0.5754717, a: 0}
|
||||
key4: {r: 0.5298594, g: 0.60636276, b: 0.764151, a: 0}
|
||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||
ctime0: 0
|
||||
ctime1: 15360
|
||||
ctime2: 29593
|
||||
ctime3: 36556
|
||||
ctime4: 65535
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 0
|
||||
atime3: 0
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 5
|
||||
m_NumAlphaKeys: 2
|
||||
ambientIntensityCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: -0.021333456
|
||||
value: 0.8050667
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 34
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.97866654
|
||||
value: 0.8050667
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 34
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
ambientIntensityModifier: 1
|
||||
ambientUpdateEveryFrame: 0
|
||||
ambientUpdateIntervall: 0.1
|
||||
shadowIntensity: 0.996
|
||||
preset: {fileID: 0}
|
||||
showDirectLightingControls: 0
|
||||
showAmbientLightingControls: 0
|
||||
showReflectionControls: 0
|
||||
@@ -0,0 +1,16 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 81d8b109102443243bcb0894975c0718
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 236601
|
||||
packageName: Enviro 3 - Sky and Weather
|
||||
packageVersion: 3.1.2
|
||||
assetPath: Assets/Enviro 3 - Sky and Weather/Scripts/Runtime/Modules/Lighting/Preset/Default
|
||||
Lighting Preset.asset
|
||||
uploadId: 660896
|
||||
Reference in New Issue
Block a user