fix:风机初始化代码提交

This commit is contained in:
zhangjiajia
2026-05-20 17:05:47 +08:00
parent 8510a3dcda
commit 9579356ed1
3752 changed files with 1351544 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
#if ENVIRO_HDRP
using System;
using UnityEngine.Rendering.HighDefinition;
namespace UnityEngine.Rendering.HighDefinition
{
[VolumeComponentMenu("Sky/Enviro 3 Skybox")]
[SkyUniqueID(990)]
public class EnviroHDRPSky : SkySettings
{
public override int GetHashCode()
{
int hash = base.GetHashCode();
unchecked
{
}
return hash;
}
public override int GetHashCode(Camera camera)
{
// Implement if your sky depends on the camera settings (like position for instance)
return GetHashCode();
}
public override Type GetSkyRendererType() { return typeof(EnviroHDRPSkyRenderer); }
}
}
#endif

View File

@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: e23fe585513df7b448c20370fa8a8671
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/Sky/EnviroHDRPSky.cs
uploadId: 660896

View File

@@ -0,0 +1,71 @@
#if ENVIRO_HDRP
using System.Collections;
using UnityEngine.Rendering;
namespace UnityEngine.Rendering.HighDefinition
{
class EnviroHDRPSkyRenderer : SkyRenderer
{
Material skyMat;
MaterialPropertyBlock m_PropertyBlock = new MaterialPropertyBlock();
public EnviroHDRPSkyRenderer()
{
}
public override void Build()
{
if(skyMat == null)
skyMat = CoreUtils.CreateEngineMaterial(Shader.Find("Enviro/HDRP/Sky"));
}
public override void Cleanup()
{
CoreUtils.Destroy(skyMat);
}
protected override bool Update(BuiltinSkyParameters builtinParams)
{
return false;
}
public override void RenderSky(BuiltinSkyParameters builtinParams, bool renderForCubemap, bool renderSunDisk)
{
if (Enviro.EnviroManager.instance == null || Enviro.EnviroManager.instance.Sky == null)
return;
if (skyMat == null)
Build();
Enviro.EnviroManager.instance.Sky.UpdateSkybox(skyMat);
if(Enviro.EnviroManager.instance.Sky != null && Enviro.EnviroManager.instance.Lighting != null)
{
Shader.SetGlobalColor("_AmbientColorTintHDRP", Enviro.EnviroManager.instance.Lighting.Settings.ambientColorTintHDRP.Evaluate(Enviro.EnviroManager.instance.solarTime));
}
var enviroSky = builtinParams.skySettings as EnviroHDRPSky;
m_PropertyBlock.SetMatrix("_PixelCoordToViewDirWS", builtinParams.pixelCoordToViewDirMatrix);
Shader.SetGlobalMatrix("_PixelCoordToViewDirWS", builtinParams.pixelCoordToViewDirMatrix);
Shader.SetGlobalFloat("_EnviroSkyIntensity", GetSkyIntensity(enviroSky, builtinParams.debugSettings));
if(Enviro.EnviroManager.instance.Objects.directionalLight != null)
Enviro.EnviroManager.instance.Objects.directionalLight.transform.position = Vector3.zero;
if(Enviro.EnviroManager.instance.Objects.additionalDirectionalLight != null)
Enviro.EnviroManager.instance.Objects.additionalDirectionalLight.transform.position = Vector3.zero;
if(builtinParams.hdCamera.camera.cameraType == CameraType.Reflection && renderForCubemap)
{
// return;
}
CoreUtils.DrawFullScreen(builtinParams.commandBuffer, skyMat, m_PropertyBlock, renderForCubemap ? 0 : 1);
}
}
}
#endif

View File

@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: f77400c0734edcc47b5d98a75a6a284f
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/Sky/EnviroHDRPSkyRenderer.cs
uploadId: 660896

View File

@@ -0,0 +1,387 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
namespace Enviro
{
[Serializable]
public class EnviroSky
{
public enum SkyMode
{
Normal,
Simple
}
public SkyMode skyMode;
public enum MoonMode
{
Realistic,
Simple,
Off
}
public MoonMode moonMode;
public bool forcedSkyboxSetup = true;
//Front Colors
[GradientUsage(true)]
public Gradient frontColorGradient0,frontColorGradient1,frontColorGradient2,frontColorGradient3,frontColorGradient4,frontColorGradient5;
//Back Colors
[GradientUsage(true)]
public Gradient backColorGradient0,backColorGradient1,backColorGradient2,backColorGradient3,backColorGradient4,backColorGradient5;
//Other Colors
[GradientUsage(true)]
public Gradient sunDiscColorGradient, moonColorGradient, moonGlowColorGradient;
//Textures
public Cubemap starsTex;
public Cubemap starsTwinklingTex;
public Cubemap galaxyTex;
public Texture2D sunTex;
public Texture2D moonTex;
public Texture2D moonGlowTex;
//Distribution
[Range(-0.1f,1f)]
public float distribution0,distribution1,distribution2,distribution3;
public AnimationCurve mieScatteringIntensityCurve,moonGlowIntensityCurve,starIntensityCurve,galaxyIntensityCurve;
public AnimationCurve intensityCurve = new AnimationCurve(new Keyframe(0,1), new Keyframe(1,1));
public float intensity, sunScale, moonScale;
[Range(0f,2f)]
public float mieScatteringMultiplier = 1.0f;
[Range(0f,1f)]
public float starsTwinklingSpeed = 0.1f;
[Range(-2f,2f)]
public float moonPhase;
public AnimationCurve skyExposureHDRP;
#if ENVIRO_HDRP
public UnityEngine.Rendering.HighDefinition.SkyAmbientMode skyAmbientModeHDRP = UnityEngine.Rendering.HighDefinition.SkyAmbientMode.Dynamic;
#endif
[ColorUsage(false,true)]
public Color skyColorTint = Color.white;
[Range(0f,2f)]
public float skyColorExponent = 1.0f;
}
[Serializable]
[ExecuteInEditMode]
public class EnviroSkyModule : EnviroModule
{
public Enviro.EnviroSky Settings;
public EnviroSkyModule preset;
public bool showSkyControls;
public bool showSkySunControls;
public bool showSkyMoonControls;
public bool showSkyStarsControls;
#if ENVIRO_HDRP
UnityEngine.Rendering.HighDefinition.VisualEnvironment visualEnvironment;
UnityEngine.Rendering.HighDefinition.EnviroHDRPSky enviroHDRPSky;
#endif
public Material mySkyboxMat;
private float starsTwinkling;
public override void Enable()
{
if(EnviroManager.instance == null)
return;
#if !ENVIRO_HDRP
SetupSkybox ();
#endif
}
public override void Disable()
{
#if !ENVIRO_HDRP
if(mySkyboxMat != null)
DestroyImmediate(mySkyboxMat);
#endif
}
// Update Method
public override void UpdateModule ()
{
if(!active)
return;
if(EnviroManager.instance == null)
return;
#if !ENVIRO_HDRP
if(mySkyboxMat == null || (mySkyboxMat != RenderSettings.skybox && Settings.forcedSkyboxSetup))
SetupSkybox ();
UpdateSkybox (mySkyboxMat);
#else
UpdateHDRPSky ();
#endif
if(EnviroManager.instance != null && EnviroManager.instance.Time != null && Settings.moonMode == EnviroSky.MoonMode.Realistic)
UpdateMoonPhase ();
}
public void SetupSkybox ()
{
if(mySkyboxMat == null)
{
mySkyboxMat = new Material (Shader.Find("Enviro/Skybox"));
RenderSettings.skybox = mySkyboxMat;
}
else
{
RenderSettings.skybox = mySkyboxMat;
}
}
public void UpdateSkybox (Material mat)
{
float solarTime = EnviroManager.instance.solarTime;
Shader.SetGlobalColor("_FrontColor1",Settings.frontColorGradient1.Evaluate(solarTime));
Shader.SetGlobalColor("_FrontColor2",Settings.frontColorGradient2.Evaluate(solarTime));
Shader.SetGlobalColor("_FrontColor5",Settings.frontColorGradient5.Evaluate(solarTime)); ;
Shader.SetGlobalColor("_BackColor1",Settings.backColorGradient1.Evaluate(solarTime));
Shader.SetGlobalColor("_BackColor2",Settings.backColorGradient2.Evaluate(solarTime));
Shader.SetGlobalColor("_BackColor5",Settings.backColorGradient5.Evaluate(solarTime));
Shader.SetGlobalColor("_SkyColorTint",Settings.skyColorTint);
Shader.SetGlobalColor("_SunColor",Settings.sunDiscColorGradient.Evaluate(solarTime));
mat.SetColor("_MoonColor",Settings.moonColorGradient.Evaluate(solarTime));
mat.SetColor("_MoonGlowColor",Settings.moonGlowColorGradient.Evaluate(solarTime));
Shader.SetGlobalFloat("_Intensity", Settings.intensity * Settings.intensityCurve.Evaluate(solarTime));
Shader.SetGlobalFloat("_SkyColorExponent", Settings.skyColorExponent);
Shader.SetGlobalFloat("_MieScatteringIntensity", Settings.mieScatteringIntensityCurve.Evaluate(solarTime) * Settings.mieScatteringMultiplier);
mat.SetFloat("_MoonGlowIntensity", Settings.moonGlowIntensityCurve.Evaluate(solarTime));
mat.SetFloat("_StarIntensity", Settings.starIntensityCurve.Evaluate(solarTime));
mat.SetFloat("_GalaxyIntensity", Settings.galaxyIntensityCurve.Evaluate(solarTime));
Shader.SetGlobalFloat("_frontBackDistribution0",Settings.distribution0);
Shader.SetGlobalFloat("_frontBackDistribution1",Settings.distribution1);
if (Settings.skyMode == EnviroSky.SkyMode.Simple)
{
Shader.EnableKeyword("ENVIRO_SIMPLESKY");
}
else
{
Shader.DisableKeyword("ENVIRO_SIMPLESKY");
Shader.SetGlobalColor("_FrontColor0",Settings.frontColorGradient0.Evaluate(solarTime));
Shader.SetGlobalColor("_BackColor0",Settings.backColorGradient0.Evaluate(solarTime));
Shader.SetGlobalColor("_FrontColor3",Settings.frontColorGradient3.Evaluate(solarTime));
Shader.SetGlobalColor("_FrontColor4",Settings.frontColorGradient4.Evaluate(solarTime));
Shader.SetGlobalColor("_BackColor3",Settings.backColorGradient3.Evaluate(solarTime));
Shader.SetGlobalColor("_BackColor4",Settings.backColorGradient4.Evaluate(solarTime));
Shader.SetGlobalFloat("_frontBackDistribution2",Settings.distribution2);
Shader.SetGlobalFloat("_frontBackDistribution3",Settings.distribution3);
if(Settings.galaxyTex != null)
mat.SetTexture("_GalaxyTex",Settings.galaxyTex);
}
if(Settings.moonMode == EnviroSky.MoonMode.Off)
mat.SetVector("_SkyMoonParameters", new Vector4(Settings.moonPhase,Settings.moonScale,Settings.moonScale,0f));
else
mat.SetVector("_SkyMoonParameters", new Vector4(Settings.moonPhase,Settings.moonScale,Settings.moonScale,1f));
mat.SetVector("_SkySunParameters", new Vector4(Settings.sunScale,Settings.sunScale,Settings.sunScale,Settings.sunScale));
if(Settings.starsTex != null)
mat.SetTexture("_StarsTex",Settings.starsTex);
if(Settings.starsTwinklingTex != null)
mat.SetTexture("_StarsTwinklingTex",Settings.starsTwinklingTex);
if(Settings.sunTex != null)
mat.SetTexture("_SunTex",Settings.sunTex);
if(Settings.moonTex != null)
mat.SetTexture("_MoonTex",Settings.moonTex);
if(Settings.moonGlowTex != null)
mat.SetTexture("_MoonGlowTex",Settings.moonGlowTex);
Shader.SetGlobalVector("_SunDir",-EnviroManager.instance.Objects.sun.transform.forward);
Shader.SetGlobalVector("_MoonDir",EnviroManager.instance.Objects.moon.transform.forward);
//Deactivate flat and cirrus clouds when no flat clouds module found.
if(EnviroManager.instance.FlatClouds == null)
{
Shader.SetGlobalFloat("_CirrusClouds",0f);
Shader.SetGlobalFloat("_FlatClouds",0f);
}
//Deactivate auroira when no flat clouds module found.
if(EnviroManager.instance.Aurora == null)
{
Shader.SetGlobalFloat("_Aurora",0f);
}
mat.SetFloat("_StarsTwinkling", Settings.starsTwinklingSpeed);
if (Settings.starsTwinklingSpeed > 0.0f)
{
starsTwinkling += Settings.starsTwinklingSpeed * Time.deltaTime;
Quaternion rot = Quaternion.Euler(starsTwinkling, starsTwinkling, starsTwinkling);
Matrix4x4 NoiseRot = Matrix4x4.TRS(Vector3.zero, rot, new Vector3(1, 1, 1));
mat.SetMatrix("_StarsTwinklingMatrix", NoiseRot);
}
}
private void UpdateMoonPhase ()
{
float angle = Vector3.SignedAngle(EnviroManager.instance.Objects.moon.transform.forward, EnviroManager.instance.Objects.sun.transform.forward, -EnviroManager.instance.transform.forward);
if (EnviroManager.instance.Time.Settings.latitude >= 0)
{
if (angle < 0)
{
Settings.moonPhase = EnviroHelper.Remap(angle, 0f, -180f, -2f, 0f);
}
else
{
Settings.moonPhase = EnviroHelper.Remap(angle, 0f, 180f, 2f, 0f);
}
}
else
{
if (angle < 0)
{
Settings.moonPhase = EnviroHelper.Remap(angle, 0f, -180f, 2f, 0f);
}
else
{
Settings.moonPhase = EnviroHelper.Remap(angle, 0f, 180f, -2f, 0f);
}
}
}
#if ENVIRO_HDRP
public void UpdateHDRPSky ()
{
if(EnviroManager.instance.volumeHDRP != null && EnviroManager.instance.volumeProfileHDRP != null)
{
if(visualEnvironment == null)
{
UnityEngine.Rendering.HighDefinition.VisualEnvironment TempEnv;
if (EnviroManager.instance.volumeProfileHDRP.TryGet<UnityEngine.Rendering.HighDefinition.VisualEnvironment>(out TempEnv))
{
visualEnvironment = TempEnv;
}
else
{
EnviroManager.instance.volumeProfileHDRP.Add<UnityEngine.Rendering.HighDefinition.VisualEnvironment>();
if (EnviroManager.instance.volumeProfileHDRP.TryGet<UnityEngine.Rendering.HighDefinition.VisualEnvironment>(out TempEnv))
{
visualEnvironment = TempEnv;
}
}
}
else
{
visualEnvironment.skyType.value = 990;
visualEnvironment.skyType.overrideState = true;
visualEnvironment.skyAmbientMode.value = Settings.skyAmbientModeHDRP;
visualEnvironment.skyAmbientMode.overrideState = true;
}
if(enviroHDRPSky == null)
{
UnityEngine.Rendering.HighDefinition.EnviroHDRPSky TempSky;
if (EnviroManager.instance.volumeProfileHDRP.TryGet<UnityEngine.Rendering.HighDefinition.EnviroHDRPSky>(out TempSky))
{
enviroHDRPSky = TempSky;
}
else
{
EnviroManager.instance.volumeProfileHDRP.Add<UnityEngine.Rendering.HighDefinition.EnviroHDRPSky>();
if (EnviroManager.instance.volumeProfileHDRP.TryGet<UnityEngine.Rendering.HighDefinition.EnviroHDRPSky>(out TempSky))
{
enviroHDRPSky = TempSky;
}
}
}
else
{
enviroHDRPSky.skyIntensityMode.overrideState = true;
enviroHDRPSky.skyIntensityMode.value = UnityEngine.Rendering.HighDefinition.SkyIntensityMode.Exposure;
enviroHDRPSky.exposure.overrideState = true;
enviroHDRPSky.exposure.value = Settings.skyExposureHDRP.Evaluate(EnviroManager.instance.solarTime);
enviroHDRPSky.updateMode.overrideState = true;
if(Application.isPlaying)
enviroHDRPSky.updateMode.value = UnityEngine.Rendering.HighDefinition.EnvironmentUpdateMode.OnChanged;
else
enviroHDRPSky.updateMode.value = UnityEngine.Rendering.HighDefinition.EnvironmentUpdateMode.Realtime;
/* if (UnityEngine.Rendering.RenderPipelineManager.currentPipeline is UnityEngine.Rendering.HighDefinition.HDRenderPipeline)
{
if(EnviroManager.instance.updateSkyAndLightingHDRP)
{
UnityEngine.Rendering.HighDefinition.HDRenderPipeline hd = (UnityEngine.Rendering.HighDefinition.HDRenderPipeline)UnityEngine.Rendering.RenderPipelineManager.currentPipeline;
hd.RequestSkyEnvironmentUpdate();
}
} */
}
}
}
#endif
//Save and Load
public void LoadModuleValues ()
{
if(preset != null)
{
Settings = JsonUtility.FromJson<Enviro.EnviroSky>(JsonUtility.ToJson(preset.Settings));
}
else
{
Debug.Log("Please assign a saved module to load from!");
}
}
public void SaveModuleValues ()
{
#if UNITY_EDITOR
EnviroSkyModule t = ScriptableObject.CreateInstance<EnviroSkyModule>();
t.name = "Sky Module";
t.Settings = JsonUtility.FromJson<Enviro.EnviroSky>(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 (EnviroSkyModule module)
{
module.Settings = JsonUtility.FromJson<Enviro.EnviroSky>(JsonUtility.ToJson(Settings));
#if UNITY_EDITOR
UnityEditor.EditorUtility.SetDirty(module);
UnityEditor.AssetDatabase.SaveAssets();
#endif
}
}
}

View File

@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 375eef0084d44344ebf50cbba7c1eadb
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/Sky/EnviroSkyModule.cs
uploadId: 660896

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 28103e1020df9d24fbe65d103e2e17e5
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,687 @@
%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: 375eef0084d44344ebf50cbba7c1eadb, type: 3}
m_Name: Default Sky Preset
m_EditorClassIdentifier:
showModuleInspector: 1
showSaveLoad: 0
active: 1
Settings:
skyMode: 0
moonMode: 1
forcedSkyboxSetup: 1
frontColorGradient0:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0, g: 0, b: 0, a: 1}
key2: {r: 0.18743324, g: 0.27322546, b: 0.49056602, a: 0}
key3: {r: 0, g: 0, b: 0, 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: 32768
ctime2: 65535
ctime3: 0
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: 3
m_NumAlphaKeys: 2
frontColorGradient1:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0.016509429, g: 0.021462252, b: 0.066037714, a: 1}
key2: {r: 0.11814703, g: 0.14878513, b: 0.4245283, a: 0}
key3: {r: 0.6226415, g: 0.32617846, b: 0.27901387, a: 0}
key4: {r: 0.50271446, g: 0.5662443, b: 0.745283, a: 0}
key5: {r: 1.2720131, g: 1.331453, b: 1.4562767, a: 0}
key6: {r: 1.2720131, g: 1.331453, b: 1.4562767, a: 0}
key7: {r: 1.2720131, g: 1.331453, b: 1.4562767, a: 0}
ctime0: 0
ctime1: 9830
ctime2: 21781
ctime3: 30840
ctime4: 35466
ctime5: 65535
ctime6: 65535
ctime7: 65535
atime0: 0
atime1: 65535
atime2: 0
atime3: 0
atime4: 0
atime5: 0
atime6: 0
atime7: 0
m_Mode: 0
m_NumColorKeys: 6
m_NumAlphaKeys: 2
frontColorGradient2:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0.0146404365, g: 0.019780159, b: 0.066037714, a: 1}
key2: {r: 0.12589, g: 0.15198022, b: 0.38679248, a: 0}
key3: {r: 0.6415094, g: 0.39747813, b: 0.26326096, a: 0}
key4: {r: 0.34282663, g: 0.4525284, b: 0.6792453, a: 0}
key5: {r: 0.4764151, g: 0.6458101, b: 1, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 9830
ctime2: 23130
ctime3: 32768
ctime4: 36430
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: 6
m_NumAlphaKeys: 2
frontColorGradient3:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0.010457456, g: 0.013281485, b: 0.047169805, a: 1}
key2: {r: 0.112896055, g: 0.14217246, b: 0.4056604, a: 0}
key3: {r: 0.3773585, g: 0.3652376, b: 0.35777858, a: 0}
key4: {r: 0.21560162, g: 0.36202627, b: 0.5377358, a: 0}
key5: {r: 0.15806337, g: 0.40404686, b: 0.9056604, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 9830
ctime2: 23323
ctime3: 32768
ctime4: 36044
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: 6
m_NumAlphaKeys: 2
frontColorGradient4:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0.008721959, g: 0.011945723, b: 0.03773582, a: 1}
key2: {r: 0.12896048, g: 0.15503518, b: 0.3962264, a: 0}
key3: {r: 0.16398183, g: 0.34142488, b: 0.5188679, a: 0}
key4: {r: 0.14276282, g: 0.29724503, b: 0.45172718, a: 0}
key5: {r: 0.12495552, g: 0.30849513, b: 0.6792453, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 9830
ctime2: 22552
ctime3: 32768
ctime4: 36044
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: 6
m_NumAlphaKeys: 2
frontColorGradient5:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0.0060074786, g: 0.009723211, b: 0.028301895, a: 1}
key2: {r: 0.13349947, g: 0.15872619, b: 0.3773585, a: 0}
key3: {r: 0.06541474, g: 0.26604164, b: 0.6603774, a: 0}
key4: {r: 0.05502618, g: 0.22379138, b: 0.5555024, a: 0}
key5: {r: 0.055535786, g: 0.13623697, b: 0.3018868, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 9830
ctime2: 23516
ctime3: 32768
ctime4: 36044
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: 6
m_NumAlphaKeys: 2
backColorGradient0:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0, g: 0, b: 0, a: 1}
key2: {r: 0.18743324, g: 0.27322546, b: 0.49056602, a: 0}
key3: {r: 0, g: 0, b: 0, 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: 65535
ctime3: 0
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: 3
m_NumAlphaKeys: 2
backColorGradient1:
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.08810965, g: 0.113260925, b: 0.33962262, a: 0}
key3: {r: 0.1439124, g: 0.24335337, b: 0.3962264, a: 0}
key4: {r: 0.14462443, g: 0.22903053, b: 0.4716981, a: 0}
key5: {r: 1.0093603, g: 1.120279, b: 1.3587542, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 9830
ctime2: 22552
ctime3: 32768
ctime4: 36623
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: 6
m_NumAlphaKeys: 2
backColorGradient2:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0.017221436, g: 0.024346098, b: 0.084905684, a: 1}
key2: {r: 0.06977572, g: 0.092986815, b: 0.3018868, a: 0}
key3: {r: 0.14462443, g: 0.2701294, b: 0.4716981, a: 0}
key4: {r: 0.11814703, g: 0.235986, b: 0.4245283, a: 0}
key5: {r: 0.5594963, g: 0.67877066, b: 0.9339623, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 9830
ctime2: 22937
ctime3: 32768
ctime4: 36044
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: 6
m_NumAlphaKeys: 2
backColorGradient3:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0.016464932, g: 0.023881558, b: 0.09433961, a: 1}
key2: {r: 0.047436804, g: 0.06790358, b: 0.24528301, a: 0}
key3: {r: 0.12615699, g: 0.2354197, b: 0.4245283, a: 0}
key4: {r: 0.11881164, g: 0.21231776, b: 0.36504444, a: 0}
key5: {r: 0.10622107, g: 0.30720985, b: 0.7264151, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 9830
ctime2: 21203
ctime3: 32189
ctime4: 36044
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: 6
m_NumAlphaKeys: 2
backColorGradient4:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0.012148449, g: 0.015318409, b: 0.066037714, a: 1}
key2: {r: 0.052064795, g: 0.06886638, b: 0.24528301, a: 0}
key3: {r: 0.13510145, g: 0.23963216, b: 0.41509432, a: 0}
key4: {r: 0.12047333, g: 0.21410206, b: 0.37014997, a: 0}
key5: {r: 0.16838734, g: 0.38746652, b: 0.8301887, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 9830
ctime2: 22359
ctime3: 32768
ctime4: 36044
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: 6
m_NumAlphaKeys: 2
backColorGradient5:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0.009344964, g: 0.016615558, b: 0.05660379, a: 1}
key2: {r: 0.052064802, g: 0.073716745, b: 0.2830189, a: 0}
key3: {r: 0.13883945, g: 0.256586, b: 0.4528302, a: 0}
key4: {r: 0.10290611, g: 0.1901784, b: 0.3356322, a: 0}
key5: {r: 0.12322002, g: 0.30227578, b: 0.6698113, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 9830
ctime2: 24479
ctime3: 32768
ctime4: 36044
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: 6
m_NumAlphaKeys: 2
sunDiscColorGradient:
serializedVersion: 2
key0: {r: 0, g: 0, b: 0, a: 1}
key1: {r: 0, g: 0, b: 0, a: 1}
key2: {r: 33.89676, g: 9.719456, b: 3.7268682, a: 0}
key3: {r: 5.2437057, g: 2.6674795, b: 1.5582712, a: 0}
key4: {r: 10.432951, g: 8.302663, b: 5.89926, a: 0}
key5: {r: 10.432951, g: 8.302663, b: 5.89926, 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: 32189
ctime3: 36044
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
moonColorGradient:
serializedVersion: 2
key0: {r: 4.237095, g: 4.237095, b: 4.237095, a: 1}
key1: {r: 4.237095, g: 4.237095, b: 4.237095, a: 1}
key2: {r: 0, g: 0, b: 0, a: 0}
key3: {r: 9.082411, g: 9.082411, b: 9.082411, 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: 36147
ctime2: 37478
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: 3
m_NumAlphaKeys: 2
moonGlowColorGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
key1: {r: 2.297397, g: 2.297397, b: 2.297397, a: 1}
key2: {r: 0, g: 0, b: 0, a: 0}
key3: {r: 0, g: 0, b: 0, 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: 65535
ctime2: 0
ctime3: 0
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: 2
m_NumAlphaKeys: 2
starsTex: {fileID: 8900000, guid: b5a7175da0f133b4d951c19c9c2cebfc, type: 3}
starsTwinklingTex: {fileID: 8900000, guid: a25af6a439465e247b1c97f4608d75ce, type: 3}
galaxyTex: {fileID: 8900000, guid: 5734983fc81450b4187c3cfa5985edef, type: 3}
sunTex: {fileID: 2800000, guid: c95bed5306e94f24ba5802d841607ac7, type: 3}
moonTex: {fileID: 2800000, guid: c6fd9f694390e0245b6dca5812065950, type: 3}
moonGlowTex: {fileID: 2800000, guid: 6838e0810da4e49488b5d9a6ee76eb07, type: 3}
distribution0: 0.015
distribution1: 0.129
distribution2: 0.358
distribution3: 0.779
mieScatteringIntensityCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: -0.007847921
outSlope: -0.007847921
tangentMode: 34
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 0.3561647
value: -0.0027951524
inSlope: -0.038249854
outSlope: -0.038249854
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.6600225
- serializedVersion: 3
time: 0.5428551
value: 0.68094885
inSlope: 1.574418
outSlope: 1.574418
tangentMode: 0
weightedMode: 0
inWeight: 0.17693263
outWeight: 0.16409834
- serializedVersion: 3
time: 0.9999943
value: 0.879508
inSlope: -0.080521375
outSlope: -0.080521375
tangentMode: 0
weightedMode: 0
inWeight: 0.17235015
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
moonGlowIntensityCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: -0.0041648876
value: 0.5331504
inSlope: 0.02708037
outSlope: 0.02708037
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.4766767
- serializedVersion: 3
time: 0.4666333
value: 0.42919362
inSlope: -0.5320517
outSlope: -0.5320517
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.29416153
- serializedVersion: 3
time: 1.0000203
value: 0.0000010535587
inSlope: 0.04149956
outSlope: 0.04149956
tangentMode: 0
weightedMode: 0
inWeight: 0.40983278
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
starIntensityCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 2
inSlope: 0.085266516
outSlope: 0.085266516
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.50991267
- serializedVersion: 3
time: 0.24226823
value: 1.6664829
inSlope: -2.991319
outSlope: -2.991319
tangentMode: 0
weightedMode: 0
inWeight: 0.06692798
outWeight: 0.33333334
- serializedVersion: 3
time: 0.5965074
value: 0.008752085
inSlope: -0.09524627
outSlope: -0.09524627
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.42628345
- serializedVersion: 3
time: 1
value: 0
inSlope: -0.021690818
outSlope: -0.021690818
tangentMode: 34
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
galaxyIntensityCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: -0.030366909
value: 0.5
inSlope: -0.0010944334
outSlope: -0.0010944334
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.115316436
- serializedVersion: 3
time: 0.2869789
value: 0.4267584
inSlope: -0.78694266
outSlope: -0.78694266
tangentMode: 0
weightedMode: 0
inWeight: 0.12658444
outWeight: 0.33333334
- serializedVersion: 3
time: 0.5994185
value: 0.0009220154
inSlope: -0.032852825
outSlope: -0.032852825
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.18183947
- serializedVersion: 3
time: 1
value: 0
inSlope: -0.0023016925
outSlope: -0.0023016925
tangentMode: 34
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
intensityCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
intensity: 1
sunScale: 7
moonScale: 7
mieScatteringMultiplier: 0.6
starsTwinklingSpeed: 0.25
moonPhase: 0
skyExposureHDRP:
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
skyColorTint: {r: 1, g: 1, b: 1, a: 1}
skyColorExponent: 1.2
preset: {fileID: 0}
showSkyControls: 0
showSkySunControls: 0
showSkyMoonControls: 0
showSkyStarsControls: 0
mySkyboxMat: {fileID: 0}

View File

@@ -0,0 +1,16 @@
fileFormatVersion: 2
guid: 44f43418b8d8b8142863e38d1e49e174
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/Sky/Preset/Default
Sky Preset.asset
uploadId: 660896