Readd missing import files
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b2ff13231f53cf047af63987ffb3ef37
|
||||
folderAsset: yes
|
||||
timeCreated: 1532380913
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,91 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: EnviroLWMoon
|
||||
m_Shader: {fileID: 4800000, guid: 7a0acf2dae5705a47b6458d7c791cace, type: 3}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- <noninit>:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 7d2b165c8c93d944e9cf8b0274c23df1, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- <noninit>: 5
|
||||
- _Brightness: 2.38
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _InvFade: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _Phase: -0.1
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
- _lightIntensity: 1
|
||||
m_Colors:
|
||||
- <noninit>: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _Color: {r: 1, g: 0.9575472, b: 0.9575472, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a6fbb713e3531a944a9cb01acd169c44
|
||||
timeCreated: 1500382808
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29d617fd20c85e94bbc8765413f216bd
|
||||
folderAsset: yes
|
||||
timeCreated: 1532380931
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Enviro_RainParticle_LQ
|
||||
m_Shader: {fileID: 10721, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: ff9e9d266b05db44096ee8ec1732f46c, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cca3b665542386c488334f936c5df23d
|
||||
timeCreated: 1532380943
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Enviro_SnowParticle_LQ
|
||||
m_Shader: {fileID: 10721, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: a5fa0cd3075025b468ae54ee9fb17689, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d78c6abc18fb59c41b272fe842969dcc
|
||||
timeCreated: 1532380943
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 73e9054757d5df7488faefa0310fa19a
|
||||
folderAsset: yes
|
||||
timeCreated: 1532233411
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cbee50d0954a1094ba9d73bc5cdf8063
|
||||
folderAsset: yes
|
||||
timeCreated: 1532283828
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+11402
File diff suppressed because it is too large
Load Diff
+9
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 870fb2241eea3504981794f9ad7ab7ec
|
||||
timeCreated: 1532283818
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
mainObjectFileID: 100100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+11528
File diff suppressed because it is too large
Load Diff
+9
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 349caba85d66e6544a255352a44c0392
|
||||
timeCreated: 1532283818
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
mainObjectFileID: 100100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3b03c34058d75724ba4ebd1719270726
|
||||
folderAsset: yes
|
||||
timeCreated: 1532380886
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+3393
File diff suppressed because it is too large
Load Diff
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5ed4ce1f9abfa944fb0462b08c373c93
|
||||
timeCreated: 1498052939
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+3465
File diff suppressed because it is too large
Load Diff
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5d00af152b0756b4d958edc9145555c4
|
||||
timeCreated: 1498006172
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+3381
File diff suppressed because it is too large
Load Diff
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 07951236abb2b0e4b83fef1afffeab6d
|
||||
timeCreated: 1498052885
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+3465
File diff suppressed because it is too large
Load Diff
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eb00aa0efab163240b0100942689e7fd
|
||||
timeCreated: 1498052863
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+3134
File diff suppressed because it is too large
Load Diff
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d7199e3069614314880abb4328c0c665
|
||||
timeCreated: 1498052947
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+3206
File diff suppressed because it is too large
Load Diff
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 35b265635b434fb4589078490426250b
|
||||
timeCreated: 1498052850
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f883e80da81ae4e45b1099275a1876e5
|
||||
folderAsset: yes
|
||||
timeCreated: 1532380983
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+1384
File diff suppressed because it is too large
Load Diff
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 63bc1fa62ac6fbe43a8b7fe193088114
|
||||
timeCreated: 1507077366
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+1384
File diff suppressed because it is too large
Load Diff
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 06a57ac974aaa8a42b8f9393ac97c68a
|
||||
timeCreated: 1507077366
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 54915a4ad7879fa429ede9ee56af32cc
|
||||
folderAsset: yes
|
||||
timeCreated: 1498006085
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
%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: ad9e871a73fc09d488bc058f3b382b35, type: 3}
|
||||
m_Name: Clear Sky LQ
|
||||
m_EditorClassIdentifier:
|
||||
version: 1.9.0
|
||||
Name: Clear Sky
|
||||
Spring: 1
|
||||
possibiltyInSpring: 30
|
||||
Summer: 1
|
||||
possibiltyInSummer: 60
|
||||
Autumn: 1
|
||||
possibiltyInAutumn: 25
|
||||
winter: 1
|
||||
possibiltyInWinter: 50
|
||||
cloudsConfig:
|
||||
ambientSkyColorIntensity: 1
|
||||
scatteringCoef: 0
|
||||
edgeDarkness: 2
|
||||
baseErosionIntensity: 0
|
||||
detailErosionIntensity: 0.2
|
||||
density: 1
|
||||
lightStepModifier: 0.5
|
||||
lightVariance: 0.5
|
||||
coverage: -1
|
||||
lightAbsorbtion: 0.4
|
||||
coverageType: 1
|
||||
raymarchingScale: 1
|
||||
cloudType: 0
|
||||
cirrusAlpha: 0
|
||||
cirrusCoverage: 0
|
||||
cirrusColorPow: 2
|
||||
flatCloudsDensity: 2.5
|
||||
flatCloudsAbsorbtion: 2.5
|
||||
flatCloudsDirectLightIntensity: 15
|
||||
flatCloudsAmbientLightIntensity: 1
|
||||
flatCloudsHGPhase: 0.9
|
||||
flatCoverage: 0
|
||||
particleLayer1Alpha: 0
|
||||
particleLayer1Brightness: 0.75
|
||||
particleLayer1ColorPow: 2
|
||||
particleLayer2Alpha: 0
|
||||
particleLayer2Brightness: 0.75
|
||||
particleLayer2ColorPow: 2
|
||||
particleCloudsOverwrite: 0
|
||||
fogStartDistance: 0
|
||||
fogDistance: 5000
|
||||
fogDensity: 0.0001
|
||||
weatherSkyMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherLightMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherFogMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 0.9411765}
|
||||
key1: {r: 0, g: 0, b: 0, a: 0.88235295}
|
||||
key2: {r: 0.68235296, g: 0.7058824, b: 0.88235295, a: 0}
|
||||
key3: {r: 0.42352942, g: 0.54901963, b: 0.7490196, a: 0.4627451}
|
||||
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: 31226
|
||||
ctime2: 34695
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 31770
|
||||
atime2: 33981
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
volumeLightIntensity: 1
|
||||
shadowIntensityMod: 0
|
||||
heightFogDensity: 0
|
||||
SkyFogHeight: 2.08
|
||||
skyFogStart: 0
|
||||
SkyFogIntensity: 0.927
|
||||
FogScatteringIntensity: 1.3
|
||||
fogSunBlocking: 1
|
||||
moonIntensity: 1
|
||||
effectSystems: []
|
||||
WindStrenght: 0.172
|
||||
wetnessLevel: 0
|
||||
snowLevel: 0
|
||||
temperatureLevel: 0
|
||||
isLightningStorm: 0
|
||||
lightningInterval: 10
|
||||
auroraIntensity: 0
|
||||
weatherSFX: {fileID: 0}
|
||||
SpringDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SpringNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
SummerDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SummerNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
AutumnDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
AutumnNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
WinterDayAmbient: {fileID: 0}
|
||||
WinterNightAmbient: {fileID: 0}
|
||||
blurDistance: 100
|
||||
blurIntensity: 1
|
||||
blurSkyIntensity: 1
|
||||
sceneExposureMod: 1
|
||||
skyExposureMod: 1
|
||||
lightIntensityMod: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c79dab7bf227da14ba2c000d82ceba0c
|
||||
timeCreated: 1498052985
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+172
@@ -0,0 +1,172 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ad9e871a73fc09d488bc058f3b382b35, type: 3}
|
||||
m_Name: Cloudy 1 LQ
|
||||
m_EditorClassIdentifier:
|
||||
version: 1.9.0
|
||||
Name: Cloudy 1
|
||||
Spring: 1
|
||||
possibiltyInSpring: 38.9
|
||||
Summer: 1
|
||||
possibiltyInSummer: 49.3
|
||||
Autumn: 1
|
||||
possibiltyInAutumn: 41.8
|
||||
winter: 1
|
||||
possibiltyInWinter: 54.5
|
||||
cloudsConfig:
|
||||
ambientSkyColorIntensity: 1
|
||||
scatteringCoef: 0.453
|
||||
edgeDarkness: 2
|
||||
baseErosionIntensity: 0
|
||||
detailErosionIntensity: 0.2
|
||||
density: 1.739
|
||||
lightStepModifier: 0.5
|
||||
lightVariance: 0.5
|
||||
coverage: 0.02
|
||||
lightAbsorbtion: 0.4
|
||||
coverageType: 1
|
||||
raymarchingScale: 1
|
||||
cloudType: 1
|
||||
cirrusAlpha: 1
|
||||
cirrusCoverage: 0
|
||||
cirrusColorPow: 2
|
||||
flatCloudsDensity: 3.8
|
||||
flatCloudsAbsorbtion: 4.33
|
||||
flatCloudsDirectLightIntensity: 21.3
|
||||
flatCloudsAmbientLightIntensity: 1
|
||||
flatCloudsHGPhase: 0.9
|
||||
flatCoverage: 0.33
|
||||
particleLayer1Alpha: 0
|
||||
particleLayer1Brightness: 0.75
|
||||
particleLayer1ColorPow: 2
|
||||
particleLayer2Alpha: 0.022
|
||||
particleLayer2Brightness: 0.75
|
||||
particleLayer2ColorPow: 2
|
||||
particleCloudsOverwrite: 0
|
||||
fogStartDistance: 0
|
||||
fogDistance: 0
|
||||
fogDensity: 0.0001
|
||||
weatherSkyMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherLightMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherFogMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 0.9411765}
|
||||
key1: {r: 0, g: 0, b: 0, a: 0.88235295}
|
||||
key2: {r: 0.68235296, g: 0.7058824, b: 0.88235295, a: 0}
|
||||
key3: {r: 0.42352942, g: 0.54901963, b: 0.7490196, a: 0.4627451}
|
||||
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: 32198
|
||||
ctime2: 34695
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 31770
|
||||
atime2: 33981
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
volumeLightIntensity: 1
|
||||
shadowIntensityMod: 0
|
||||
heightFogDensity: 1
|
||||
SkyFogHeight: 5
|
||||
skyFogStart: 0
|
||||
SkyFogIntensity: 0
|
||||
FogScatteringIntensity: 1.07
|
||||
fogSunBlocking: 1
|
||||
moonIntensity: 1
|
||||
effectSystems: []
|
||||
WindStrenght: 0.275
|
||||
wetnessLevel: 0
|
||||
snowLevel: 0
|
||||
temperatureLevel: 0
|
||||
isLightningStorm: 0
|
||||
lightningInterval: 10
|
||||
auroraIntensity: 0
|
||||
weatherSFX: {fileID: 0}
|
||||
SpringDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SpringNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
SummerDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SummerNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
AutumnDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
AutumnNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
WinterDayAmbient: {fileID: 0}
|
||||
WinterNightAmbient: {fileID: 0}
|
||||
blurDistance: 100
|
||||
blurIntensity: 1
|
||||
blurSkyIntensity: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 695d153dea5324f4b88202798432bc98
|
||||
timeCreated: 1498052985
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+175
@@ -0,0 +1,175 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ad9e871a73fc09d488bc058f3b382b35, type: 3}
|
||||
m_Name: Cloudy 2 LQ
|
||||
m_EditorClassIdentifier:
|
||||
version: 1.9.0
|
||||
Name: Cloudy 2
|
||||
Spring: 1
|
||||
possibiltyInSpring: 38.9
|
||||
Summer: 1
|
||||
possibiltyInSummer: 49.3
|
||||
Autumn: 1
|
||||
possibiltyInAutumn: 41.8
|
||||
winter: 1
|
||||
possibiltyInWinter: 54.5
|
||||
cloudsConfig:
|
||||
ambientSkyColorIntensity: 1
|
||||
scatteringCoef: 0.15
|
||||
edgeDarkness: 2
|
||||
baseErosionIntensity: 0
|
||||
detailErosionIntensity: 0.2
|
||||
density: 1.96
|
||||
lightStepModifier: 0.5
|
||||
lightVariance: 0.5
|
||||
coverage: 0.5
|
||||
lightAbsorbtion: 0.4
|
||||
coverageType: 1
|
||||
raymarchingScale: 1
|
||||
cloudType: 0.518
|
||||
cirrusAlpha: 0
|
||||
cirrusCoverage: 0
|
||||
cirrusColorPow: 2.17
|
||||
flatCloudsDensity: 1.73
|
||||
flatCloudsAbsorbtion: 3.79
|
||||
flatCloudsDirectLightIntensity: 25.1
|
||||
flatCloudsAmbientLightIntensity: 1
|
||||
flatCloudsHGPhase: 0.9
|
||||
flatCoverage: 1.35
|
||||
particleLayer1Alpha: 0.891
|
||||
particleLayer1Brightness: 0.897
|
||||
particleLayer1ColorPow: 2
|
||||
particleLayer2Alpha: 0
|
||||
particleLayer2Brightness: 0.914
|
||||
particleLayer2ColorPow: 2
|
||||
particleCloudsOverwrite: 0
|
||||
fogStartDistance: 0
|
||||
fogDistance: 0
|
||||
fogDensity: 0.00015
|
||||
weatherSkyMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherLightMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherFogMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 0.9411765}
|
||||
key1: {r: 0, g: 0, b: 0, a: 0.88235295}
|
||||
key2: {r: 0.68235296, g: 0.7058824, b: 0.88235295, a: 0}
|
||||
key3: {r: 0.42352942, g: 0.54901963, b: 0.7490196, a: 0.4627451}
|
||||
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: 32198
|
||||
ctime2: 34695
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 31770
|
||||
atime2: 33981
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
volumeLightIntensity: 1
|
||||
shadowIntensityMod: 0
|
||||
heightFogDensity: 1
|
||||
SkyFogHeight: 2
|
||||
skyFogStart: 0
|
||||
SkyFogIntensity: 2
|
||||
FogScatteringIntensity: 1.1
|
||||
fogSunBlocking: 1
|
||||
moonIntensity: 1
|
||||
effectSystems: []
|
||||
WindStrenght: 0.275
|
||||
wetnessLevel: 0
|
||||
snowLevel: 0
|
||||
temperatureLevel: 0
|
||||
isLightningStorm: 0
|
||||
lightningInterval: 10
|
||||
auroraIntensity: 0
|
||||
weatherSFX: {fileID: 0}
|
||||
SpringDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SpringNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
SummerDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SummerNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
AutumnDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
AutumnNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
WinterDayAmbient: {fileID: 0}
|
||||
WinterNightAmbient: {fileID: 0}
|
||||
blurDistance: 100
|
||||
blurIntensity: 1
|
||||
blurSkyIntensity: 1
|
||||
sceneExposureMod: 1
|
||||
skyExposureMod: 1
|
||||
lightIntensityMod: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7dd60534cef9c0a449e12625f605e91b
|
||||
timeCreated: 1498052985
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
%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: ad9e871a73fc09d488bc058f3b382b35, type: 3}
|
||||
m_Name: Cloudy 3 LQ
|
||||
m_EditorClassIdentifier:
|
||||
version: 1.9.0
|
||||
Name: Cloudy 3
|
||||
Spring: 1
|
||||
possibiltyInSpring: 38.9
|
||||
Summer: 1
|
||||
possibiltyInSummer: 49.3
|
||||
Autumn: 1
|
||||
possibiltyInAutumn: 41.8
|
||||
winter: 1
|
||||
possibiltyInWinter: 54.5
|
||||
cloudsConfig:
|
||||
ambientSkyColorIntensity: 1
|
||||
scatteringCoef: 0.285
|
||||
edgeDarkness: 2
|
||||
baseErosionIntensity: 0
|
||||
detailErosionIntensity: 0.2
|
||||
density: 2
|
||||
lightStepModifier: 0.5
|
||||
lightVariance: 0.5
|
||||
coverage: 0.63
|
||||
lightAbsorbtion: 0.4
|
||||
coverageType: 1
|
||||
raymarchingScale: 1
|
||||
cloudType: 1
|
||||
cirrusAlpha: 0
|
||||
cirrusCoverage: 0
|
||||
cirrusColorPow: 1.8
|
||||
flatCloudsDensity: 4.58
|
||||
flatCloudsAbsorbtion: 4.39
|
||||
flatCloudsDirectLightIntensity: 32.9
|
||||
flatCloudsAmbientLightIntensity: 1.393
|
||||
flatCloudsHGPhase: 0.9
|
||||
flatCoverage: 1.431
|
||||
particleLayer1Alpha: 0
|
||||
particleLayer1Brightness: 0.939
|
||||
particleLayer1ColorPow: 2
|
||||
particleLayer2Alpha: 0.782
|
||||
particleLayer2Brightness: 1
|
||||
particleLayer2ColorPow: 2
|
||||
particleCloudsOverwrite: 0
|
||||
fogStartDistance: 0
|
||||
fogDistance: 0
|
||||
fogDensity: 0.0001
|
||||
weatherSkyMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherLightMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherFogMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 0.9411765}
|
||||
key1: {r: 0, g: 0, b: 0, a: 0.88235295}
|
||||
key2: {r: 0.68235296, g: 0.7058824, b: 0.88235295, a: 0}
|
||||
key3: {r: 0.42352942, g: 0.54901963, b: 0.7490196, a: 0.4627451}
|
||||
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: 32198
|
||||
ctime2: 34695
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 31770
|
||||
atime2: 33981
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
volumeLightIntensity: 1
|
||||
shadowIntensityMod: 0
|
||||
heightFogDensity: 1
|
||||
SkyFogHeight: 2
|
||||
skyFogStart: 0
|
||||
SkyFogIntensity: 1.5
|
||||
FogScatteringIntensity: 1.26
|
||||
fogSunBlocking: 1
|
||||
moonIntensity: 1
|
||||
effectSystems: []
|
||||
WindStrenght: 0.275
|
||||
wetnessLevel: 0
|
||||
snowLevel: 0
|
||||
temperatureLevel: 0
|
||||
isLightningStorm: 0
|
||||
lightningInterval: 10
|
||||
auroraIntensity: 0
|
||||
weatherSFX: {fileID: 0}
|
||||
SpringDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SpringNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
SummerDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SummerNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
AutumnDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
AutumnNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
WinterDayAmbient: {fileID: 0}
|
||||
WinterNightAmbient: {fileID: 0}
|
||||
blurDistance: 100
|
||||
blurIntensity: 1
|
||||
blurSkyIntensity: 1
|
||||
sceneExposureMod: 1
|
||||
skyExposureMod: 1
|
||||
lightIntensityMod: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 02a767023f9edf14bb0e92ce4a847ea9
|
||||
timeCreated: 1498052985
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+172
@@ -0,0 +1,172 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ad9e871a73fc09d488bc058f3b382b35, type: 3}
|
||||
m_Name: Cloudy 4 LQ
|
||||
m_EditorClassIdentifier:
|
||||
version: 1.9.0
|
||||
Name: Cloudy 4
|
||||
Spring: 1
|
||||
possibiltyInSpring: 50
|
||||
Summer: 1
|
||||
possibiltyInSummer: 50
|
||||
Autumn: 1
|
||||
possibiltyInAutumn: 50
|
||||
winter: 1
|
||||
possibiltyInWinter: 50
|
||||
cloudsConfig:
|
||||
ambientSkyColorIntensity: 1
|
||||
scatteringCoef: 0.137
|
||||
edgeDarkness: 2
|
||||
baseErosionIntensity: 0
|
||||
detailErosionIntensity: 0.2
|
||||
density: 1.72
|
||||
lightStepModifier: 0.5
|
||||
lightVariance: 0.5
|
||||
coverage: 2
|
||||
lightAbsorbtion: 0.4
|
||||
coverageType: 1
|
||||
raymarchingScale: 1
|
||||
cloudType: 0.638
|
||||
cirrusAlpha: 0
|
||||
cirrusCoverage: 0
|
||||
cirrusColorPow: 1
|
||||
flatCloudsDensity: 0.32
|
||||
flatCloudsAbsorbtion: 5
|
||||
flatCloudsDirectLightIntensity: 25.4
|
||||
flatCloudsAmbientLightIntensity: 0.296
|
||||
flatCloudsHGPhase: 0.9
|
||||
flatCoverage: 0.902
|
||||
particleLayer1Alpha: 1
|
||||
particleLayer1Brightness: 0.849
|
||||
particleLayer1ColorPow: 2.12
|
||||
particleLayer2Alpha: 0.77
|
||||
particleLayer2Brightness: 0.71
|
||||
particleLayer2ColorPow: 2
|
||||
particleCloudsOverwrite: 0
|
||||
fogStartDistance: 0
|
||||
fogDistance: 1000
|
||||
fogDensity: 0.00015
|
||||
weatherSkyMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherLightMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherFogMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 0.9411765}
|
||||
key1: {r: 0, g: 0, b: 0, a: 0.88235295}
|
||||
key2: {r: 0.68235296, g: 0.7058824, b: 0.88235295, a: 0}
|
||||
key3: {r: 0.42352942, g: 0.54901963, b: 0.7490196, a: 0.4627451}
|
||||
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: 32198
|
||||
ctime2: 34695
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 31770
|
||||
atime2: 33981
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
volumeLightIntensity: 1
|
||||
shadowIntensityMod: 0
|
||||
heightFogDensity: 0.65
|
||||
SkyFogHeight: 2
|
||||
skyFogStart: 0
|
||||
SkyFogIntensity: 1
|
||||
FogScatteringIntensity: 2.01
|
||||
fogSunBlocking: 0.25
|
||||
moonIntensity: 1
|
||||
effectSystems: []
|
||||
WindStrenght: 0.2
|
||||
wetnessLevel: 0
|
||||
snowLevel: 0
|
||||
temperatureLevel: 0
|
||||
isLightningStorm: 0
|
||||
lightningInterval: 10
|
||||
auroraIntensity: 0
|
||||
weatherSFX: {fileID: 0}
|
||||
SpringDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SpringNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
SummerDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SummerNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
AutumnDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
AutumnNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
WinterDayAmbient: {fileID: 0}
|
||||
WinterNightAmbient: {fileID: 0}
|
||||
blurDistance: 100
|
||||
blurIntensity: 1
|
||||
blurSkyIntensity: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 09dcd159b34c0f84680760c534ec912e
|
||||
timeCreated: 1498062042
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,165 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ad9e871a73fc09d488bc058f3b382b35, type: 3}
|
||||
m_Name: Foggy LQ
|
||||
m_EditorClassIdentifier:
|
||||
version: 1.9.0
|
||||
Name: Foggy 1
|
||||
Spring: 1
|
||||
possibiltyInSpring: 24
|
||||
Summer: 1
|
||||
possibiltyInSummer: 27.3
|
||||
Autumn: 1
|
||||
possibiltyInAutumn: 36.4
|
||||
winter: 1
|
||||
possibiltyInWinter: 21.5
|
||||
cloudsConfig:
|
||||
ambientTopColorBrightness: 1
|
||||
ambientbottomColorBrightness: 1
|
||||
skyBlending: 1
|
||||
alphaCoef: 3.5
|
||||
scatteringCoef: 0.1
|
||||
density: 2.51
|
||||
coverage: -1
|
||||
coverageHeight: 1.513
|
||||
raymarchingScale: 1
|
||||
cloudType: 0.8
|
||||
cirrusAlpha: 1
|
||||
cirrusCoverage: 0
|
||||
cirrusColorPow: 2.03
|
||||
flatAlpha: 0
|
||||
flatCoverage: 0
|
||||
flatSoftness: 0.75
|
||||
flatBrightness: 0.75
|
||||
flatColorPow: 1
|
||||
particleLayer1Alpha: 0.173
|
||||
particleLayer1Brightness: 0.75
|
||||
particleLayer1ColorPow: 2
|
||||
particleLayer2Alpha: 0.088
|
||||
particleLayer2Brightness: 0
|
||||
particleLayer2ColorPow: 2
|
||||
particleCloudsOverwrite: 0
|
||||
fogStartDistance: 0
|
||||
fogDistance: 1000
|
||||
fogDensity: 0.001
|
||||
weatherSkyMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherLightMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherFogMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0.058391012, g: 0.062175613, b: 0.07352942, a: 1}
|
||||
key1: {r: 0.1513841, g: 0.16500866, b: 0.20588237, a: 1}
|
||||
key2: {r: 0.7882353, g: 0.53333336, b: 0.25882354, a: 0.5176471}
|
||||
key3: {r: 0.7527573, g: 0.81579614, b: 0.8602941, a: 0}
|
||||
key4: {r: 0.85813147, g: 0.885133, b: 0.9117647, 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: 30146
|
||||
ctime2: 32575
|
||||
ctime3: 35273
|
||||
ctime4: 65535
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 32575
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 5
|
||||
m_NumAlphaKeys: 2
|
||||
volumeLightIntensity: 1
|
||||
heightFogDensity: 1.95
|
||||
SkyFogHeight: 0
|
||||
SkyFogIntensity: 2
|
||||
FogScatteringIntensity: 1
|
||||
fogSunBlocking: 0
|
||||
moonIntensity: 0
|
||||
effectSystems: []
|
||||
WindStrenght: 0.274
|
||||
wetnessLevel: 0
|
||||
snowLevel: 0
|
||||
temperatureLevel: 0
|
||||
isLightningStorm: 0
|
||||
lightningInterval: 10
|
||||
weatherSFX: {fileID: 0}
|
||||
SpringDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SpringNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
SummerDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
SummerNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
AutumnDayAmbient: {fileID: 8300000, guid: 9e4f9b704d4c6a545863111b7ab9bb51, type: 3}
|
||||
AutumnNightAmbient: {fileID: 8300000, guid: 421815712ee5317449eeef6d06fac4a3, type: 3}
|
||||
WinterDayAmbient: {fileID: 0}
|
||||
WinterNightAmbient: {fileID: 0}
|
||||
blurDistance: 100
|
||||
blurIntensity: 1
|
||||
blurSkyIntensity: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9cc4405defac59b4ca37aeecf9e84969
|
||||
timeCreated: 1498061417
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+178
@@ -0,0 +1,178 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ad9e871a73fc09d488bc058f3b382b35, type: 3}
|
||||
m_Name: Heavy Rain LQ
|
||||
m_EditorClassIdentifier:
|
||||
version: 1.9.0
|
||||
Name: Heavy Rain
|
||||
Spring: 1
|
||||
possibiltyInSpring: 100
|
||||
Summer: 1
|
||||
possibiltyInSummer: 52
|
||||
Autumn: 1
|
||||
possibiltyInAutumn: 100
|
||||
winter: 0
|
||||
possibiltyInWinter: 100
|
||||
cloudsConfig:
|
||||
ambientSkyColorIntensity: 1
|
||||
scatteringCoef: 0
|
||||
edgeDarkness: 2
|
||||
baseErosionIntensity: 0
|
||||
detailErosionIntensity: 0.2
|
||||
density: 2
|
||||
lightStepModifier: 0.5
|
||||
lightVariance: 0.5
|
||||
coverage: 2
|
||||
lightAbsorbtion: 0.4
|
||||
coverageType: 1
|
||||
raymarchingScale: 1
|
||||
cloudType: 1
|
||||
cirrusAlpha: 0
|
||||
cirrusCoverage: 0
|
||||
cirrusColorPow: 1
|
||||
flatCloudsDensity: 2.5
|
||||
flatCloudsAbsorbtion: 4.35
|
||||
flatCloudsDirectLightIntensity: 26.4
|
||||
flatCloudsAmbientLightIntensity: 0.291
|
||||
flatCloudsHGPhase: 0.9
|
||||
flatCoverage: 1.341
|
||||
particleLayer1Alpha: 0.5
|
||||
particleLayer1Brightness: 0.502
|
||||
particleLayer1ColorPow: 2
|
||||
particleLayer2Alpha: 0.217
|
||||
particleLayer2Brightness: 0.608
|
||||
particleLayer2ColorPow: 2
|
||||
particleCloudsOverwrite: 0
|
||||
fogStartDistance: 0
|
||||
fogDistance: 0
|
||||
fogDensity: 0.001
|
||||
weatherSkyMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0, g: 0, b: 0, a: 1}
|
||||
key2: {r: 0.21323532, g: 0.21323532, b: 0.21323532, a: 1}
|
||||
key3: {r: 0.41911763, g: 0.41911763, b: 0.41911763, a: 1}
|
||||
key4: {r: 0.5058824, g: 0.5058824, b: 0.5058824, 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: 32768
|
||||
ctime3: 65535
|
||||
ctime4: 65535
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 30554
|
||||
atime2: 32768
|
||||
atime3: 65535
|
||||
atime4: 65535
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
weatherLightMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 0}
|
||||
key1: {r: 0, g: 0, b: 0, a: 0.050980393}
|
||||
key2: {r: 0.43137255, g: 0.43137255, b: 0.43137255, a: 0.7647059}
|
||||
key3: {r: 0.42352942, g: 0.42352942, b: 0.42352942, a: 0.91764706}
|
||||
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: 32768
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29491
|
||||
atime2: 32768
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
weatherFogMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0, g: 0, b: 0, a: 1}
|
||||
key2: {r: 0.09019608, g: 0.09019608, b: 0.09019608, a: 0.9254902}
|
||||
key3: {r: 0.3602941, g: 0.3602941, b: 0.3602941, a: 0.9529412}
|
||||
key4: {r: 0.58823526, g: 0.58823526, b: 0.58823526, 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: 30412
|
||||
ctime2: 33981
|
||||
ctime3: 37201
|
||||
ctime4: 65535
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29491
|
||||
atime2: 32839
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 5
|
||||
m_NumAlphaKeys: 4
|
||||
volumeLightIntensity: 1
|
||||
shadowIntensityMod: 0
|
||||
heightFogDensity: 1.95
|
||||
SkyFogHeight: 0.31
|
||||
skyFogStart: 0
|
||||
SkyFogIntensity: 0.776
|
||||
FogScatteringIntensity: 1.1
|
||||
fogSunBlocking: 0
|
||||
moonIntensity: 0
|
||||
effectSystems:
|
||||
- prefab: {fileID: 1000010755747430, guid: eb00aa0efab163240b0100942689e7fd, type: 2}
|
||||
localPositionOffset: {x: 0, y: 25, z: 0}
|
||||
localRotationOffset: {x: -90, y: 0, z: -180}
|
||||
WindStrenght: 0.5
|
||||
wetnessLevel: 1
|
||||
snowLevel: 0
|
||||
temperatureLevel: 0
|
||||
isLightningStorm: 0
|
||||
lightningInterval: 10
|
||||
auroraIntensity: 0
|
||||
weatherSFX: {fileID: 8300000, guid: e60b9243727bbb5428fbb3e7f7fe44cd, type: 3}
|
||||
SpringDayAmbient: {fileID: 0}
|
||||
SpringNightAmbient: {fileID: 0}
|
||||
SummerDayAmbient: {fileID: 0}
|
||||
SummerNightAmbient: {fileID: 0}
|
||||
AutumnDayAmbient: {fileID: 0}
|
||||
AutumnNightAmbient: {fileID: 0}
|
||||
WinterDayAmbient: {fileID: 0}
|
||||
WinterNightAmbient: {fileID: 0}
|
||||
blurDistance: 100
|
||||
blurIntensity: 1
|
||||
blurSkyIntensity: 1
|
||||
sceneExposureMod: 1
|
||||
skyExposureMod: 1
|
||||
lightIntensityMod: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ccf5b124f0c8caf44bd9f900ac2d75c5
|
||||
timeCreated: 1498009914
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
%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: ad9e871a73fc09d488bc058f3b382b35, type: 3}
|
||||
m_Name: Heavy Snow LQ
|
||||
m_EditorClassIdentifier:
|
||||
version: 1.9.0
|
||||
Name: Heavy Snow
|
||||
Spring: 0
|
||||
possibiltyInSpring: 50
|
||||
Summer: 0
|
||||
possibiltyInSummer: 50
|
||||
Autumn: 0
|
||||
possibiltyInAutumn: 50
|
||||
winter: 1
|
||||
possibiltyInWinter: 80.2
|
||||
cloudsConfig:
|
||||
ambientSkyColorIntensity: 1
|
||||
scatteringCoef: 0.285
|
||||
edgeDarkness: 2
|
||||
baseErosionIntensity: 0
|
||||
detailErosionIntensity: 0.2
|
||||
density: 1.75
|
||||
lightStepModifier: 0.5
|
||||
lightVariance: 0.5
|
||||
coverage: 1.78
|
||||
lightAbsorbtion: 0.4
|
||||
coverageType: 1
|
||||
raymarchingScale: 1
|
||||
cloudType: 0.545
|
||||
cirrusAlpha: 0
|
||||
cirrusCoverage: 0
|
||||
cirrusColorPow: 1
|
||||
flatCloudsDensity: 2
|
||||
flatCloudsAbsorbtion: 5
|
||||
flatCloudsDirectLightIntensity: 40
|
||||
flatCloudsAmbientLightIntensity: 1
|
||||
flatCloudsHGPhase: 0.9
|
||||
flatCoverage: 1.5
|
||||
particleLayer1Alpha: 0.118
|
||||
particleLayer1Brightness: 0.395
|
||||
particleLayer1ColorPow: 2
|
||||
particleLayer2Alpha: 0.333
|
||||
particleLayer2Brightness: 1
|
||||
particleLayer2ColorPow: 2
|
||||
particleCloudsOverwrite: 0
|
||||
fogStartDistance: 0
|
||||
fogDistance: 1000
|
||||
fogDensity: 0.002
|
||||
weatherSkyMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0, g: 0, b: 0, a: 1}
|
||||
key2: {r: 0.5147059, g: 0.5147059, b: 0.5147059, a: 1}
|
||||
key3: {r: 0.6911765, g: 0.6911765, b: 0.6911765, a: 1}
|
||||
key4: {r: 0.5, g: 0.5, b: 0.5, 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: 29298
|
||||
ctime2: 42983
|
||||
ctime3: 65535
|
||||
ctime4: 65535
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29698
|
||||
atime2: 32189
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
weatherLightMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 0}
|
||||
key1: {r: 0, g: 0, b: 0, a: 0.050980393}
|
||||
key2: {r: 0.62352943, g: 0.62352943, b: 0.62352943, a: 0.39607844}
|
||||
key3: {r: 0.6156863, g: 0.6156863, b: 0.6156863, a: 0.58431375}
|
||||
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: 32768
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29491
|
||||
atime2: 32839
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
weatherFogMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 0}
|
||||
key1: {r: 0, g: 0, b: 0, a: 0.050980393}
|
||||
key2: {r: 0.5058824, g: 0.5058824, b: 0.5058824, a: 0.7647059}
|
||||
key3: {r: 0.5058824, g: 0.5058824, b: 0.5058824, a: 0.91764706}
|
||||
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: 32768
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29491
|
||||
atime2: 32768
|
||||
atime3: 65535
|
||||
atime4: 65535
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
volumeLightIntensity: 1
|
||||
shadowIntensityMod: 0
|
||||
heightFogDensity: 1.55
|
||||
SkyFogHeight: 0.62
|
||||
skyFogStart: 0
|
||||
SkyFogIntensity: 1
|
||||
FogScatteringIntensity: 1.09
|
||||
fogSunBlocking: 0
|
||||
moonIntensity: 0
|
||||
effectSystems:
|
||||
- prefab: {fileID: 1000012464414300, guid: 5ed4ce1f9abfa944fb0462b08c373c93, type: 3}
|
||||
localPositionOffset: {x: 0, y: 20, z: 0}
|
||||
localRotationOffset: {x: -90, y: 0, z: -180}
|
||||
WindStrenght: 0.203
|
||||
wetnessLevel: 0
|
||||
snowLevel: 1
|
||||
temperatureLevel: 0
|
||||
isLightningStorm: 0
|
||||
lightningInterval: 10
|
||||
auroraIntensity: 0
|
||||
weatherSFX: {fileID: 8300000, guid: 8e4b0e73f4e66704c8c3cf838244d48e, type: 3}
|
||||
SpringDayAmbient: {fileID: 0}
|
||||
SpringNightAmbient: {fileID: 0}
|
||||
SummerDayAmbient: {fileID: 0}
|
||||
SummerNightAmbient: {fileID: 0}
|
||||
AutumnDayAmbient: {fileID: 0}
|
||||
AutumnNightAmbient: {fileID: 0}
|
||||
WinterDayAmbient: {fileID: 0}
|
||||
WinterNightAmbient: {fileID: 0}
|
||||
blurDistance: 100
|
||||
blurIntensity: 1
|
||||
blurSkyIntensity: 1
|
||||
sceneExposureMod: 1
|
||||
skyExposureMod: 1
|
||||
lightIntensityMod: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ceb72e6f43f9847478d2fe9f1a9206df
|
||||
timeCreated: 1498062042
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+178
@@ -0,0 +1,178 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ad9e871a73fc09d488bc058f3b382b35, type: 3}
|
||||
m_Name: Light Rain LQ
|
||||
m_EditorClassIdentifier:
|
||||
version: 1.9.0
|
||||
Name: Light Rain
|
||||
Spring: 1
|
||||
possibiltyInSpring: 100
|
||||
Summer: 1
|
||||
possibiltyInSummer: 52
|
||||
Autumn: 1
|
||||
possibiltyInAutumn: 100
|
||||
winter: 0
|
||||
possibiltyInWinter: 100
|
||||
cloudsConfig:
|
||||
ambientSkyColorIntensity: 1
|
||||
scatteringCoef: 0.081
|
||||
edgeDarkness: 2
|
||||
baseErosionIntensity: 0
|
||||
detailErosionIntensity: 0.2
|
||||
density: 1.918
|
||||
lightStepModifier: 0.5
|
||||
lightVariance: 0.5
|
||||
coverage: 1.29
|
||||
lightAbsorbtion: 0.4
|
||||
coverageType: 1
|
||||
raymarchingScale: 1
|
||||
cloudType: 1
|
||||
cirrusAlpha: 0
|
||||
cirrusCoverage: 0
|
||||
cirrusColorPow: 1
|
||||
flatCloudsDensity: 2
|
||||
flatCloudsAbsorbtion: 3.34
|
||||
flatCloudsDirectLightIntensity: 2.9
|
||||
flatCloudsAmbientLightIntensity: 1
|
||||
flatCloudsHGPhase: 0.9
|
||||
flatCoverage: 1.521
|
||||
particleLayer1Alpha: 0.5
|
||||
particleLayer1Brightness: 0.725
|
||||
particleLayer1ColorPow: 2
|
||||
particleLayer2Alpha: 0.626
|
||||
particleLayer2Brightness: 0.355
|
||||
particleLayer2ColorPow: 2
|
||||
particleCloudsOverwrite: 0
|
||||
fogStartDistance: 0
|
||||
fogDistance: 0
|
||||
fogDensity: 0.0002
|
||||
weatherSkyMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0, g: 0, b: 0, a: 1}
|
||||
key2: {r: 0.5147059, g: 0.5147059, b: 0.5147059, a: 1}
|
||||
key3: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
key4: {r: 0.9632353, g: 0.9632353, b: 0.9632353, 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: 29298
|
||||
ctime2: 42983
|
||||
ctime3: 65535
|
||||
ctime4: 65535
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29698
|
||||
atime2: 32189
|
||||
atime3: 65535
|
||||
atime4: 65535
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
weatherLightMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 0}
|
||||
key1: {r: 0, g: 0, b: 0, a: 0.050980393}
|
||||
key2: {r: 0.5058824, g: 0.5058824, b: 0.5058824, a: 0.7647059}
|
||||
key3: {r: 0.5058824, g: 0.5058824, b: 0.5058824, a: 0.91764706}
|
||||
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: 32768
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29491
|
||||
atime2: 32768
|
||||
atime3: 65535
|
||||
atime4: 65535
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
weatherFogMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0, g: 0, b: 0, a: 1}
|
||||
key2: {r: 0.29411766, g: 0.29411766, b: 0.29411766, a: 0.89411765}
|
||||
key3: {r: 0.5058824, g: 0.5058824, b: 0.5058824, a: 0.9019608}
|
||||
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: 30412
|
||||
ctime2: 34695
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29491
|
||||
atime2: 33124
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
volumeLightIntensity: 1
|
||||
shadowIntensityMod: 0
|
||||
heightFogDensity: 1
|
||||
SkyFogHeight: 0.92
|
||||
skyFogStart: 0
|
||||
SkyFogIntensity: 0.95
|
||||
FogScatteringIntensity: 1
|
||||
fogSunBlocking: 0
|
||||
moonIntensity: 0.1
|
||||
effectSystems:
|
||||
- prefab: {fileID: 1000011296922826, guid: 5d00af152b0756b4d958edc9145555c4, type: 2}
|
||||
localPositionOffset: {x: 0, y: 25, z: 0}
|
||||
localRotationOffset: {x: -90, y: 0, z: -180}
|
||||
WindStrenght: 0.3
|
||||
wetnessLevel: 0.5
|
||||
snowLevel: 0
|
||||
temperatureLevel: 0
|
||||
isLightningStorm: 0
|
||||
lightningInterval: 10
|
||||
auroraIntensity: 0
|
||||
weatherSFX: {fileID: 8300000, guid: 727492bb50fe32d4eaa7cef624c5fd28, type: 3}
|
||||
SpringDayAmbient: {fileID: 0}
|
||||
SpringNightAmbient: {fileID: 0}
|
||||
SummerDayAmbient: {fileID: 0}
|
||||
SummerNightAmbient: {fileID: 0}
|
||||
AutumnDayAmbient: {fileID: 0}
|
||||
AutumnNightAmbient: {fileID: 0}
|
||||
WinterDayAmbient: {fileID: 0}
|
||||
WinterNightAmbient: {fileID: 0}
|
||||
blurDistance: 100
|
||||
blurIntensity: 1
|
||||
blurSkyIntensity: 1
|
||||
sceneExposureMod: 1
|
||||
skyExposureMod: 1
|
||||
lightIntensityMod: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 26c7a96b0f26ebd4f80b221f71d8411c
|
||||
timeCreated: 1498009914
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+178
@@ -0,0 +1,178 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ad9e871a73fc09d488bc058f3b382b35, type: 3}
|
||||
m_Name: Light Snow LQ
|
||||
m_EditorClassIdentifier:
|
||||
version: 1.9.0
|
||||
Name: Light Snow
|
||||
Spring: 0
|
||||
possibiltyInSpring: 50
|
||||
Summer: 0
|
||||
possibiltyInSummer: 50
|
||||
Autumn: 0
|
||||
possibiltyInAutumn: 50
|
||||
winter: 1
|
||||
possibiltyInWinter: 80.2
|
||||
cloudsConfig:
|
||||
ambientSkyColorIntensity: 1
|
||||
scatteringCoef: 0.137
|
||||
edgeDarkness: 2
|
||||
baseErosionIntensity: 0
|
||||
detailErosionIntensity: 0.2
|
||||
density: 1.72
|
||||
lightStepModifier: 0.5
|
||||
lightVariance: 0.5
|
||||
coverage: 2
|
||||
lightAbsorbtion: 0.4
|
||||
coverageType: 1
|
||||
raymarchingScale: 1
|
||||
cloudType: 0.638
|
||||
cirrusAlpha: 0
|
||||
cirrusCoverage: 0
|
||||
cirrusColorPow: 1
|
||||
flatCloudsDensity: 1.21
|
||||
flatCloudsAbsorbtion: 5
|
||||
flatCloudsDirectLightIntensity: 35.6
|
||||
flatCloudsAmbientLightIntensity: 1
|
||||
flatCloudsHGPhase: 0.9
|
||||
flatCoverage: 1.148
|
||||
particleLayer1Alpha: 0.104
|
||||
particleLayer1Brightness: 0.678
|
||||
particleLayer1ColorPow: 2
|
||||
particleLayer2Alpha: 0.759
|
||||
particleLayer2Brightness: 0.2
|
||||
particleLayer2ColorPow: 2
|
||||
particleCloudsOverwrite: 0
|
||||
fogStartDistance: 0
|
||||
fogDistance: 1000
|
||||
fogDensity: 0.00015
|
||||
weatherSkyMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0, g: 0, b: 0, a: 1}
|
||||
key2: {r: 0.29411763, g: 0.1521298, b: 0, a: 1}
|
||||
key3: {r: 0.61764705, g: 0.61764705, b: 0.61764705, a: 0.6784314}
|
||||
key4: {r: 0.7205882, g: 0.7205882, b: 0.7205882, 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: 29298
|
||||
ctime2: 32382
|
||||
ctime3: 38165
|
||||
ctime4: 65535
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29698
|
||||
atime2: 32189
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 5
|
||||
m_NumAlphaKeys: 4
|
||||
weatherLightMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
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
|
||||
weatherFogMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 0}
|
||||
key1: {r: 1, g: 1, b: 1, a: 0}
|
||||
key2: {r: 0.68235296, g: 0.7058824, b: 0.88235295, a: 0}
|
||||
key3: {r: 0.42352942, g: 0.54901963, b: 0.7490196, a: 0.7058824}
|
||||
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: 34695
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 33981
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
volumeLightIntensity: 1
|
||||
shadowIntensityMod: 0
|
||||
heightFogDensity: 0.65
|
||||
SkyFogHeight: 0.715
|
||||
skyFogStart: 0
|
||||
SkyFogIntensity: 1.055
|
||||
FogScatteringIntensity: 1.12
|
||||
fogSunBlocking: 0.25
|
||||
moonIntensity: 1
|
||||
effectSystems:
|
||||
- prefab: {fileID: 1000011163096958, guid: 07951236abb2b0e4b83fef1afffeab6d, type: 2}
|
||||
localPositionOffset: {x: 0, y: 20, z: 0}
|
||||
localRotationOffset: {x: -90, y: 0, z: -180}
|
||||
WindStrenght: 0.16
|
||||
wetnessLevel: 0
|
||||
snowLevel: 0.508
|
||||
temperatureLevel: 0
|
||||
isLightningStorm: 0
|
||||
lightningInterval: 10
|
||||
auroraIntensity: 0
|
||||
weatherSFX: {fileID: 0}
|
||||
SpringDayAmbient: {fileID: 0}
|
||||
SpringNightAmbient: {fileID: 0}
|
||||
SummerDayAmbient: {fileID: 0}
|
||||
SummerNightAmbient: {fileID: 0}
|
||||
AutumnDayAmbient: {fileID: 0}
|
||||
AutumnNightAmbient: {fileID: 0}
|
||||
WinterDayAmbient: {fileID: 0}
|
||||
WinterNightAmbient: {fileID: 0}
|
||||
blurDistance: 100
|
||||
blurIntensity: 1
|
||||
blurSkyIntensity: 1
|
||||
sceneExposureMod: 1
|
||||
skyExposureMod: 1
|
||||
lightIntensityMod: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8801504e206e39747885e4e827e9c210
|
||||
timeCreated: 1498062042
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,178 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ad9e871a73fc09d488bc058f3b382b35, type: 3}
|
||||
m_Name: Storm LQ
|
||||
m_EditorClassIdentifier:
|
||||
version: 1.9.0
|
||||
Name: Storm
|
||||
Spring: 1
|
||||
possibiltyInSpring: 69.3
|
||||
Summer: 1
|
||||
possibiltyInSummer: 52
|
||||
Autumn: 1
|
||||
possibiltyInAutumn: 57.6
|
||||
winter: 0
|
||||
possibiltyInWinter: 100
|
||||
cloudsConfig:
|
||||
ambientSkyColorIntensity: 1
|
||||
scatteringCoef: 0.141
|
||||
edgeDarkness: 2
|
||||
baseErosionIntensity: 0
|
||||
detailErosionIntensity: 0.2
|
||||
density: 1.386
|
||||
lightStepModifier: 0.5
|
||||
lightVariance: 0.5
|
||||
coverage: 1.62
|
||||
lightAbsorbtion: 0.4
|
||||
coverageType: 1
|
||||
raymarchingScale: 1
|
||||
cloudType: 1
|
||||
cirrusAlpha: 0
|
||||
cirrusCoverage: 0
|
||||
cirrusColorPow: 1
|
||||
flatCloudsDensity: 3.19
|
||||
flatCloudsAbsorbtion: 2.5
|
||||
flatCloudsDirectLightIntensity: 35.5
|
||||
flatCloudsAmbientLightIntensity: 1
|
||||
flatCloudsHGPhase: 0.9
|
||||
flatCoverage: 1.759
|
||||
particleLayer1Alpha: 0.15
|
||||
particleLayer1Brightness: 0.034
|
||||
particleLayer1ColorPow: 2
|
||||
particleLayer2Alpha: 0.537
|
||||
particleLayer2Brightness: 0.361
|
||||
particleLayer2ColorPow: 2
|
||||
particleCloudsOverwrite: 0
|
||||
fogStartDistance: 0
|
||||
fogDistance: 0
|
||||
fogDensity: 0.0005
|
||||
weatherSkyMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0, g: 0, b: 0, a: 1}
|
||||
key2: {r: 0.1764706, g: 0.1764706, b: 0.1764706, a: 1}
|
||||
key3: {r: 0.32156864, g: 0.32156864, b: 0.32156864, a: 1}
|
||||
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: 30412
|
||||
ctime2: 34695
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29491
|
||||
atime2: 32839
|
||||
atime3: 65535
|
||||
atime4: 65535
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
weatherLightMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 0}
|
||||
key1: {r: 0, g: 0, b: 0, a: 0.050980393}
|
||||
key2: {r: 0.29803923, g: 0.29803923, b: 0.29803923, a: 0.7647059}
|
||||
key3: {r: 0.30588236, g: 0.30588236, b: 0.30588236, a: 0.91764706}
|
||||
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: 32768
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29491
|
||||
atime2: 32768
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
weatherFogMod:
|
||||
serializedVersion: 2
|
||||
key0: {r: 0, g: 0, b: 0, a: 1}
|
||||
key1: {r: 0, g: 0, b: 0, a: 1}
|
||||
key2: {r: 0.11764705, g: 0.11764705, b: 0.11764705, a: 0.9254902}
|
||||
key3: {r: 0.14901961, g: 0.14901961, b: 0.14901961, a: 0.9490196}
|
||||
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: 30412
|
||||
ctime2: 34695
|
||||
ctime3: 65535
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 29491
|
||||
atime2: 32839
|
||||
atime3: 65535
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 4
|
||||
m_NumAlphaKeys: 4
|
||||
volumeLightIntensity: 1
|
||||
shadowIntensityMod: 0
|
||||
heightFogDensity: 2.1
|
||||
SkyFogHeight: 0.131
|
||||
skyFogStart: 0
|
||||
SkyFogIntensity: 1.289
|
||||
FogScatteringIntensity: 1
|
||||
fogSunBlocking: 0
|
||||
moonIntensity: 0
|
||||
effectSystems:
|
||||
- prefab: {fileID: 1000010197746070, guid: 35b265635b434fb4589078490426250b, type: 2}
|
||||
localPositionOffset: {x: 0, y: 25, z: 0}
|
||||
localRotationOffset: {x: -90, y: 0, z: -180}
|
||||
WindStrenght: 0.635
|
||||
wetnessLevel: 1
|
||||
snowLevel: 0
|
||||
temperatureLevel: 0
|
||||
isLightningStorm: 1
|
||||
lightningInterval: 10
|
||||
auroraIntensity: 0
|
||||
weatherSFX: {fileID: 8300000, guid: f31058b86e6160c4ab736a2b8c210219, type: 3}
|
||||
SpringDayAmbient: {fileID: 0}
|
||||
SpringNightAmbient: {fileID: 0}
|
||||
SummerDayAmbient: {fileID: 0}
|
||||
SummerNightAmbient: {fileID: 0}
|
||||
AutumnDayAmbient: {fileID: 0}
|
||||
AutumnNightAmbient: {fileID: 0}
|
||||
WinterDayAmbient: {fileID: 0}
|
||||
WinterNightAmbient: {fileID: 0}
|
||||
blurDistance: 100
|
||||
blurIntensity: 1
|
||||
blurSkyIntensity: 1
|
||||
sceneExposureMod: 1
|
||||
skyExposureMod: 1
|
||||
lightIntensityMod: 1
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea18ef5cc545f9248864755cb92e45b4
|
||||
timeCreated: 1498009914
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e0926854e385d234e91273a82daa395d
|
||||
folderAsset: yes
|
||||
timeCreated: 1532263754
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eef9d2c092d3be646bc82ba4708c8c2b
|
||||
folderAsset: yes
|
||||
timeCreated: 1532263760
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+181
@@ -0,0 +1,181 @@
|
||||
|
||||
Shader "Enviro/Lite/EnviroFogRendering"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_MainTex("Base (RGB)", Any) = "white" {}
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
Pass
|
||||
{
|
||||
ZTest Always Cull Off ZWrite Off Fog { Mode Off }
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 3.0
|
||||
|
||||
// Start: LuxWater
|
||||
#pragma multi_compile __ LUXWATER_DEFERREDFOG
|
||||
|
||||
#if defined(LUXWATER_DEFERREDFOG)
|
||||
sampler2D _UnderWaterMask;
|
||||
float4 _LuxUnderWaterDeferredFogParams; // x: IsInsideWatervolume?, y: BelowWaterSurface shift, z: EdgeBlend
|
||||
#endif
|
||||
// End: LuxWater
|
||||
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
#include "../../../Core/Resources/Shaders/Core/EnviroFogCore.cginc"
|
||||
|
||||
UNITY_DECLARE_SCREENSPACE_TEXTURE(_MainTex);
|
||||
uniform float4 _MainTex_TexelSize;
|
||||
UNITY_DECLARE_DEPTH_TEXTURE(_CameraDepthTexture);
|
||||
uniform float4x4 _LeftWorldFromView;
|
||||
uniform float4x4 _RightWorldFromView;
|
||||
uniform float4x4 _LeftViewFromScreen;
|
||||
uniform float4x4 _RightViewFromScreen;
|
||||
|
||||
struct appdata_t
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float3 texcoord : TEXCOORD0;
|
||||
UNITY_VERTEX_INPUT_INSTANCE_ID
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float3 texcoord : TEXCOORD0;
|
||||
float3 sky : TEXCOORD1;
|
||||
float2 uv : TEXCOORD2;
|
||||
UNITY_VERTEX_OUTPUT_STEREO
|
||||
};
|
||||
|
||||
|
||||
v2f vert(appdata_img v)
|
||||
{
|
||||
v2f o;
|
||||
UNITY_SETUP_INSTANCE_ID(v); //Insert
|
||||
UNITY_INITIALIZE_OUTPUT(v2f, o); //Insert
|
||||
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); //Insert
|
||||
o.pos = v.vertex * float4(2, 2, 1, 1) + float4(-1, -1, 0, 0);
|
||||
o.uv.xy = v.texcoord.xy;
|
||||
#if UNITY_UV_STARTS_AT_TOP
|
||||
if (_MainTex_TexelSize.y > 0)
|
||||
o.uv.y = 1 - o.uv.y;
|
||||
#endif
|
||||
o.sky.x = saturate(_SunDir.y + 0.25);
|
||||
o.sky.y = saturate(clamp(1.0 - _SunDir.y, 0.0, 0.5));
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : SV_Target
|
||||
{
|
||||
|
||||
UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i);
|
||||
|
||||
float rawDepth = SAMPLE_DEPTH_TEXTURE(_CameraDepthTexture, UnityStereoTransformScreenSpaceTex(i.uv));
|
||||
float dpth = Linear01Depth(rawDepth);
|
||||
|
||||
float4x4 proj, eyeToWorld;
|
||||
if (unity_StereoEyeIndex == 0)
|
||||
{
|
||||
proj = _LeftViewFromScreen;
|
||||
eyeToWorld = _LeftWorldFromView;
|
||||
}
|
||||
else
|
||||
{
|
||||
proj = _RightViewFromScreen;
|
||||
eyeToWorld = _RightWorldFromView;
|
||||
}
|
||||
|
||||
//bit of matrix math to take the screen space coord (u,v,depth) and transform to world space
|
||||
float2 uvClip = i.uv * 2.0 - 1.0;
|
||||
float clipDepth = rawDepth; // Fix for OpenGl Core thanks to Lars Bertram
|
||||
clipDepth = (UNITY_NEAR_CLIP_VALUE < 0) ? clipDepth * 2 - 1 : clipDepth;
|
||||
float4 clipPos = float4(uvClip, clipDepth, 1.0);
|
||||
float4 viewPos = mul(proj, clipPos); // inverse projection by clip position
|
||||
viewPos /= viewPos.w; // perspective division
|
||||
|
||||
float4 wsPos = float4(mul(eyeToWorld, viewPos).xyz, 1);
|
||||
float4 wsDir = wsPos - float4(_WorldSpaceCameraPos, 0);
|
||||
|
||||
float3 viewDir = normalize(wsDir);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
half fogFac = 0;
|
||||
float4 finalFog = 0;
|
||||
float g = _DistanceParams.x;
|
||||
half gAdd = 0;
|
||||
|
||||
if (_EnviroParams.z > 0)
|
||||
{
|
||||
gAdd = ComputeHalfSpace (wsDir);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//Scene
|
||||
if (dpth < 0.99999)
|
||||
{
|
||||
// Calculate Distance Fog
|
||||
if (_EnviroParams.y > 0)
|
||||
{
|
||||
g += ComputeDistance(wsDir, dpth);
|
||||
g *= _distanceFogIntensity;
|
||||
}
|
||||
|
||||
// AAdd Height Fog
|
||||
g += gAdd;
|
||||
|
||||
// Compute fog amount
|
||||
fogFac = ComputeFogFactor(max(0.0, g));
|
||||
fogFac = lerp(_maximumFogDensity, 1.0f, fogFac);
|
||||
|
||||
finalFog = ComputeScatteringScene(viewDir, i.sky.xy);
|
||||
|
||||
}
|
||||
else //SKY
|
||||
{
|
||||
float f = saturate(_EnviroSkyFog.x * (viewDir.y + _EnviroSkyFog.z));
|
||||
f = pow(f, _EnviroSkyFog.y);
|
||||
fogFac = (clamp(f, 0, 1));
|
||||
finalFog = ComputeScatteringScene(viewDir, i.sky.xy);
|
||||
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// Start: LuxWater
|
||||
#if defined(LUXWATER_DEFERREDFOG)
|
||||
half4 fogMask = tex2D(_UnderWaterMask, UnityStereoTransformScreenSpaceTex(i.uv));
|
||||
float watersurfacefrombelow = DecodeFloatRG(fogMask.ba);
|
||||
|
||||
// Get distance and lower it a bit in order to handle edge blending artifacts (edge blended parts would not get ANY fog)
|
||||
float dist = (watersurfacefrombelow - dpth) + _LuxUnderWaterDeferredFogParams.y * _ProjectionParams.w;
|
||||
// Fade fog from above water to below water
|
||||
float fogFactor = saturate(1.0 + _ProjectionParams.z * _LuxUnderWaterDeferredFogParams.z * dist);
|
||||
// Clamp above result to where water is actually rendered
|
||||
fogFactor = (fogMask.r == 1) ? fogFactor : 1.0;
|
||||
// Mask fog on underwarter parts - only if we are inside a volume (bool... :( )
|
||||
if (_LuxUnderWaterDeferredFogParams.x) {
|
||||
fogFactor *= saturate(1.0 - fogMask.g * 8.0);
|
||||
if (dist < -_ProjectionParams.w * 4 && fogMask.r == 0 && fogMask.g < 1.0) {
|
||||
fogFactor = 1.0;
|
||||
}
|
||||
}
|
||||
// Tweak fog factor
|
||||
fogFac = lerp(1.0, fogFac, fogFactor);
|
||||
#endif
|
||||
// End: LuxWater
|
||||
|
||||
float4 source = UNITY_SAMPLE_SCREENSPACE_TEXTURE(_MainTex, UnityStereoTransformScreenSpaceTex(i.uv));
|
||||
return lerp (finalFog, source, fogFac);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
Fallback Off
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5b0160f40adf130428015ffb5bfdb8a5
|
||||
timeCreated: 1459178236
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
|
||||
Shader "Enviro/Lite/EnviroFogRenderingSimple"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_MainTex("Base (RGB)", Any) = "white" {}
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
Pass
|
||||
{
|
||||
ZTest Always Cull Off ZWrite Off Fog { Mode Off }
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 2.0
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
UNITY_DECLARE_SCREENSPACE_TEXTURE(_MainTex);
|
||||
uniform float4 _MainTex_TexelSize;
|
||||
UNITY_DECLARE_DEPTH_TEXTURE(_CameraDepthTexture);
|
||||
|
||||
uniform float4x4 _LeftWorldFromView;
|
||||
uniform float4x4 _RightWorldFromView;
|
||||
uniform float4x4 _LeftViewFromScreen;
|
||||
uniform float4x4 _RightViewFromScreen;
|
||||
uniform float4 _EnviroParams;
|
||||
uniform float4 _DistanceParams;
|
||||
uniform int4 _SceneFogMode;
|
||||
uniform float4 _SceneFogParams;
|
||||
uniform half _distanceFogIntensity;
|
||||
uniform float4 _EnviroSkyFog; // x = _SkyFogHeight, y = _SkyFogIntensity, z = _SkyFogStart, w = _HeightFogIntensity
|
||||
uniform float _maximumFogDensity;
|
||||
uniform float _lightning;
|
||||
|
||||
struct appdata_t
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float3 texcoord : TEXCOORD0;
|
||||
UNITY_VERTEX_INPUT_INSTANCE_ID
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float3 texcoord : TEXCOORD0;
|
||||
float2 uv : TEXCOORD1;
|
||||
UNITY_VERTEX_OUTPUT_STEREO
|
||||
};
|
||||
|
||||
|
||||
v2f vert(appdata_img v)
|
||||
{
|
||||
v2f o;
|
||||
UNITY_SETUP_INSTANCE_ID(v); //Insert
|
||||
UNITY_INITIALIZE_OUTPUT(v2f, o); //Insert
|
||||
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); //Insert
|
||||
o.pos = v.vertex * float4(2, 2, 1, 1) + float4(-1, -1, 0, 0);
|
||||
o.uv.xy = v.texcoord.xy;
|
||||
#if UNITY_UV_STARTS_AT_TOP
|
||||
if (_MainTex_TexelSize.y > 0)
|
||||
o.uv.y = 1 - o.uv.y;
|
||||
#endif
|
||||
return o;
|
||||
}
|
||||
|
||||
half ComputeFogFactor(float coord)
|
||||
{
|
||||
float fogFac = 0.0;
|
||||
|
||||
if (_SceneFogMode.x == 1) // linear
|
||||
{
|
||||
fogFac = coord * _SceneFogParams.z + _SceneFogParams.w;
|
||||
}
|
||||
|
||||
if (_SceneFogMode.x >= 2) // exp
|
||||
{
|
||||
fogFac = _SceneFogParams.y * coord; fogFac = exp2(-fogFac);
|
||||
}
|
||||
|
||||
return saturate(fogFac);
|
||||
}
|
||||
|
||||
// Distance fog
|
||||
float ComputeDistance(float3 camDir, float zdepth)
|
||||
{
|
||||
float dist;
|
||||
dist = length(camDir);
|
||||
dist -= _ProjectionParams.y;
|
||||
return dist;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : SV_Target
|
||||
{
|
||||
UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i);
|
||||
|
||||
float rawDepth = SAMPLE_DEPTH_TEXTURE(_CameraDepthTexture, UnityStereoTransformScreenSpaceTex(i.uv));
|
||||
float dpth = Linear01Depth(rawDepth);
|
||||
|
||||
float4x4 proj, eyeToWorld;
|
||||
|
||||
if (unity_StereoEyeIndex == 0)
|
||||
{
|
||||
proj = _LeftViewFromScreen;
|
||||
eyeToWorld = _LeftWorldFromView;
|
||||
}
|
||||
else
|
||||
{
|
||||
proj = _RightViewFromScreen;
|
||||
eyeToWorld = _RightWorldFromView;
|
||||
}
|
||||
|
||||
//bit of matrix math to take the screen space coord (u,v,depth) and transform to world space
|
||||
float2 uvClip = i.uv * 2.0 - 1.0;
|
||||
float clipDepth = rawDepth; // Fix for OpenGl Core thanks to Lars Bertram
|
||||
clipDepth = (UNITY_NEAR_CLIP_VALUE < 0) ? clipDepth * 2 - 1 : clipDepth;
|
||||
float4 clipPos = float4(uvClip, clipDepth, 1.0);
|
||||
float4 viewPos = mul(proj, clipPos); // inverse projection by clip position
|
||||
viewPos /= viewPos.w; // perspective division
|
||||
|
||||
float4 wsPos = float4(mul(eyeToWorld, viewPos).xyz, 1);
|
||||
float4 wsDir = wsPos - float4(_WorldSpaceCameraPos, 0);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
half fogFac = 0;
|
||||
float4 finalFog = unity_FogColor;
|
||||
float g = _DistanceParams.x;
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//Scene
|
||||
if (dpth < 0.99999)
|
||||
{
|
||||
// Calculate Distance Fog
|
||||
if (_EnviroParams.y > 0)
|
||||
{
|
||||
g += ComputeDistance(wsDir,dpth);
|
||||
g *= _distanceFogIntensity;
|
||||
}
|
||||
|
||||
// Compute fog amount
|
||||
fogFac = ComputeFogFactor(max(0.0, g));
|
||||
fogFac = lerp(_maximumFogDensity, 1.0f, fogFac);
|
||||
}
|
||||
else //SKY
|
||||
{
|
||||
float3 viewDir = normalize(wsDir);
|
||||
float f = saturate(_EnviroSkyFog.x * (viewDir.y + _EnviroSkyFog.z));
|
||||
f = pow(f, _EnviroSkyFog.y);
|
||||
fogFac = clamp(f, 0, 1);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
float4 source = UNITY_SAMPLE_SCREENSPACE_TEXTURE(_MainTex, UnityStereoTransformScreenSpaceTex(i.uv));
|
||||
return lerp (finalFog, source, fogFac);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
Fallback Off
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 52f9d6fdd8d48b54d9e1538255a22e9a
|
||||
timeCreated: 1459178236
|
||||
licenseType: Store
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
Shader "Enviro/Lite/MoonShader"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_MainTex("Texture (RGB)", 2D) = "black" {}
|
||||
_Color("Color", Color) = (0.8, 0.8, 0.8, 1)
|
||||
_Brightness("Brightness", Float) = 5
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags
|
||||
{
|
||||
"Queue"="Transparent"
|
||||
"RenderType"="Transparent"
|
||||
"IgnoreProjector"="True"
|
||||
}
|
||||
Pass
|
||||
{
|
||||
Cull Back
|
||||
Blend One One
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 2.0
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
uniform float4 _SunPosition;
|
||||
uniform float4 _MoonPosition;
|
||||
uniform sampler2D _MainTex;
|
||||
uniform float4 _MainTex_ST;
|
||||
uniform float4 _Color;
|
||||
uniform float _Brightness;
|
||||
uniform float _moonFogIntensity;
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float3 normal : TEXCOORD0;
|
||||
float3 worldvertpos : TEXCOORD1;
|
||||
float2 texcoord : TEXCOORD2;
|
||||
};
|
||||
|
||||
v2f vert(appdata_base v)
|
||||
{
|
||||
v2f o;
|
||||
o.pos = UnityObjectToClipPos (v.vertex);
|
||||
o.normal = mul((float3x3)unity_ObjectToWorld, v.normal);
|
||||
o.worldvertpos = mul(unity_ObjectToWorld, v.vertex).xyz;
|
||||
o.texcoord = TRANSFORM_TEX(v.texcoord, _MainTex);
|
||||
return o;
|
||||
}
|
||||
|
||||
float4 frag(v2f i) : COLOR
|
||||
{
|
||||
|
||||
float3 sunPos = _SunPosition;
|
||||
float3 moonPos = _MoonPosition;
|
||||
|
||||
float3 lightVector = normalize(_SunPosition - moonPos);
|
||||
|
||||
i.normal = normalize(i.normal);
|
||||
|
||||
float3 clr = tex2D(_MainTex, i.texcoord) * _Color;
|
||||
clr = pow(clr, 0.3);
|
||||
float d = saturate(max(0.0,dot(i.normal,lightVector)) * 2);
|
||||
clr = (clr * d) * _Brightness;
|
||||
|
||||
return float4(clr * _moonFogIntensity,1);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a73bcd29e414e34fb7b2b7eb7f75155
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
|
||||
|
||||
Shader "Enviro/Lite/MoonShaderPhased"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_MainTex ("Moon Texture", 2D) = "white" {}
|
||||
_Phase ("Moon Phase", float) = 0
|
||||
_Brightness ("Moon Brightness", Range(0.1,5)) = 0.5
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags
|
||||
{"Queue"="Transparent"
|
||||
"RenderType"="Transparent"
|
||||
"IgnoreProjector"="True"
|
||||
}
|
||||
|
||||
Fog
|
||||
{
|
||||
Mode Off
|
||||
}
|
||||
|
||||
Pass
|
||||
{
|
||||
Cull Back
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#include "UnityCG.cginc"
|
||||
#pragma target 2.0
|
||||
|
||||
uniform sampler2D _MainTex;
|
||||
uniform float4 _MainTex_ST;
|
||||
uniform float _Phase;
|
||||
uniform float _Brightness;
|
||||
uniform float _moonFogIntensity;
|
||||
|
||||
struct v2f {
|
||||
float4 position : POSITION;
|
||||
fixed4 color : COLOR;
|
||||
float2 uv_MainTex : TEXCOORD0;
|
||||
float3 normal : TEXCOORD1;
|
||||
float3 viewdir : TEXCOORD2;
|
||||
};
|
||||
|
||||
float MoonPhaseFactor(float2 uv, float phase)
|
||||
{
|
||||
float alpha = 1.0;
|
||||
|
||||
float srefx = uv.x - 0.5;
|
||||
float refx = abs(uv.x - 0.5);
|
||||
float refy = abs(uv.y - 0.5);
|
||||
float refxfory = sqrt(0.25 - refy * refy);
|
||||
float xmin = -refxfory;
|
||||
float xmax = refxfory;
|
||||
float xmin1 = (xmax - xmin) * (phase / 2) + xmin;
|
||||
float xmin2 = (xmax - xmin) * phase + xmin;
|
||||
if (srefx < xmin1) {
|
||||
alpha = 0;
|
||||
} else if (srefx < xmin2 && xmin1 != xmin2) {
|
||||
alpha = (srefx - xmin1) / (xmin2 - xmin1);
|
||||
}
|
||||
return alpha;
|
||||
}
|
||||
|
||||
v2f vert(appdata_base v) {
|
||||
v2f o;
|
||||
|
||||
float phaseabs = abs(_Phase);
|
||||
float3 offset = 10 * float3(_Phase, -phaseabs, -phaseabs);
|
||||
|
||||
float3 normal = v.normal;
|
||||
float3 viewdir = normalize(ObjSpaceViewDir(v.vertex));
|
||||
|
||||
o.position = UnityObjectToClipPos(v.vertex);
|
||||
o.color.rgb = 1 - phaseabs;
|
||||
o.color.a = 1;
|
||||
o.uv_MainTex = TRANSFORM_TEX(v.texcoord, _MainTex);
|
||||
o.normal = v.normal;
|
||||
o.viewdir = normalize(viewdir + offset);
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : COLOR {
|
||||
fixed4 color = i.color;
|
||||
|
||||
float alpha = MoonPhaseFactor(i.uv_MainTex, abs(_Phase));
|
||||
fixed shading = max(0, dot(i.normal, i.viewdir));
|
||||
color.rgb *= pow(shading, 0.5);
|
||||
|
||||
// Moon texture
|
||||
fixed3 moontex = tex2D(_MainTex, i.uv_MainTex);
|
||||
color.rgb *= moontex.rgb * 2.5;
|
||||
|
||||
float lum = dot(color.rgb, float3(0.8, 0.8, 0.8));
|
||||
color.a = min(color.a, lum * alpha);
|
||||
color.rgb = saturate(1.0 - exp(-_Brightness * color.rgb));
|
||||
return float4(color.rgb, color.a * _moonFogIntensity);
|
||||
}
|
||||
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a1b5f57aa0d6ff9438d0e14cc18c4506
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1091eaf15090a5149a00b2f021de6d3c
|
||||
folderAsset: yes
|
||||
timeCreated: 1532145834
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2f6c9dafb37031e4682fe13b528e52f7
|
||||
folderAsset: yes
|
||||
timeCreated: 1532145582
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using UnityEditor;
|
||||
|
||||
[InitializeOnLoad]
|
||||
sealed class EnviroAddDefineSymbolsLW
|
||||
{
|
||||
const string k_Define = "ENVIRO_LW";
|
||||
|
||||
static EnviroAddDefineSymbolsLW()
|
||||
{
|
||||
var targets = Enum.GetValues(typeof(BuildTargetGroup))
|
||||
.Cast<BuildTargetGroup>()
|
||||
.Where(x => x != BuildTargetGroup.Unknown)
|
||||
.Where(x => !IsObsolete(x));
|
||||
|
||||
foreach (var target in targets)
|
||||
{
|
||||
var defines = PlayerSettings.GetScriptingDefineSymbolsForGroup(target).Trim();
|
||||
|
||||
var list = defines.Split(';', ' ')
|
||||
.Where(x => !string.IsNullOrEmpty(x))
|
||||
.ToList();
|
||||
|
||||
if (list.Contains(k_Define))
|
||||
continue;
|
||||
|
||||
list.Add(k_Define);
|
||||
defines = list.Aggregate((a, b) => a + ";" + b);
|
||||
|
||||
PlayerSettings.SetScriptingDefineSymbolsForGroup(target, defines);
|
||||
}
|
||||
}
|
||||
|
||||
static bool IsObsolete(BuildTargetGroup group)
|
||||
{
|
||||
var attrs = typeof(BuildTargetGroup)
|
||||
.GetField(group.ToString())
|
||||
.GetCustomAttributes(typeof(ObsoleteAttribute), false);
|
||||
|
||||
return attrs != null && attrs.Length > 0;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 557774f7678317f40b67bb1212f72f60
|
||||
timeCreated: 1532145482
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,917 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEditorInternal;
|
||||
|
||||
|
||||
[CustomEditor(typeof(EnviroSkyLite))]
|
||||
public class EnviroSkyLiteEditor : Editor {
|
||||
|
||||
private string latestVersion = "2.3.2";
|
||||
// GUI Styles
|
||||
private GUIStyle boxStyle;
|
||||
private GUIStyle boxStyleModified;
|
||||
private GUIStyle wrapStyle;
|
||||
private GUIStyle headerStyle;
|
||||
private GUIStyle headerFoldout;
|
||||
private GUIStyle popUpStyle;
|
||||
|
||||
//Target
|
||||
private EnviroSkyLite myTarget;
|
||||
private Color modifiedColor;
|
||||
private Color greenColor;
|
||||
private Color boxColor1;
|
||||
private bool showWeatherMap;
|
||||
|
||||
//Profile Properties
|
||||
SerializedObject serializedObj;
|
||||
SerializedProperty AdditionalDirectLight,Sun, Moon,DirectLight,GlobalReflectionProbe, windZone, LightningGenerator, satellites, starsRotation;
|
||||
SerializedProperty Player,Camera,PlayerTag,CameraTag, AssignOnRuntime, tonemapping;
|
||||
SerializedProperty cycleLenghtInMinutes,ProgressMode, Years,Days,Hours,Minutes,Seconds,Longitude,Latitude, DayLength,NightLength,UTC, UpdateSeason, CurrentSeason, DaysInYear;
|
||||
SerializedProperty UpdateWeather,StartWeather, EnableSunShafts,EnableMoonShafts,AmbientVolume,WeatherVolume;
|
||||
SerializedProperty lightIntensityToLumen, stopRotationAtHigh, rotationStopHigh, angleOffset,lightColorGradient, lightIntensityCurveSun,lightIntensityCurveMoon, shadowStrength, globalReflectionsUpdateOnPosition, globalReflectionsUpdateOnGameTime;
|
||||
SerializedProperty directionalLightMode,lightIntensityTransitionSpeed, ambientMode, ambientIntensityCurve, ambientSkyGradient, ambientEquatorGradient, ambientGroundGradient;
|
||||
SerializedProperty globalReflectionLayers, globalReflectionResolution, globalReflectionsScale, reflectionBool, reflectionIntensity, reflectionUpdate;
|
||||
SerializedProperty blackGroundMode,sunDiskSizeSimple, simpleSunColor, simpleSkyColor, simpleHorizonColor, renderMoon, skyboxMode, customSkyboxMaterial, customSkyboxColor, rayleigh, scatteringCurve, scatteringColor, sunMoonPos, moonPhaseMode, moonSize, moonTexture, currentMoonPhase, skyLuminance, skyColorPower, skyExposure, cloudsExposure, fogExposure,starsCubemap, starsIntensity,moonColor;
|
||||
SerializedProperty cirrusCloudsAltitude, cirrusCloudsColor, cirrusCloudsTexture, particleCloudsHeight1, particleCloudsColor1, particleCloudsHeight2, particleCloudsColor2;
|
||||
SerializedProperty useTag, wetnessAccumulationSpeed,wetnessDryingSpeed, snowAccumulationSpeed,snowMeltingSpeed,cloudTransitionSpeed,fogTransitionSpeed,effectTransitionSpeed,audioTransitionSpeed, useWindZoneDirection,windTimeScale,windIntensity,windDirectionX,windDirectionY;
|
||||
SerializedProperty useSimpleFog, simpleFogColor, fogMie, fogG, fogmode, distanceFog, startDistance, distanceFogIntensity,maximumFogIntensity, heightFog, height, heightFogIntensity;
|
||||
SerializedProperty resolution, screenBlendMode, useDepthTexture, lightShaftsColorSun, lightShaftsColorMoon, treshholdColorSun, treshholdColorMoon, blurRadius, shaftsIntensity, maxRadius;
|
||||
SerializedProperty SpringStart, SpringEnd, SummerStart, SummerEnd, AutumnStart, AutumnEnd, WinterStart, WinterEnd;
|
||||
SerializedProperty effectQuality, updateInterval, lightningEffect, lightningRange, lightningHeight, cirrusWindIntensity;
|
||||
SerializedProperty dualLayerParticleClouds, renderClouds, particleClouds, dayNightSwitch, usePostEffectFog, useUnityFog, sunIntensity, reflectionUpdatePos, showFogInEditor;
|
||||
SerializedProperty springBaseTemperature, summerBaseTemperature, autumnBaseTemperature, winterBaseTemperature, temperatureChangingSpeed, snowMeltingTresholdTemperature, windIntensityTransitionSpeed, setCameraClearFlags;
|
||||
SerializedProperty flatCloudsBaseTexture, flatCloudsDetailTexture, flatCloudsDirectLightColor, flatCloudsAmbientLightColor, flatCloudsAltitude, flatCloudsBaseTextureTiling, flatCloudsDetailTextureTiling, cloudsDetailWindIntensity;
|
||||
ReorderableList thunderSFX;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
myTarget = (EnviroSkyLite)target;
|
||||
serializedObj = new SerializedObject (myTarget);
|
||||
//Components
|
||||
Sun = serializedObj.FindProperty ("Components.Sun");
|
||||
Moon = serializedObj.FindProperty ("Components.Moon");
|
||||
DirectLight = serializedObj.FindProperty ("Components.DirectLight");
|
||||
GlobalReflectionProbe = serializedObj.FindProperty ("Components.GlobalReflectionProbe");
|
||||
windZone = serializedObj.FindProperty ("Components.windZone");
|
||||
LightningGenerator = serializedObj.FindProperty ("Components.LightningGenerator");
|
||||
satellites = serializedObj.FindProperty ("Components.satellites");
|
||||
starsRotation = serializedObj.FindProperty ("Components.starsRotation");
|
||||
particleClouds = serializedObj.FindProperty("Components.particleClouds");
|
||||
AdditionalDirectLight = serializedObj.FindProperty("Components.AdditionalDirectLight");
|
||||
// Setup
|
||||
Player = serializedObj.FindProperty ("Player");
|
||||
Camera = serializedObj.FindProperty ("PlayerCamera");
|
||||
PlayerTag = serializedObj.FindProperty ("PlayerTag");
|
||||
CameraTag = serializedObj.FindProperty ("CameraTag");
|
||||
AssignOnRuntime = serializedObj.FindProperty ("AssignInRuntime");
|
||||
tonemapping = serializedObj.FindProperty ("tonemapping");
|
||||
setCameraClearFlags = serializedObj.FindProperty("setCameraClearFlags");
|
||||
// Weather Controls
|
||||
UpdateWeather = serializedObj.FindProperty ("Weather.updateWeather");
|
||||
StartWeather = serializedObj.FindProperty ("Weather.startWeatherPreset");
|
||||
//Feature Controls:
|
||||
EnableSunShafts = serializedObj.FindProperty ("LightShafts.sunLightShafts");
|
||||
EnableMoonShafts = serializedObj.FindProperty ("LightShafts.moonLightShafts");
|
||||
usePostEffectFog = serializedObj.FindProperty("usePostEffectFog");
|
||||
useUnityFog = serializedObj.FindProperty("fogSettings.useUnityFog");
|
||||
// Audio Controls
|
||||
AmbientVolume = serializedObj.FindProperty ("Audio.ambientSFXVolume");
|
||||
WeatherVolume = serializedObj.FindProperty ("Audio.weatherSFXVolume");
|
||||
// Time Controls
|
||||
ProgressMode = serializedObj.FindProperty ("GameTime.ProgressTime");
|
||||
DayLength = serializedObj.FindProperty("GameTime.dayLengthModifier");
|
||||
NightLength = serializedObj.FindProperty("GameTime.nightLengthModifier");
|
||||
cycleLenghtInMinutes = serializedObj.FindProperty("GameTime.cycleLengthInMinutes");
|
||||
UpdateSeason = serializedObj.FindProperty ("Seasons.calcSeasons");
|
||||
CurrentSeason = serializedObj.FindProperty ("Seasons.currentSeasons");
|
||||
Years = serializedObj.FindProperty ("GameTime.Years");
|
||||
Days = serializedObj.FindProperty ("GameTime.Days");
|
||||
Hours = serializedObj.FindProperty ("GameTime.Hours");
|
||||
Minutes = serializedObj.FindProperty ("GameTime.Minutes");
|
||||
Seconds = serializedObj.FindProperty ("GameTime.Seconds");
|
||||
Longitude = serializedObj.FindProperty ("GameTime.Longitude");
|
||||
Latitude = serializedObj.FindProperty ("GameTime.Latitude");
|
||||
UTC = serializedObj.FindProperty ("GameTime.utcOffset");
|
||||
DaysInYear = serializedObj.FindProperty("GameTime.DaysInYear");
|
||||
dayNightSwitch = serializedObj.FindProperty("GameTime.dayNightSwitch");
|
||||
//Lighting Category
|
||||
lightColorGradient = serializedObj.FindProperty ("lightSettings.LightColor");
|
||||
lightIntensityCurveSun = serializedObj.FindProperty ("lightSettings.directLightSunIntensity");
|
||||
lightIntensityCurveMoon = serializedObj.FindProperty ("lightSettings.directLightMoonIntensity");
|
||||
shadowStrength = serializedObj.FindProperty ("lightSettings.shadowIntensity");
|
||||
angleOffset = serializedObj.FindProperty("lightSettings.directLightAngleOffset");
|
||||
ambientMode = serializedObj.FindProperty ("lightSettings.ambientMode");
|
||||
ambientIntensityCurve = serializedObj.FindProperty ("lightSettings.ambientIntensity");
|
||||
ambientSkyGradient = serializedObj.FindProperty ("lightSettings.ambientSkyColor");
|
||||
ambientEquatorGradient = serializedObj.FindProperty ("lightSettings.ambientEquatorColor");
|
||||
ambientGroundGradient = serializedObj.FindProperty ("lightSettings.ambientGroundColor");
|
||||
lightIntensityToLumen = serializedObj.FindProperty("lightSettings.lightIntensityToLumen");
|
||||
stopRotationAtHigh = serializedObj.FindProperty("lightSettings.stopRotationAtHigh");
|
||||
rotationStopHigh = serializedObj.FindProperty("lightSettings.rotationStopHigh");
|
||||
reflectionBool = serializedObj.FindProperty ("reflectionSettings.globalReflections");
|
||||
reflectionIntensity = serializedObj.FindProperty ("reflectionSettings.globalReflectionsIntensity");
|
||||
reflectionUpdate = serializedObj.FindProperty("reflectionSettings.globalReflectionsTimeTreshold");
|
||||
reflectionUpdatePos = serializedObj.FindProperty("reflectionSettings.globalReflectionsPositionTreshold");
|
||||
globalReflectionsScale = serializedObj.FindProperty("reflectionSettings.globalReflectionsScale");
|
||||
globalReflectionsUpdateOnPosition = serializedObj.FindProperty("reflectionSettings.globalReflectionsUpdateOnPosition");
|
||||
globalReflectionsUpdateOnGameTime = serializedObj.FindProperty("reflectionSettings.globalReflectionsUpdateOnGameTime");
|
||||
globalReflectionResolution = serializedObj.FindProperty("reflectionSettings.globalReflectionResolution");
|
||||
globalReflectionLayers = serializedObj.FindProperty("reflectionSettings.globalReflectionLayers");
|
||||
lightIntensityTransitionSpeed = serializedObj.FindProperty("lightSettings.lightIntensityTransitionSpeed");
|
||||
directionalLightMode = serializedObj.FindProperty("lightSettings.directionalLightMode");
|
||||
//Sky Category
|
||||
skyboxMode = serializedObj.FindProperty ("skySettings.skyboxModeLW");
|
||||
customSkyboxMaterial = serializedObj.FindProperty ("skySettings.customSkyboxMaterial");
|
||||
customSkyboxColor = serializedObj.FindProperty ("skySettings.customSkyboxColor");
|
||||
rayleigh = serializedObj.FindProperty ("skySettings.rayleigh");
|
||||
scatteringCurve = serializedObj.FindProperty ("skySettings.scatteringCurve");
|
||||
scatteringColor = serializedObj.FindProperty ("skySettings.scatteringColor");
|
||||
sunMoonPos = serializedObj.FindProperty ("skySettings.sunAndMoonPosition");
|
||||
sunIntensity = serializedObj.FindProperty ("skySettings.sunIntensity");
|
||||
renderMoon = serializedObj.FindProperty("skySettings.renderMoon");
|
||||
moonPhaseMode = serializedObj.FindProperty ("skySettings.moonPhaseMode");
|
||||
moonTexture = serializedObj.FindProperty ("skySettings.moonTexture");
|
||||
moonSize = serializedObj.FindProperty("skySettings.moonSize");
|
||||
currentMoonPhase = serializedObj.FindProperty ("customMoonPhase");
|
||||
skyLuminance = serializedObj.FindProperty ("skySettings.skyLuminence");
|
||||
skyColorPower = serializedObj.FindProperty ("skySettings.skyColorPower");
|
||||
skyExposure = serializedObj.FindProperty ("skySettings.skyExposure");
|
||||
starsCubemap = serializedObj.FindProperty ("skySettings.starsCubeMap");
|
||||
starsIntensity = serializedObj.FindProperty ("skySettings.starsIntensity");
|
||||
moonColor = serializedObj.FindProperty ("skySettings.moonColor");
|
||||
simpleSkyColor = serializedObj.FindProperty("skySettings.simpleSkyColor");
|
||||
simpleHorizonColor = serializedObj.FindProperty("skySettings.simpleHorizonColor");
|
||||
sunDiskSizeSimple = serializedObj.FindProperty("skySettings.simpleSunDiskSize");
|
||||
simpleSunColor = serializedObj.FindProperty("skySettings.simpleSunColor");
|
||||
blackGroundMode = serializedObj.FindProperty("skySettings.blackGroundMode");
|
||||
//Clouds Category
|
||||
particleCloudsHeight1 = serializedObj.FindProperty("cloudsSettings.ParticleCloudsLayer1.height");
|
||||
particleCloudsColor1 = serializedObj.FindProperty("cloudsSettings.ParticleCloudsLayer1.particleCloudsColor");
|
||||
particleCloudsHeight2 = serializedObj.FindProperty("cloudsSettings.ParticleCloudsLayer2.height");
|
||||
particleCloudsColor2 = serializedObj.FindProperty("cloudsSettings.ParticleCloudsLayer2.particleCloudsColor");
|
||||
cirrusCloudsTexture = serializedObj.FindProperty ("cloudsSettings.cirrusCloudsTexture");
|
||||
cirrusCloudsAltitude = serializedObj.FindProperty ("cloudsSettings.cirrusCloudsAltitude");
|
||||
cirrusCloudsColor = serializedObj.FindProperty ("cloudsSettings.cirrusCloudsColor");
|
||||
dualLayerParticleClouds = serializedObj.FindProperty("cloudsSettings.dualLayerParticleClouds");
|
||||
|
||||
flatCloudsBaseTexture = serializedObj.FindProperty("cloudsSettings.flatCloudsBaseTexture");
|
||||
flatCloudsDetailTexture = serializedObj.FindProperty("cloudsSettings.flatCloudsDetailTexture");
|
||||
flatCloudsDirectLightColor = serializedObj.FindProperty("cloudsSettings.flatCloudsDirectLightColor");
|
||||
flatCloudsAmbientLightColor = serializedObj.FindProperty("cloudsSettings.flatCloudsAmbientLightColor");
|
||||
flatCloudsAltitude = serializedObj.FindProperty("cloudsSettings.flatCloudsAltitude");
|
||||
flatCloudsBaseTextureTiling = serializedObj.FindProperty("cloudsSettings.flatCloudsBaseTextureTiling");
|
||||
flatCloudsDetailTextureTiling = serializedObj.FindProperty("cloudsSettings.flatCloudsDetailTextureTiling");
|
||||
cloudsDetailWindIntensity = serializedObj.FindProperty("cloudsSettings.cloudsDetailWindIntensity");
|
||||
cloudsExposure = serializedObj.FindProperty("cloudsSettings.cloudsExposure");
|
||||
// Weather Category
|
||||
useTag = serializedObj.FindProperty ("weatherSettings.useTag");
|
||||
wetnessAccumulationSpeed = serializedObj.FindProperty ("weatherSettings.wetnessAccumulationSpeed");
|
||||
wetnessDryingSpeed = serializedObj.FindProperty ("weatherSettings.wetnessDryingSpeed");
|
||||
snowAccumulationSpeed = serializedObj.FindProperty ("weatherSettings.snowAccumulationSpeed");
|
||||
snowMeltingSpeed = serializedObj.FindProperty ("weatherSettings.snowMeltingSpeed");
|
||||
cloudTransitionSpeed = serializedObj.FindProperty ("weatherSettings.cloudTransitionSpeed");
|
||||
fogTransitionSpeed = serializedObj.FindProperty ("weatherSettings.fogTransitionSpeed");
|
||||
effectTransitionSpeed = serializedObj.FindProperty ("weatherSettings.effectTransitionSpeed");
|
||||
audioTransitionSpeed = serializedObj.FindProperty ("weatherSettings.audioTransitionSpeed");
|
||||
snowMeltingTresholdTemperature = serializedObj.FindProperty("weatherSettings.snowMeltingTresholdTemperature");
|
||||
windIntensityTransitionSpeed = serializedObj.FindProperty("weatherSettings.windIntensityTransitionSpeed");
|
||||
temperatureChangingSpeed = serializedObj.FindProperty("weatherSettings.temperatureChangingSpeed");
|
||||
lightningEffect = serializedObj.FindProperty("weatherSettings.lightningEffect");
|
||||
lightningRange = serializedObj.FindProperty("weatherSettings.lightningRange");
|
||||
lightningHeight = serializedObj.FindProperty("weatherSettings.lightningHeight");
|
||||
useWindZoneDirection = serializedObj.FindProperty ("cloudsSettings.useWindZoneDirection");
|
||||
renderClouds = serializedObj.FindProperty ("useParticleClouds");
|
||||
windTimeScale = serializedObj.FindProperty ("cloudsSettings.cloudsTimeScale");
|
||||
windIntensity = serializedObj.FindProperty ("cloudsSettings.cloudsWindIntensity");
|
||||
cirrusWindIntensity = serializedObj.FindProperty("cloudsSettings.cirrusWindIntensity");
|
||||
windDirectionX = serializedObj.FindProperty ("cloudsSettings.cloudsWindDirectionX");
|
||||
windDirectionY = serializedObj.FindProperty ("cloudsSettings.cloudsWindDirectionY");
|
||||
fogmode = serializedObj.FindProperty ("fogSettings.Fogmode");
|
||||
distanceFog = serializedObj.FindProperty ("fogSettings.distanceFog");
|
||||
startDistance = serializedObj.FindProperty ("fogSettings.startDistance");
|
||||
distanceFogIntensity = serializedObj.FindProperty ("fogSettings.distanceFogIntensity");
|
||||
maximumFogIntensity = serializedObj.FindProperty ("fogSettings.maximumFogDensity");
|
||||
heightFog = serializedObj.FindProperty ("fogSettings.heightFog");
|
||||
height = serializedObj.FindProperty ("fogSettings.height");
|
||||
heightFogIntensity = serializedObj.FindProperty ("fogSettings.heightFogIntensity");
|
||||
fogMie = serializedObj.FindProperty ("fogSettings.mie");
|
||||
fogG = serializedObj.FindProperty ("fogSettings.g");
|
||||
fogExposure = serializedObj.FindProperty("fogSettings.fogExposure");
|
||||
useSimpleFog = serializedObj.FindProperty("fogSettings.useSimpleFog");
|
||||
simpleFogColor = serializedObj.FindProperty("fogSettings.simpleFogColor");
|
||||
showFogInEditor = serializedObj.FindProperty("showFogInEditor");
|
||||
|
||||
//LightShafts
|
||||
resolution = serializedObj.FindProperty ("lightshaftsSettings.resolution");
|
||||
screenBlendMode = serializedObj.FindProperty ("lightshaftsSettings.screenBlendMode");
|
||||
useDepthTexture = serializedObj.FindProperty ("lightshaftsSettings.useDepthTexture");
|
||||
lightShaftsColorSun = serializedObj.FindProperty ("lightshaftsSettings.lightShaftsColorSun");
|
||||
lightShaftsColorMoon = serializedObj.FindProperty ("lightshaftsSettings.lightShaftsColorMoon");
|
||||
treshholdColorSun = serializedObj.FindProperty ("lightshaftsSettings.thresholdColorSun");
|
||||
treshholdColorMoon = serializedObj.FindProperty ("lightshaftsSettings.thresholdColorMoon");
|
||||
blurRadius = serializedObj.FindProperty ("lightshaftsSettings.blurRadius");
|
||||
shaftsIntensity = serializedObj.FindProperty ("lightshaftsSettings.intensity");
|
||||
maxRadius = serializedObj.FindProperty ("lightshaftsSettings.maxRadius");
|
||||
//Season
|
||||
SpringStart = serializedObj.FindProperty("seasonsSettings.SpringStart");
|
||||
SpringEnd = serializedObj.FindProperty("seasonsSettings.SpringEnd");
|
||||
SummerStart = serializedObj.FindProperty("seasonsSettings.SummerStart");
|
||||
SummerEnd = serializedObj.FindProperty("seasonsSettings.SummerEnd");
|
||||
AutumnStart = serializedObj.FindProperty("seasonsSettings.AutumnStart");
|
||||
AutumnEnd = serializedObj.FindProperty("seasonsSettings.AutumnEnd");
|
||||
WinterStart = serializedObj.FindProperty("seasonsSettings.WinterStart");
|
||||
WinterEnd = serializedObj.FindProperty("seasonsSettings.WinterEnd");
|
||||
springBaseTemperature = serializedObj.FindProperty("seasonsSettings.springBaseTemperature");
|
||||
summerBaseTemperature = serializedObj.FindProperty("seasonsSettings.summerBaseTemperature");
|
||||
autumnBaseTemperature = serializedObj.FindProperty("seasonsSettings.autumnBaseTemperature");
|
||||
winterBaseTemperature = serializedObj.FindProperty("seasonsSettings.winterBaseTemperature");
|
||||
//Quality
|
||||
effectQuality = serializedObj.FindProperty ("qualitySettings.GlobalParticleEmissionRates");
|
||||
updateInterval= serializedObj.FindProperty ("qualitySettings.UpdateInterval");
|
||||
//Audio
|
||||
thunderSFX = new ReorderableList(serializedObject,
|
||||
serializedObject.FindProperty("audioSettings.ThunderSFX"),
|
||||
true, true, true, true);
|
||||
|
||||
thunderSFX.drawHeaderCallback = (Rect rect) =>
|
||||
{
|
||||
EditorGUI.LabelField(rect, "Thunder SFX");
|
||||
};
|
||||
thunderSFX.drawElementCallback =
|
||||
(Rect rect, int index, bool isActive, bool isFocused) =>
|
||||
{
|
||||
var element = thunderSFX.serializedProperty.GetArrayElementAtIndex(index);
|
||||
rect.y += 2;
|
||||
EditorGUI.PropertyField(
|
||||
new Rect(rect.x, rect.y, Screen.width*.8f, EditorGUIUtility.singleLineHeight),
|
||||
element, GUIContent.none);
|
||||
};
|
||||
thunderSFX.onAddCallback = (ReorderableList l) =>
|
||||
{
|
||||
var index = l.serializedProperty.arraySize;
|
||||
l.serializedProperty.arraySize++;
|
||||
l.index = index;
|
||||
//var element = l.serializedProperty.GetArrayElementAtIndex(index);
|
||||
};
|
||||
|
||||
modifiedColor = Color.red;
|
||||
modifiedColor.a = 0.5f;
|
||||
|
||||
greenColor = Color.green;
|
||||
greenColor.a = 0.5f;
|
||||
|
||||
#if UNITY_2019_3_OR_NEWER
|
||||
boxColor1 = new Color(0.95f, 0.95f, 0.95f,1f);
|
||||
#else
|
||||
boxColor1 = new Color(0.85f, 0.85f, 0.85f, 1f);
|
||||
#endif
|
||||
////
|
||||
}
|
||||
/// <summary>
|
||||
/// Applies the changes and set profile to modifed but not saved.
|
||||
/// </summary>
|
||||
private void ApplyChanges ()
|
||||
{
|
||||
if (EditorGUI.EndChangeCheck ()) {
|
||||
serializedObj.ApplyModifiedProperties ();
|
||||
myTarget.profile.modified = true;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI ()
|
||||
{
|
||||
myTarget = (EnviroSkyLite)target;
|
||||
//int daysInyear = (int)(myTarget.seasonsSettings.SpringInDays + myTarget.seasonsSettings.SummerInDays + myTarget.seasonsSettings.AutumnInDays + myTarget.seasonsSettings.WinterInDays);
|
||||
//Set up the box style
|
||||
if (boxStyle == null)
|
||||
{
|
||||
boxStyle = new GUIStyle(GUI.skin.box);
|
||||
boxStyle.normal.textColor = GUI.skin.label.normal.textColor;
|
||||
boxStyle.fontStyle = FontStyle.Bold;
|
||||
boxStyle.alignment = TextAnchor.UpperLeft;
|
||||
}
|
||||
|
||||
if (boxStyleModified == null)
|
||||
{
|
||||
boxStyleModified = new GUIStyle(EditorStyles.helpBox);
|
||||
boxStyleModified.normal.textColor = GUI.skin.label.normal.textColor;
|
||||
boxStyleModified.fontStyle = FontStyle.Bold;
|
||||
boxStyleModified.fontSize = 11;
|
||||
boxStyleModified.alignment = TextAnchor.UpperLeft;
|
||||
}
|
||||
|
||||
//Setup the wrap style
|
||||
if (wrapStyle == null)
|
||||
{
|
||||
wrapStyle = new GUIStyle(GUI.skin.label);
|
||||
wrapStyle.fontStyle = FontStyle.Bold;
|
||||
wrapStyle.wordWrap = true;
|
||||
}
|
||||
|
||||
if (headerStyle == null) {
|
||||
headerStyle = new GUIStyle(GUI.skin.label);
|
||||
headerStyle.fontStyle = FontStyle.Bold;
|
||||
headerStyle.alignment = TextAnchor.UpperLeft;
|
||||
}
|
||||
|
||||
if (headerFoldout == null)
|
||||
{
|
||||
headerFoldout = new GUIStyle(EditorStyles.foldout);
|
||||
headerFoldout.fontStyle = FontStyle.Bold;
|
||||
}
|
||||
|
||||
if (popUpStyle == null)
|
||||
{
|
||||
popUpStyle = new GUIStyle(EditorStyles.popup);
|
||||
popUpStyle.alignment = TextAnchor.MiddleCenter;
|
||||
popUpStyle.fixedHeight = 20f;
|
||||
popUpStyle.fontStyle = FontStyle.Bold;
|
||||
}
|
||||
|
||||
GUILayout.BeginVertical("EnviroSky - Lite " + latestVersion, boxStyle);
|
||||
GUILayout.Space(20);
|
||||
GUI.backgroundColor = boxColor1;
|
||||
GUILayout.BeginVertical("Profile", boxStyleModified);
|
||||
GUI.backgroundColor = Color.white;
|
||||
GUILayout.Space(20);
|
||||
myTarget.profile = (EnviroProfile)EditorGUILayout.ObjectField (myTarget.profile, typeof(EnviroProfile), false);
|
||||
GUILayout.Space(10);
|
||||
if (myTarget.profile != null)
|
||||
EditorGUILayout.LabelField ("Profile Version:", myTarget.profile.version,headerStyle);
|
||||
else
|
||||
EditorGUILayout.LabelField ("No Profile Assigned!");
|
||||
GUILayout.Space(5);
|
||||
|
||||
if(myTarget.profile != null && myTarget.profile.version != latestVersion)
|
||||
if (GUILayout.Button ("Update Profile")) {
|
||||
if (EnviroProfileCreation.UpdateProfile (myTarget.profile, myTarget.profile.version, latestVersion) == true)
|
||||
myTarget.ApplyProfile (myTarget.profile);
|
||||
}
|
||||
// Runtime Settings
|
||||
if (GUILayout.Button ("Apply all Settings")) {
|
||||
myTarget.enabled = false;
|
||||
myTarget.enabled = true;
|
||||
}
|
||||
GUILayout.EndHorizontal ();
|
||||
if (myTarget.profile != null) {
|
||||
|
||||
if (myTarget.profile.modified) // Change color when modified
|
||||
GUI.backgroundColor = modifiedColor;
|
||||
else
|
||||
GUI.backgroundColor = boxColor1;
|
||||
|
||||
GUILayout.BeginVertical ("", boxStyleModified);
|
||||
|
||||
|
||||
GUI.backgroundColor = Color.white;
|
||||
|
||||
serializedObj.UpdateIfRequiredOrScript ();
|
||||
|
||||
myTarget.showSettings = GUILayout.Toggle(myTarget.showSettings, "Edit Profile", headerFoldout);
|
||||
if (myTarget.showSettings) {
|
||||
GUILayout.BeginVertical ("", boxStyleModified);
|
||||
GUILayout.BeginHorizontal ();
|
||||
if (GUILayout.Button ("Save to Profile")) {
|
||||
myTarget.SaveProfile ();
|
||||
myTarget.profile.modified = false;
|
||||
}
|
||||
if (GUILayout.Button ("Load from Profile")) {
|
||||
myTarget.ApplyProfile (myTarget.profile);
|
||||
myTarget.profile.modified = false;
|
||||
serializedObj.UpdateIfRequiredOrScript ();
|
||||
}
|
||||
GUILayout.EndHorizontal ();
|
||||
GUILayout.Space (5);
|
||||
EditorGUILayout.LabelField ("Category", headerStyle);
|
||||
myTarget.profile.viewModeLW = (EnviroProfile.settingsModeLW)EditorGUILayout.EnumPopup(myTarget.profile.viewModeLW, popUpStyle);
|
||||
GUILayout.Space(10);
|
||||
GUILayout.EndVertical ();
|
||||
|
||||
switch (myTarget.profile.viewModeLW) {
|
||||
case EnviroProfile.settingsModeLW.Lighting:
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUI.BeginChangeCheck();
|
||||
EditorGUILayout.PropertyField(directionalLightMode, true, null);
|
||||
EditorGUILayout.PropertyField (lightColorGradient, true, null);
|
||||
EditorGUILayout.PropertyField (lightIntensityCurveSun, true, null);
|
||||
EditorGUILayout.PropertyField (lightIntensityCurveMoon, true, null);
|
||||
EditorGUILayout.PropertyField(lightIntensityTransitionSpeed, true, null);
|
||||
#if ENVIRO_HDRP
|
||||
EditorGUILayout.PropertyField(lightIntensityToLumen, true, null);
|
||||
#endif
|
||||
EditorGUILayout.PropertyField(shadowStrength, true, null);
|
||||
EditorGUILayout.PropertyField(angleOffset, true, null);
|
||||
EditorGUILayout.PropertyField(stopRotationAtHigh, true, null);
|
||||
if (myTarget.lightSettings.stopRotationAtHigh)
|
||||
EditorGUILayout.PropertyField(rotationStopHigh, true, null);
|
||||
EditorGUILayout.PropertyField (ambientMode, true, null);
|
||||
EditorGUILayout.PropertyField (ambientIntensityCurve, true, null);
|
||||
EditorGUILayout.PropertyField (ambientSkyGradient, true, null);
|
||||
EditorGUILayout.PropertyField (ambientEquatorGradient, true, null);
|
||||
EditorGUILayout.PropertyField (ambientGroundGradient, true, null);
|
||||
ApplyChanges ();
|
||||
GUILayout.EndVertical();
|
||||
break;
|
||||
|
||||
case EnviroProfile.settingsModeLW.Sky:
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUI.BeginChangeCheck ();
|
||||
EditorGUILayout.PropertyField (skyboxMode, true, null);
|
||||
if (myTarget.skySettings.skyboxModeLW == EnviroSkySettings.SkyboxModiLW.Simple)
|
||||
EditorGUILayout.PropertyField (blackGroundMode, true, null);
|
||||
|
||||
if (myTarget.skySettings.skyboxModeLW == EnviroSkySettings.SkyboxModiLW.CustomSkybox)
|
||||
EditorGUILayout.PropertyField (customSkyboxMaterial, true, null);
|
||||
if (myTarget.skySettings.skyboxModeLW == EnviroSkySettings.SkyboxModiLW.CustomColor)
|
||||
EditorGUILayout.PropertyField (customSkyboxColor, true, null);
|
||||
GUILayout.Space (10);
|
||||
if (myTarget.skySettings.skyboxModeLW == EnviroSkySettings.SkyboxModiLW.Simple)
|
||||
{
|
||||
EditorGUILayout.LabelField("Color", headerStyle);
|
||||
EditorGUILayout.PropertyField(simpleSkyColor, true, null);
|
||||
EditorGUILayout.PropertyField(simpleHorizonColor, true, null);
|
||||
EditorGUILayout.PropertyField(simpleSunColor, true, null);
|
||||
|
||||
}
|
||||
|
||||
EditorGUILayout.PropertyField (sunMoonPos, true, null);
|
||||
if(myTarget.skySettings.skyboxModeLW == EnviroSkySettings.SkyboxModiLW.Simple)
|
||||
EditorGUILayout.PropertyField(sunDiskSizeSimple, true, null);
|
||||
EditorGUILayout.PropertyField(renderMoon, true, null);
|
||||
EditorGUILayout.PropertyField (moonPhaseMode, true, null);
|
||||
EditorGUILayout.PropertyField (moonTexture, true, null);
|
||||
EditorGUILayout.PropertyField(moonSize, true, null);
|
||||
EditorGUILayout.PropertyField (moonColor, true, null);
|
||||
if (myTarget.skySettings.moonPhaseMode == EnviroSkySettings.MoonPhases.Custom) {
|
||||
// EditorGUILayout.PropertyField (startMoonPhase, true, null);
|
||||
EditorGUILayout.PropertyField (currentMoonPhase, true, null);
|
||||
}
|
||||
EditorGUILayout.PropertyField (starsCubemap, true, null);
|
||||
EditorGUILayout.PropertyField (starsIntensity, true, null);
|
||||
//EditorGUILayout.PropertyField(galaxyCubeMap, true, null);
|
||||
//EditorGUILayout.PropertyField(galaxyIntensity, true, null);
|
||||
ApplyChanges ();
|
||||
GUILayout.EndVertical();
|
||||
break;
|
||||
|
||||
// CLouds Category
|
||||
case EnviroProfile.settingsModeLW.Clouds:
|
||||
EditorGUI.BeginChangeCheck ();
|
||||
|
||||
GUILayout.BeginVertical("2D Clouds", boxStyleModified);
|
||||
GUILayout.Space(20);
|
||||
EditorGUILayout.PropertyField(flatCloudsBaseTexture, true, null);
|
||||
EditorGUILayout.PropertyField(flatCloudsBaseTextureTiling, true, null);
|
||||
EditorGUILayout.PropertyField(flatCloudsDetailTexture, true, null);
|
||||
EditorGUILayout.PropertyField(flatCloudsDetailTextureTiling, true, null);
|
||||
EditorGUILayout.PropertyField(flatCloudsDirectLightColor, true, null);
|
||||
EditorGUILayout.PropertyField(flatCloudsAmbientLightColor, true, null);
|
||||
EditorGUILayout.PropertyField(flatCloudsAltitude, true, null);
|
||||
EditorGUILayout.PropertyField(cloudsExposure, true, null);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
GUILayout.BeginVertical ("Particle Clouds", boxStyleModified);
|
||||
GUILayout.Space (20);
|
||||
EditorGUILayout.PropertyField(dualLayerParticleClouds, true, null);
|
||||
GUILayout.Space(5);
|
||||
EditorGUILayout.LabelField("Layer 1", headerStyle);
|
||||
EditorGUILayout.PropertyField(particleCloudsHeight1, true, null);
|
||||
EditorGUILayout.PropertyField(particleCloudsColor1, true, null);
|
||||
if (myTarget.cloudsSettings.dualLayerParticleClouds)
|
||||
{
|
||||
GUILayout.Space(5);
|
||||
EditorGUILayout.LabelField("Layer 2", headerStyle);
|
||||
EditorGUILayout.PropertyField(particleCloudsHeight2, true, null);
|
||||
EditorGUILayout.PropertyField(particleCloudsColor2, true, null);
|
||||
}
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
GUILayout.BeginVertical ("Cirrus Clouds", boxStyleModified);
|
||||
GUILayout.Space (20);
|
||||
EditorGUILayout.PropertyField (cirrusCloudsTexture, true, null);
|
||||
EditorGUILayout.PropertyField (cirrusCloudsColor, true, null);
|
||||
EditorGUILayout.PropertyField (cirrusCloudsAltitude, true, null);
|
||||
|
||||
EditorGUILayout.EndVertical ();
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
|
||||
EditorGUILayout.PropertyField (useWindZoneDirection, true, null);
|
||||
EditorGUILayout.PropertyField (windTimeScale, true, null);
|
||||
EditorGUILayout.PropertyField (windIntensity, true, null);
|
||||
EditorGUILayout.PropertyField(cloudsDetailWindIntensity, true, null);
|
||||
EditorGUILayout.PropertyField(cirrusWindIntensity, true, null);
|
||||
if (useWindZoneDirection.boolValue == false) {
|
||||
EditorGUILayout.PropertyField (windDirectionX, true, null);
|
||||
EditorGUILayout.PropertyField (windDirectionY, true, null);
|
||||
}
|
||||
EditorGUILayout.EndVertical();
|
||||
ApplyChanges ();
|
||||
break;
|
||||
|
||||
case EnviroProfile.settingsModeLW.Weather:
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUI.BeginChangeCheck ();
|
||||
EditorGUILayout.PropertyField (useTag, true, null);
|
||||
EditorGUILayout.PropertyField (wetnessAccumulationSpeed, true, null);
|
||||
EditorGUILayout.PropertyField (wetnessDryingSpeed, true, null);
|
||||
EditorGUILayout.PropertyField (snowAccumulationSpeed, true, null);
|
||||
EditorGUILayout.PropertyField (snowMeltingSpeed, true, null);
|
||||
EditorGUILayout.PropertyField(snowMeltingTresholdTemperature, true, null);
|
||||
GUILayout.Space (10);
|
||||
EditorGUILayout.PropertyField (cloudTransitionSpeed, true, null);
|
||||
EditorGUILayout.PropertyField (fogTransitionSpeed, true, null);
|
||||
EditorGUILayout.PropertyField(windIntensityTransitionSpeed, true, null);
|
||||
EditorGUILayout.PropertyField (effectTransitionSpeed, true, null);
|
||||
EditorGUILayout.PropertyField (audioTransitionSpeed, true, null);
|
||||
EditorGUILayout.PropertyField(lightningEffect, true, null);
|
||||
EditorGUILayout.PropertyField(lightningRange, true, null);
|
||||
EditorGUILayout.PropertyField(lightningHeight, true, null);
|
||||
EditorGUILayout.PropertyField(temperatureChangingSpeed, true, null);
|
||||
ApplyChanges ();
|
||||
GUILayout.EndVertical();
|
||||
break;
|
||||
|
||||
case EnviroProfile.settingsModeLW.Reflections:
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUI.BeginChangeCheck();
|
||||
EditorGUILayout.PropertyField(reflectionBool, true, null);
|
||||
if (myTarget.reflectionSettings.globalReflections)
|
||||
{
|
||||
GUILayout.Space(5);
|
||||
EditorGUILayout.PropertyField(globalReflectionsUpdateOnGameTime, true, null);
|
||||
if (myTarget.reflectionSettings.globalReflectionsUpdateOnGameTime)
|
||||
EditorGUILayout.PropertyField(reflectionUpdate, true, null);
|
||||
EditorGUILayout.PropertyField(globalReflectionsUpdateOnPosition, true, null);
|
||||
if (myTarget.reflectionSettings.globalReflectionsUpdateOnPosition)
|
||||
EditorGUILayout.PropertyField(reflectionUpdatePos, true, null);
|
||||
GUILayout.Space(5);
|
||||
EditorGUILayout.PropertyField(reflectionIntensity, true, null);
|
||||
EditorGUILayout.PropertyField(globalReflectionsScale, true, null);
|
||||
EditorGUILayout.PropertyField(globalReflectionResolution, true, null);
|
||||
EditorGUILayout.PropertyField(globalReflectionLayers, true, null);
|
||||
|
||||
}
|
||||
ApplyChanges();
|
||||
GUILayout.EndVertical();
|
||||
break;
|
||||
|
||||
|
||||
case EnviroProfile.settingsModeLW.Season:
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUI.BeginChangeCheck ();
|
||||
EditorGUILayout.PropertyField(SpringStart, true, null);
|
||||
EditorGUILayout.PropertyField(SpringEnd, true, null);
|
||||
EditorGUILayout.PropertyField(springBaseTemperature, true, null);
|
||||
|
||||
EditorGUILayout.PropertyField(SummerStart, true, null);
|
||||
EditorGUILayout.PropertyField(SummerEnd, true, null);
|
||||
EditorGUILayout.PropertyField(summerBaseTemperature, true, null);
|
||||
|
||||
EditorGUILayout.PropertyField(AutumnStart, true, null);
|
||||
EditorGUILayout.PropertyField(AutumnEnd, true, null);
|
||||
EditorGUILayout.PropertyField(autumnBaseTemperature, true, null);
|
||||
|
||||
EditorGUILayout.PropertyField(WinterStart, true, null);
|
||||
EditorGUILayout.PropertyField(WinterEnd, true, null);
|
||||
EditorGUILayout.PropertyField(winterBaseTemperature, true, null);
|
||||
ApplyChanges ();
|
||||
GUILayout.EndVertical();
|
||||
break;
|
||||
|
||||
case EnviroProfile.settingsModeLW.Fog:
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUI.BeginChangeCheck ();
|
||||
EditorGUILayout.PropertyField(useUnityFog, true, null);
|
||||
if (!myTarget.fogSettings.useUnityFog)
|
||||
EditorGUILayout.PropertyField(useSimpleFog, true, null);
|
||||
EditorGUILayout.PropertyField (fogmode, true, null);
|
||||
if (!myTarget.fogSettings.useUnityFog)
|
||||
{
|
||||
EditorGUILayout.PropertyField(distanceFog, true, null);
|
||||
EditorGUILayout.PropertyField(startDistance, true, null);
|
||||
EditorGUILayout.PropertyField(distanceFogIntensity, true, null);
|
||||
EditorGUILayout.PropertyField(maximumFogIntensity, true, null);
|
||||
}
|
||||
if (!myTarget.fogSettings.useSimpleFog && !myTarget.fogSettings.useUnityFog)
|
||||
{
|
||||
EditorGUILayout.PropertyField (heightFog, true, null);
|
||||
EditorGUILayout.PropertyField (height, true, null);
|
||||
EditorGUILayout.PropertyField (heightFogIntensity, true, null);
|
||||
|
||||
GUILayout.Space(10);
|
||||
EditorGUILayout.LabelField("Scattering", headerStyle);
|
||||
myTarget.skySettings.waveLength = EditorGUILayout.Vector3Field("Wave Length", myTarget.skySettings.waveLength);
|
||||
EditorGUILayout.PropertyField(rayleigh, true, null);
|
||||
EditorGUILayout.PropertyField(fogG, true, null);
|
||||
EditorGUILayout.PropertyField(fogMie, true, null);
|
||||
EditorGUILayout.PropertyField(sunIntensity, true, null);
|
||||
|
||||
EditorGUILayout.PropertyField(scatteringCurve, true, null);
|
||||
EditorGUILayout.PropertyField(scatteringColor, true, null);
|
||||
EditorGUILayout.PropertyField(skyLuminance, true, null);
|
||||
EditorGUILayout.PropertyField(skyColorPower, true, null);
|
||||
EditorGUILayout.PropertyField(fogExposure, true, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
EditorGUILayout.PropertyField(simpleFogColor, true, null);
|
||||
}
|
||||
ApplyChanges ();
|
||||
GUILayout.EndVertical();
|
||||
break;
|
||||
|
||||
case EnviroProfile.settingsModeLW.Lightshafts:
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUI.BeginChangeCheck ();
|
||||
EditorGUILayout.PropertyField (resolution, true, null);
|
||||
EditorGUILayout.PropertyField (screenBlendMode, true, null);
|
||||
EditorGUILayout.PropertyField (useDepthTexture, true, null);
|
||||
EditorGUILayout.PropertyField (lightShaftsColorSun, true, null);
|
||||
EditorGUILayout.PropertyField (lightShaftsColorMoon, true, null);
|
||||
EditorGUILayout.PropertyField (treshholdColorSun, true, null);
|
||||
EditorGUILayout.PropertyField (treshholdColorMoon, true, null);
|
||||
EditorGUILayout.PropertyField (blurRadius, true, null);
|
||||
EditorGUILayout.PropertyField (shaftsIntensity, true, null);
|
||||
EditorGUILayout.PropertyField (maxRadius, true, null);
|
||||
ApplyChanges ();
|
||||
GUILayout.EndVertical();
|
||||
break;
|
||||
|
||||
|
||||
case EnviroProfile.settingsModeLW.Audio:
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
myTarget.Audio.SFXHolderPrefab = (GameObject)EditorGUILayout.ObjectField ("SFX Prefab:", myTarget.Audio.SFXHolderPrefab, typeof(GameObject), false);
|
||||
serializedObject.Update ();
|
||||
thunderSFX.DoLayoutList ();
|
||||
serializedObject.ApplyModifiedProperties ();
|
||||
GUILayout.EndVertical();
|
||||
break;
|
||||
|
||||
case EnviroProfile.settingsModeLW.Satellites:
|
||||
|
||||
GUILayout.BeginVertical (" Layer Setup", boxStyleModified);
|
||||
GUILayout.Space (20);
|
||||
if (GUILayout.Button ("Add Satellite")) {
|
||||
myTarget.satelliteSettings.additionalSatellites.Add (new EnviroSatellite ());
|
||||
}
|
||||
|
||||
if (GUILayout.Button ("Apply Changes")) {
|
||||
myTarget.CheckSatellites ();
|
||||
}
|
||||
for (int i = 0; i < myTarget.satelliteSettings.additionalSatellites.Count; i++) {
|
||||
GUILayout.BeginVertical ("", boxStyleModified);
|
||||
GUILayout.Space (10);
|
||||
myTarget.satelliteSettings.additionalSatellites [i].name = EditorGUILayout.TextField ("Name", myTarget.satelliteSettings.additionalSatellites [i].name);
|
||||
GUILayout.Space (10);
|
||||
myTarget.satelliteSettings.additionalSatellites [i].prefab = (GameObject)EditorGUILayout.ObjectField ("Prefab", myTarget.satelliteSettings.additionalSatellites [i].prefab, typeof(GameObject), false);
|
||||
myTarget.satelliteSettings.additionalSatellites[i].xRot = EditorGUILayout.Slider("XRot", myTarget.satelliteSettings.additionalSatellites[i].xRot, 0f, 360f);
|
||||
myTarget.satelliteSettings.additionalSatellites[i].yRot = EditorGUILayout.Slider("YRot", myTarget.satelliteSettings.additionalSatellites[i].yRot, 0f, 360f);
|
||||
myTarget.satelliteSettings.additionalSatellites[i].zRot = EditorGUILayout.Slider("ZRot", myTarget.satelliteSettings.additionalSatellites[i].zRot, 0f, 360f);
|
||||
if (GUILayout.Button ("Remove"))
|
||||
{
|
||||
myTarget.satelliteSettings.additionalSatellites.Remove (myTarget.satelliteSettings.additionalSatellites [i]);
|
||||
myTarget.CheckSatellites ();
|
||||
}
|
||||
GUILayout.EndVertical ();
|
||||
}
|
||||
serializedObj.Update ();
|
||||
GUILayout.EndVertical ();
|
||||
break;
|
||||
|
||||
case EnviroProfile.settingsModeLW.Quality:
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUI.BeginChangeCheck ();
|
||||
EditorGUILayout.PropertyField (effectQuality, true, null);
|
||||
EditorGUILayout.PropertyField (updateInterval, true, null);
|
||||
ApplyChanges ();
|
||||
GUILayout.EndVertical();
|
||||
break;
|
||||
}
|
||||
}
|
||||
GUILayout.EndVertical ();
|
||||
|
||||
}
|
||||
GUILayout.EndVertical ();
|
||||
|
||||
if (myTarget.profile != null) {
|
||||
EditorGUI.BeginChangeCheck ();
|
||||
// Begin Setup
|
||||
GUILayout.BeginVertical ("", boxStyle);
|
||||
// Player Setup
|
||||
if ((myTarget.Player == null || myTarget.PlayerCamera == null) && !myTarget.AssignInRuntime)
|
||||
GUI.backgroundColor = modifiedColor;
|
||||
else if ((myTarget.Player != null && myTarget.PlayerCamera != null) || myTarget.AssignInRuntime)
|
||||
GUI.backgroundColor = greenColor;
|
||||
|
||||
GUILayout.BeginVertical ("", boxStyleModified);
|
||||
GUI.backgroundColor = Color.white;
|
||||
myTarget.profile.showPlayerSetup = GUILayout.Toggle(myTarget.profile.showPlayerSetup, "Player & Camera Setup", headerFoldout);
|
||||
if (myTarget.profile.showPlayerSetup) {
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUILayout.PropertyField (Player, true, null);
|
||||
EditorGUILayout.PropertyField (Camera, true, null);
|
||||
GUILayout.EndVertical();
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
AssignOnRuntime.boolValue = EditorGUILayout.BeginToggleGroup ("Assign On Runtime", AssignOnRuntime.boolValue);
|
||||
PlayerTag.stringValue = EditorGUILayout.TagField ("Player Tag", PlayerTag.stringValue);
|
||||
CameraTag.stringValue = EditorGUILayout.TagField ("Camera Tag", CameraTag.stringValue);
|
||||
EditorGUILayout.EndToggleGroup ();
|
||||
GUILayout.EndVertical();
|
||||
}
|
||||
|
||||
GUILayout.EndVertical ();
|
||||
|
||||
|
||||
/// Render Setup
|
||||
if (myTarget.tonemapping)
|
||||
GUI.backgroundColor = modifiedColor;
|
||||
else
|
||||
GUI.backgroundColor = boxColor1;
|
||||
GUILayout.BeginVertical ("", boxStyleModified);
|
||||
GUI.backgroundColor = Color.white;
|
||||
myTarget.profile.showRenderingSetup = GUILayout.Toggle(myTarget.profile.showRenderingSetup, "Rendering Setup", headerFoldout);
|
||||
if (myTarget.profile.showRenderingSetup) {
|
||||
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUILayout.LabelField("Tonemapping Settings", headerStyle, null);
|
||||
EditorGUILayout.PropertyField(tonemapping, true, null);
|
||||
if (myTarget.tonemapping)
|
||||
{
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUILayout.LabelField("Please consider to deactivate tonemapping option here and use post processing tonemapping instead for best results!", wrapStyle, null);
|
||||
GUILayout.EndVertical();
|
||||
}
|
||||
GUILayout.EndVertical();
|
||||
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUILayout.PropertyField(setCameraClearFlags, true, null);
|
||||
GUILayout.EndVertical();
|
||||
|
||||
|
||||
}
|
||||
|
||||
GUILayout.EndVertical ();
|
||||
|
||||
/// Components Setup
|
||||
GUI.backgroundColor = boxColor1;
|
||||
GUILayout.BeginVertical ("", boxStyleModified);
|
||||
GUI.backgroundColor = Color.white;
|
||||
myTarget.profile.showComponentsSetup = GUILayout.Toggle(myTarget.profile.showComponentsSetup, "Component Setup", headerFoldout);
|
||||
if (myTarget.profile.showComponentsSetup)
|
||||
{
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
EditorGUILayout.PropertyField (Sun, true, null);
|
||||
EditorGUILayout.PropertyField (Moon, true, null);
|
||||
EditorGUILayout.PropertyField (DirectLight, true, null);
|
||||
EditorGUILayout.PropertyField(AdditionalDirectLight, true, null);
|
||||
EditorGUILayout.PropertyField (LightningGenerator, true, null);
|
||||
EditorGUILayout.PropertyField (windZone, true, null);
|
||||
EditorGUILayout.PropertyField (GlobalReflectionProbe, true, null);
|
||||
EditorGUILayout.PropertyField (satellites, true, null);
|
||||
EditorGUILayout.PropertyField (starsRotation, true, null);
|
||||
EditorGUILayout.PropertyField (particleClouds, true, null);
|
||||
GUILayout.EndVertical();
|
||||
|
||||
}
|
||||
GUILayout.EndVertical ();
|
||||
GUILayout.EndVertical ();
|
||||
|
||||
|
||||
|
||||
////////////
|
||||
// Begin Controls
|
||||
GUILayout.BeginVertical ("", boxStyle);
|
||||
// Time Control
|
||||
GUI.backgroundColor = boxColor1;
|
||||
GUILayout.BeginVertical ("", boxStyleModified);
|
||||
GUI.backgroundColor = Color.white;
|
||||
myTarget.profile.showTimeUI = GUILayout.Toggle(myTarget.profile.showTimeUI, "Time and Location Controls", headerFoldout);
|
||||
if (myTarget.profile.showTimeUI) {
|
||||
GUILayout.BeginVertical ("Time", boxStyleModified);
|
||||
GUILayout.Space (20);
|
||||
EditorGUILayout.PropertyField (ProgressMode, true, null);
|
||||
GUILayout.Space (5);
|
||||
EditorGUILayout.PropertyField (Seconds, true, null);
|
||||
EditorGUILayout.PropertyField (Minutes, true, null);
|
||||
EditorGUILayout.PropertyField (Hours, true, null);
|
||||
EditorGUILayout.PropertyField (Days, true, null);
|
||||
EditorGUILayout.PropertyField (Years, true, null);
|
||||
GUILayout.Space(10);
|
||||
EditorGUILayout.PropertyField (DaysInYear, true, null);
|
||||
GUILayout.Space(10);
|
||||
EditorGUILayout.PropertyField(cycleLenghtInMinutes, true, null);
|
||||
EditorGUILayout.PropertyField (DayLength, true, null);
|
||||
EditorGUILayout.PropertyField (NightLength, true, null);
|
||||
EditorGUILayout.PropertyField(dayNightSwitch, true, null);
|
||||
GUILayout.EndVertical ();
|
||||
GUILayout.BeginVertical ("Season", boxStyleModified);
|
||||
GUILayout.Space (20);
|
||||
EditorGUILayout.PropertyField (UpdateSeason, true, null);
|
||||
EditorGUILayout.PropertyField (CurrentSeason, true, null);
|
||||
GUILayout.EndVertical ();
|
||||
GUILayout.BeginVertical ("Location", boxStyleModified);
|
||||
GUILayout.Space (20);
|
||||
EditorGUILayout.PropertyField (UTC, true, null);
|
||||
GUILayout.Space (10);
|
||||
EditorGUILayout.PropertyField (Latitude, true, null);
|
||||
EditorGUILayout.PropertyField (Longitude, true, null);
|
||||
GUILayout.EndVertical ();
|
||||
}
|
||||
|
||||
GUILayout.EndVertical ();
|
||||
// Time End
|
||||
// Weather Control
|
||||
GUI.backgroundColor = boxColor1;
|
||||
GUILayout.BeginVertical ("", boxStyleModified);
|
||||
GUI.backgroundColor = Color.white;
|
||||
myTarget.profile.showWeatherUI = GUILayout.Toggle(myTarget.profile.showWeatherUI, "Weather Controls", headerFoldout);
|
||||
if (myTarget.profile.showWeatherUI) {
|
||||
|
||||
GUILayout.BeginVertical ("Weather", boxStyleModified);
|
||||
GUILayout.Space (20);
|
||||
EditorGUILayout.PropertyField(UpdateWeather, true, null);
|
||||
EditorGUILayout.PropertyField (StartWeather, true, null);
|
||||
GUILayout.Space (15);
|
||||
if (Application.isPlaying) {
|
||||
if (myTarget.Weather.weatherPresets.Count > 0) {
|
||||
GUIContent[] zonePrefabs = new GUIContent[myTarget.Weather.weatherPresets.Count];
|
||||
for (int idx = 0; idx < zonePrefabs.Length; idx++) {
|
||||
zonePrefabs [idx] = new GUIContent (myTarget.Weather.weatherPresets [idx].Name);
|
||||
}
|
||||
int weatherID = EditorGUILayout.Popup (new GUIContent ("Current Weather"), myTarget.GetActiveWeatherID (), zonePrefabs);
|
||||
myTarget.ChangeWeather (weatherID);
|
||||
}
|
||||
} else
|
||||
EditorGUILayout.LabelField ("Weather can only be changed in runtime!");
|
||||
|
||||
if (GUILayout.Button ("Edit current Weather Preset")) {
|
||||
if(myTarget.Weather.currentActiveWeatherPreset != null)
|
||||
Selection.activeObject = myTarget.Weather.currentActiveWeatherPreset;
|
||||
else if(myTarget.Weather.startWeatherPreset != null)
|
||||
Selection.activeObject = myTarget.Weather.startWeatherPreset;
|
||||
}
|
||||
GUILayout.EndVertical ();
|
||||
GUILayout.BeginVertical ("Zones", boxStyleModified);
|
||||
GUILayout.Space (20);
|
||||
myTarget.Weather.currentActiveZone = (EnviroZone)EditorGUILayout.ObjectField ("Current Zone", myTarget.Weather.currentActiveZone, typeof(EnviroZone), true);
|
||||
GUILayout.EndVertical ();
|
||||
}
|
||||
GUILayout.EndVertical ();
|
||||
// Weather End
|
||||
// Effects Control
|
||||
GUI.backgroundColor = boxColor1;
|
||||
GUILayout.BeginVertical ("", boxStyleModified);
|
||||
GUI.backgroundColor = Color.white;
|
||||
myTarget.profile.showEffectsUI = GUILayout.Toggle(myTarget.profile.showEffectsUI, "Feature Controls", headerFoldout);
|
||||
if (myTarget.profile.showEffectsUI) {
|
||||
GUILayout.BeginVertical("Features", boxStyleModified);
|
||||
GUILayout.Space(20);
|
||||
EditorGUILayout.PropertyField (usePostEffectFog, true, null);
|
||||
EditorGUILayout.PropertyField (renderClouds, true, null);
|
||||
EditorGUILayout.PropertyField (EnableSunShafts, true, null);
|
||||
EditorGUILayout.PropertyField (EnableMoonShafts, true, null);
|
||||
GUILayout.EndVertical();
|
||||
|
||||
GUILayout.BeginVertical("Scene Preview", boxStyleModified);
|
||||
GUILayout.Space(20);
|
||||
EditorGUILayout.PropertyField(showFogInEditor, true, null);
|
||||
GUILayout.EndVertical();
|
||||
}
|
||||
|
||||
GUILayout.EndVertical ();
|
||||
// Effects End
|
||||
// Audio Control
|
||||
GUI.backgroundColor = boxColor1;
|
||||
GUILayout.BeginVertical("", boxStyleModified);
|
||||
GUI.backgroundColor = Color.white;
|
||||
myTarget.profile.showAudioUI = GUILayout.Toggle(myTarget.profile.showAudioUI, "Audio Controls", headerFoldout);
|
||||
if (myTarget.profile.showAudioUI) {
|
||||
GUILayout.BeginVertical ("", boxStyleModified);
|
||||
EditorGUILayout.PropertyField (AmbientVolume, true, null);
|
||||
EditorGUILayout.PropertyField (WeatherVolume, true, null);
|
||||
GUILayout.EndVertical ();
|
||||
}
|
||||
GUILayout.EndVertical ();
|
||||
// Audio End
|
||||
/////////////
|
||||
EditorGUILayout.EndVertical ();
|
||||
} else {
|
||||
GUILayout.BeginVertical ("", boxStyle);
|
||||
EditorGUILayout.LabelField ("No profile assigned!");
|
||||
if (GUILayout.Button ("Create and assign new profile!")) {
|
||||
myTarget.profile = EnviroProfileCreation.CreateNewEnviroProfile ();
|
||||
myTarget.ApplyProfile (myTarget.profile);
|
||||
myTarget.ReInit ();
|
||||
}
|
||||
GUILayout.EndVertical ();
|
||||
}
|
||||
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
serializedObj.ApplyModifiedProperties();
|
||||
EditorUtility.SetDirty(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0c71f3f9e9cb0c340b07643659cb7656
|
||||
timeCreated: 1497912081
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,965 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//////////// EnviroSky- Renders sky with sun, moon, clouds and weather. ////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
using UnityEngine;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
|
||||
[ExecuteInEditMode]
|
||||
public class EnviroSkyLite : EnviroCore
|
||||
{
|
||||
#region Var
|
||||
private static EnviroSkyLite _instance; // Creat a static instance for easy access!
|
||||
|
||||
public static EnviroSkyLite instance
|
||||
{
|
||||
get
|
||||
{
|
||||
//If _instance hasn't been set yet, we grab it from the scene!
|
||||
//This will only happen the first time this reference is used.
|
||||
if (_instance == null)
|
||||
_instance = GameObject.FindObjectOfType<EnviroSkyLite>();
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
|
||||
public bool useParticleClouds = false;
|
||||
public bool usePostEffectFog = true;
|
||||
public bool showFogInEditor = true;
|
||||
|
||||
//Camera Components
|
||||
[HideInInspector]public EnviroSkyRenderingLW EnviroSkyRender;
|
||||
|
||||
//Materials
|
||||
[HideInInspector]public Material skyMat;
|
||||
|
||||
private double lastMoonUpdate;
|
||||
|
||||
//Inspector
|
||||
[HideInInspector]public bool showSettings = false;
|
||||
|
||||
#endregion
|
||||
|
||||
void Start()
|
||||
{
|
||||
//Check for Manager first!
|
||||
if (EnviroSkyMgr.instance == null)
|
||||
{
|
||||
Debug.Log("Please use the EnviroSky Manager!");
|
||||
gameObject.SetActive(false);
|
||||
return;
|
||||
}
|
||||
|
||||
//Time
|
||||
SetTime(GameTime.Years, GameTime.Days, GameTime.Hours, GameTime.Minutes, GameTime.Seconds);
|
||||
lastHourUpdate = Mathf.RoundToInt(internalHour);
|
||||
currentTimeInHours = GetInHours(internalHour, GameTime.Days, GameTime.Years, GameTime.DaysInYear);
|
||||
Weather.weatherFullyChanged = false;
|
||||
thunder = 0f;
|
||||
|
||||
// Check for Profile
|
||||
if (profileLoaded)
|
||||
{
|
||||
InvokeRepeating("UpdateEnviroment", 0, qualitySettings.UpdateInterval);// Vegetation Updates
|
||||
CreateEffects("Enviro Effects LW"); //Create Weather Effects Holder
|
||||
|
||||
// Instantiate Lightning Effect
|
||||
if (weatherSettings.lightningEffect != null && lightningEffect == null)
|
||||
lightningEffect = Instantiate(weatherSettings.lightningEffect, EffectsHolder.transform).GetComponent<ParticleSystem>();
|
||||
|
||||
if (PlayerCamera != null && Player != null && AssignInRuntime == false && profile != null)
|
||||
{
|
||||
Init();
|
||||
}
|
||||
}
|
||||
|
||||
StartCoroutine(SetSkyBoxLateAdditive());
|
||||
}
|
||||
|
||||
private IEnumerator SetSkyBoxLateAdditive()
|
||||
{
|
||||
yield return 0;
|
||||
if (skyMat != null && RenderSettings.skybox != skyMat)
|
||||
SetupSkybox();
|
||||
}
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
//Check for Manager first!
|
||||
if (EnviroSkyMgr.instance == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (Weather.zones.Count < 1)
|
||||
Weather.zones.Add(GetComponent<EnviroZone>());
|
||||
|
||||
//Set Weather
|
||||
Weather.currentActiveWeatherPreset = Weather.zones[0].currentActiveZoneWeatherPreset;
|
||||
Weather.lastActiveWeatherPreset = Weather.currentActiveWeatherPreset;
|
||||
|
||||
if (profile == null)
|
||||
{
|
||||
Debug.LogError("No profile assigned!");
|
||||
return;
|
||||
}
|
||||
|
||||
// Auto Load profile
|
||||
if (profileLoaded == false)
|
||||
ApplyProfile(profile);
|
||||
|
||||
PreInit();
|
||||
|
||||
if (AssignInRuntime)
|
||||
{
|
||||
started = false; //Wait for assignment
|
||||
}
|
||||
else if (PlayerCamera != null && Player != null)
|
||||
{
|
||||
Init();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Re-Initilize the system.
|
||||
/// </summary>
|
||||
public void ReInit()
|
||||
{
|
||||
OnEnable();
|
||||
}
|
||||
/// <summary>
|
||||
/// Pee-Initilize the system.
|
||||
/// </summary>
|
||||
private void PreInit()
|
||||
{
|
||||
// Check time
|
||||
if (GameTime.solarTime < GameTime.dayNightSwitch)
|
||||
isNight = true;
|
||||
else
|
||||
isNight = false;
|
||||
|
||||
//return when in server mode!
|
||||
if (serverMode)
|
||||
return;
|
||||
|
||||
CheckSatellites();
|
||||
|
||||
// Setup Fog Mode
|
||||
RenderSettings.fogMode = fogSettings.Fogmode;
|
||||
|
||||
// Setup Skybox Material
|
||||
SetupSkybox();
|
||||
|
||||
// Set ambient mode
|
||||
RenderSettings.ambientMode = lightSettings.ambientMode;
|
||||
|
||||
// Set Fog
|
||||
//RenderSettings.fogDensity = 0f;
|
||||
//RenderSettings.fogStartDistance = 0f;
|
||||
//RenderSettings.fogEndDistance = 1000f;
|
||||
|
||||
// Setup ReflectionProbe
|
||||
if (Components.GlobalReflectionProbe == null)
|
||||
{
|
||||
GameObject temp;
|
||||
|
||||
foreach (Transform child in transform)
|
||||
{
|
||||
if (child.name == "GlobalReflections")
|
||||
{
|
||||
temp = child.gameObject;
|
||||
Components.GlobalReflectionProbe = temp.GetComponent<EnviroReflectionProbe>();
|
||||
if (Components.GlobalReflectionProbe == null)
|
||||
Components.GlobalReflectionProbe = temp.AddComponent<EnviroReflectionProbe>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!Components.Sun)
|
||||
{
|
||||
Debug.LogError("Please set sun object in inspector!");
|
||||
}
|
||||
|
||||
if (!Components.satellites)
|
||||
{
|
||||
Debug.LogError("Please set satellite object in inspector!");
|
||||
}
|
||||
|
||||
if (Components.Moon)
|
||||
{
|
||||
MoonTransform = Components.Moon.transform;
|
||||
|
||||
//Deactivate old moon for now.
|
||||
if (MoonTransform.GetComponent<MeshRenderer>())
|
||||
MoonTransform.GetComponent<MeshRenderer>().enabled = false;
|
||||
}
|
||||
else { Debug.LogError("Please set moon object in inspector!"); }
|
||||
|
||||
|
||||
if (lightSettings.directionalLightMode == EnviroLightSettings.LightingMode.Single)
|
||||
{
|
||||
SetupMainLight();
|
||||
}
|
||||
else
|
||||
{
|
||||
SetupMainLight();
|
||||
SetupAdditionalLight();
|
||||
}
|
||||
|
||||
if (Components.particleClouds)
|
||||
{
|
||||
ParticleSystem[] systems = Components.particleClouds.GetComponentsInChildren<ParticleSystem>();
|
||||
if (systems.Length > 0)
|
||||
particleClouds.layer1System = systems[0];
|
||||
if (systems.Length > 1)
|
||||
particleClouds.layer2System = systems[1];
|
||||
|
||||
if (particleClouds.layer1System != null)
|
||||
particleClouds.layer1Material = particleClouds.layer1System.GetComponent<ParticleSystemRenderer>().sharedMaterial;
|
||||
|
||||
if (particleClouds.layer2System != null)
|
||||
particleClouds.layer2Material = particleClouds.layer2System.GetComponent<ParticleSystemRenderer>().sharedMaterial;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("Please set particleCLouds object in inspector!");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creation and assignment of skybox
|
||||
/// </summary>
|
||||
public void SetupSkybox()
|
||||
{
|
||||
if (skySettings.skyboxModeLW == EnviroSkySettings.SkyboxModiLW.Simple)
|
||||
{
|
||||
if (skyMat != null)
|
||||
DestroyImmediate(skyMat);
|
||||
|
||||
skyMat = new Material(Shader.Find("Enviro/Lite/SkyboxSimple"));
|
||||
|
||||
if (skySettings.starsCubeMap != null)
|
||||
skyMat.SetTexture("_Stars", skySettings.starsCubeMap);
|
||||
if (skySettings.galaxyCubeMap != null)
|
||||
skyMat.SetTexture("_Galaxy", skySettings.galaxyCubeMap);
|
||||
|
||||
RenderSettings.skybox = skyMat;
|
||||
}
|
||||
else if (skySettings.skyboxMode == EnviroSkySettings.SkyboxModi.CustomSkybox)
|
||||
{
|
||||
if (skySettings.customSkyboxMaterial != null)
|
||||
RenderSettings.skybox = skySettings.customSkyboxMaterial;
|
||||
}
|
||||
|
||||
//Update environment texture in next frame!
|
||||
if (lightSettings.ambientMode == UnityEngine.Rendering.AmbientMode.Skybox)
|
||||
StartCoroutine(UpdateAmbientLightWithDelay());
|
||||
}
|
||||
/// <summary>
|
||||
/// Update the environment texture for skybox ambient mode with one frame delay. Somehow not working in same frame as we create the skybox material.
|
||||
/// </summary>
|
||||
private IEnumerator UpdateAmbientLightWithDelay()
|
||||
{
|
||||
yield return 0;
|
||||
DynamicGI.UpdateEnvironment();
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// Final Initilization and startup.
|
||||
/// </summary>
|
||||
private void Init()
|
||||
{
|
||||
if (profile == null)
|
||||
return;
|
||||
|
||||
if (serverMode)
|
||||
{
|
||||
started = true;
|
||||
return;
|
||||
}
|
||||
|
||||
InitImageEffects();
|
||||
|
||||
// Setup Camera
|
||||
if (PlayerCamera != null)
|
||||
{
|
||||
|
||||
if (setCameraClearFlags)
|
||||
PlayerCamera.clearFlags = CameraClearFlags.Skybox;
|
||||
|
||||
Components.GlobalReflectionProbe.myProbe.farClipPlane = PlayerCamera.farClipPlane;
|
||||
}
|
||||
|
||||
started = true;
|
||||
}
|
||||
/// <summary>
|
||||
/// Creation and setup of post processing components.
|
||||
/// </summary>
|
||||
private void InitImageEffects()
|
||||
{
|
||||
|
||||
EnviroSkyRender = PlayerCamera.gameObject.GetComponent<EnviroSkyRenderingLW>();
|
||||
|
||||
if (EnviroSkyRender == null)
|
||||
EnviroSkyRender = PlayerCamera.gameObject.AddComponent<EnviroSkyRenderingLW>();
|
||||
|
||||
EnviroPostProcessing = PlayerCamera.gameObject.GetComponent<EnviroPostProcessing>();
|
||||
|
||||
if (EnviroPostProcessing == null)
|
||||
EnviroPostProcessing = PlayerCamera.gameObject.AddComponent<EnviroPostProcessing>();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Setup Main light that is eather used for sun and moon or only sun based on used lighting mode.
|
||||
/// </summary>
|
||||
private void SetupMainLight()
|
||||
{
|
||||
if (Components.DirectLight)
|
||||
{
|
||||
MainLight = Components.DirectLight.GetComponent<Light>();
|
||||
|
||||
if (EnviroSkyMgr.instance.dontDestroy && Application.isPlaying)
|
||||
DontDestroyOnLoad(Components.DirectLight);
|
||||
}
|
||||
else
|
||||
{
|
||||
GameObject oldLight = GameObject.Find("Enviro Directional Light");
|
||||
|
||||
if (oldLight != null)
|
||||
Components.DirectLight = oldLight.transform;
|
||||
else
|
||||
Components.DirectLight = CreateDirectionalLight(false);
|
||||
|
||||
MainLight = Components.DirectLight.GetComponent<Light>();
|
||||
|
||||
if (EnviroSkyMgr.instance.dontDestroy && Application.isPlaying)
|
||||
DontDestroyOnLoad(Components.DirectLight);
|
||||
}
|
||||
|
||||
//Remove the additional light if in single mode
|
||||
if (lightSettings.directionalLightMode == EnviroLightSettings.LightingMode.Single)
|
||||
{
|
||||
if (Components.AdditionalDirectLight != null)
|
||||
DestroyImmediate(Components.AdditionalDirectLight.gameObject);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Setup additional light that is used for moon in dual lighting mode.
|
||||
/// </summary>
|
||||
private void SetupAdditionalLight()
|
||||
{
|
||||
|
||||
if (Components.AdditionalDirectLight)
|
||||
{
|
||||
AdditionalLight = Components.AdditionalDirectLight.GetComponent<Light>();
|
||||
|
||||
if (EnviroSkyMgr.instance.dontDestroy && Application.isPlaying)
|
||||
DontDestroyOnLoad(Components.AdditionalDirectLight);
|
||||
}
|
||||
else
|
||||
{
|
||||
GameObject oldLight = GameObject.Find("Enviro Directional Light - Moon");
|
||||
|
||||
if (oldLight != null)
|
||||
Components.AdditionalDirectLight = oldLight.transform;
|
||||
else
|
||||
Components.AdditionalDirectLight = CreateDirectionalLight(true);
|
||||
|
||||
AdditionalLight = Components.DirectLight.GetComponent<Light>();
|
||||
|
||||
if (EnviroSkyMgr.instance.dontDestroy && Application.isPlaying)
|
||||
DontDestroyOnLoad(Components.AdditionalDirectLight);
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (profile == null)
|
||||
{
|
||||
Debug.Log("No profile applied! Please create and assign a profile.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!started && !serverMode)
|
||||
{
|
||||
UpdateTime(GameTime.DaysInYear);
|
||||
UpdateSunAndMoonPosition();
|
||||
UpdateSceneView();
|
||||
CalculateDirectLight();
|
||||
UpdateAmbientLight();
|
||||
UpdateReflections();
|
||||
|
||||
if (AssignInRuntime && PlayerTag != "" && CameraTag != "" && Application.isPlaying)
|
||||
{
|
||||
|
||||
// Search for Player by tag
|
||||
GameObject plr = GameObject.FindGameObjectWithTag(PlayerTag);
|
||||
if (plr != null)
|
||||
Player = plr;
|
||||
|
||||
// Search for camera by tag
|
||||
for (int i = 0; i < Camera.allCameras.Length; i++)
|
||||
{
|
||||
if (Camera.allCameras[i].tag == CameraTag)
|
||||
PlayerCamera = Camera.allCameras[i];
|
||||
}
|
||||
|
||||
if (Player != null && PlayerCamera != null)
|
||||
{
|
||||
Init();
|
||||
started = true;
|
||||
}
|
||||
else { started = false; return; }
|
||||
}
|
||||
else { started = false; return; }
|
||||
}
|
||||
|
||||
UpdateTime(GameTime.DaysInYear);
|
||||
ValidateParameters();
|
||||
|
||||
if (!serverMode)
|
||||
{
|
||||
UpdateSceneView();
|
||||
|
||||
if (!Application.isPlaying && Weather.startWeatherPreset != null && startMode == EnviroStartMode.Started)
|
||||
{
|
||||
UpdateClouds(Weather.startWeatherPreset, false);
|
||||
UpdateFog(Weather.startWeatherPreset, false);
|
||||
UpdateWeatherVariables(Weather.startWeatherPreset);
|
||||
#if AURA_IN_PROJECT
|
||||
if(EnviroSkyMgr.instance.aura2Support)
|
||||
UpdateAura2(Weather.startWeatherPreset, true);
|
||||
#endif
|
||||
}
|
||||
|
||||
UpdateAmbientLight();
|
||||
UpdateReflections();
|
||||
UpdateWeather();
|
||||
UpdateParticleClouds(useParticleClouds);
|
||||
UpdateSunAndMoonPosition();
|
||||
CalculateDirectLight();
|
||||
SetMaterialsVariables();
|
||||
|
||||
#if !ENVIRO_HDRP
|
||||
if (RenderSettings.skybox != skyMat)
|
||||
SetupSkybox();
|
||||
#endif
|
||||
|
||||
if (EnviroSkyRender == null && PlayerCamera != null)
|
||||
InitImageEffects();
|
||||
|
||||
// Switch to Unity forward fog for best performance.
|
||||
if(fogSettings.useUnityFog && PlayerCamera != null && PlayerCamera.actualRenderingPath == RenderingPath.Forward)
|
||||
{
|
||||
RenderSettings.fog = true;
|
||||
if(EnviroSkyRender != null && EnviroSkyRender.isActiveAndEnabled)
|
||||
EnviroSkyRender.enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
//Enable or Disable Enviro Fog Post Effect
|
||||
if (usePostEffectFog && EnviroSkyRender != null && !EnviroSkyRender.isActiveAndEnabled)
|
||||
EnviroSkyRender.enabled = true;
|
||||
else if (!usePostEffectFog && EnviroSkyRender != null && EnviroSkyRender.isActiveAndEnabled)
|
||||
EnviroSkyRender.enabled = false;
|
||||
}
|
||||
|
||||
if (!isNight && GameTime.solarTime < GameTime.dayNightSwitch)
|
||||
{
|
||||
isNight = true;
|
||||
if (Audio.AudioSourceAmbient != null)
|
||||
TryPlayAmbientSFX();
|
||||
EnviroSkyMgr.instance.NotifyIsNight();
|
||||
}
|
||||
else if (isNight && GameTime.solarTime >= GameTime.dayNightSwitch)
|
||||
{
|
||||
isNight = false;
|
||||
if (Audio.AudioSourceAmbient != null)
|
||||
TryPlayAmbientSFX();
|
||||
EnviroSkyMgr.instance.NotifyIsDay();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
UpdateWeather();
|
||||
|
||||
if (!isNight && GameTime.solarTime < GameTime.dayNightSwitch)
|
||||
{
|
||||
isNight = true;
|
||||
EnviroSkyMgr.instance.NotifyIsNight();
|
||||
}
|
||||
else if (isNight && GameTime.solarTime >= GameTime.dayNightSwitch)
|
||||
{
|
||||
isNight = false;
|
||||
EnviroSkyMgr.instance.NotifyIsDay();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LateUpdate()
|
||||
{
|
||||
if (!serverMode && PlayerCamera != null && Player != null)
|
||||
{
|
||||
transform.position = Player.transform.position;
|
||||
float scale = PlayerCamera.farClipPlane - (PlayerCamera.farClipPlane * 0.1f);
|
||||
transform.localScale = new Vector3(scale, scale, scale);
|
||||
|
||||
if (EffectsHolder != null)
|
||||
EffectsHolder.transform.position = Player.transform.position;
|
||||
}
|
||||
}
|
||||
|
||||
private void SetMaterialsVariables()
|
||||
{
|
||||
//Simple
|
||||
skyMat.SetFloat("_BlackGround", skySettings.blackGroundMode ? 1f : 0f);
|
||||
skyMat.SetColor("_SkyColor", skySettings.simpleSkyColor.Evaluate(GameTime.solarTime));
|
||||
skyMat.SetColor("_HorizonColor", skySettings.simpleHorizonColor.Evaluate(GameTime.solarTime));
|
||||
skyMat.SetColor("_SunColor", skySettings.simpleSunColor.Evaluate(GameTime.solarTime));
|
||||
skyMat.SetFloat("_SunDiskSizeSimple", skySettings.simpleSunDiskSize.Evaluate(GameTime.solarTime));
|
||||
skyMat.SetFloat("_StarsIntensity", skySettings.starsIntensity.Evaluate(GameTime.solarTime));
|
||||
|
||||
if (skySettings.moonPhaseMode == EnviroSkySettings.MoonPhases.Realistic)
|
||||
{
|
||||
float angle = Vector3.SignedAngle(Components.Moon.transform.forward, Components.Sun.transform.forward, transform.forward);
|
||||
|
||||
|
||||
if (GameTime.Latitude >= 0)
|
||||
{
|
||||
if (angle < 0)
|
||||
{
|
||||
customMoonPhase = Remap(angle, 0f, -180f, -2f, 0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
customMoonPhase = Remap(angle, 0f, 180f, 2f, 0f);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (angle < 0)
|
||||
{
|
||||
customMoonPhase = Remap(angle, 0f, -180f, 2f, 0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
customMoonPhase = Remap(angle, 0f, 180f, -2f, 0f);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
skyMat.SetVector("_moonParams", new Vector4(skySettings.moonSize, skySettings.glowSize, skySettings.moonGlow.Evaluate(GameTime.solarTime), customMoonPhase));
|
||||
skyMat.SetVector("_MoonDir", Components.Moon.transform.forward);
|
||||
skyMat.SetColor("_MoonColor", skySettings.moonColor);
|
||||
|
||||
if (skySettings.renderMoon)
|
||||
{
|
||||
if(skySettings.moonTexture != null)
|
||||
skyMat.SetTexture("_MoonTex", skySettings.moonTexture);
|
||||
}
|
||||
else
|
||||
{
|
||||
skyMat.SetTexture("_MoonTex", null);
|
||||
}
|
||||
|
||||
//Clouds
|
||||
skyMat.SetVector("_CloudAnimation", cirrusAnim);
|
||||
|
||||
//cirrus
|
||||
if (cloudsSettings.cirrusCloudsTexture != null)
|
||||
skyMat.SetTexture("_CloudMap", cloudsSettings.cirrusCloudsTexture);
|
||||
|
||||
skyMat.SetColor("_CloudColor", cloudsSettings.cirrusCloudsColor.Evaluate(GameTime.solarTime));
|
||||
skyMat.SetFloat("_CloudAltitude", cloudsSettings.cirrusCloudsAltitude);
|
||||
skyMat.SetFloat("_CloudAlpha", cloudsConfig.cirrusAlpha);
|
||||
skyMat.SetFloat("_CloudCoverage", cloudsConfig.cirrusCoverage);
|
||||
skyMat.SetFloat("_CloudColorPower", cloudsConfig.cirrusColorPow);
|
||||
|
||||
//Flat Clouds
|
||||
if (cloudsSettings.flatCloudsBaseTexture != null)
|
||||
skyMat.SetTexture("_FlatCloudsBaseTexture", cloudsSettings.flatCloudsBaseTexture);
|
||||
|
||||
if (cloudsSettings.flatCloudsDetailTexture != null)
|
||||
skyMat.SetTexture("_FlatCloudsDetailTexture", cloudsSettings.flatCloudsDetailTexture);
|
||||
|
||||
skyMat.SetVector("_FlatCloudsLightDirection", Components.DirectLight.transform.forward);
|
||||
|
||||
skyMat.SetColor("_FlatCloudsLightColor", cloudsSettings.flatCloudsDirectLightColor.Evaluate(GameTime.solarTime));
|
||||
skyMat.SetColor("_FlatCloudsAmbientColor", cloudsSettings.flatCloudsAmbientLightColor.Evaluate(GameTime.solarTime));
|
||||
skyMat.SetVector("_FlatCloudsParams", new Vector4(cloudsConfig.flatCoverage, cloudsConfig.flatCloudsDensity, cloudsSettings.flatCloudsAltitude,tonemapping ? 1f : 0f));
|
||||
skyMat.SetVector("_FlatCloudsTiling", new Vector4(cloudsSettings.flatCloudsBaseTextureTiling, cloudsSettings.flatCloudsDetailTextureTiling, 0f,0f));
|
||||
skyMat.SetVector("_FlatCloudsLightingParams", new Vector4(cloudsConfig.flatCloudsDirectLightIntensity, cloudsConfig.flatCloudsAmbientLightIntensity, cloudsConfig.flatCloudsAbsorbtion, cloudsConfig.flatCloudsHGPhase));
|
||||
skyMat.SetVector("_FlatCloudsAnimation", new Vector4(cloudFlatBaseAnim.x, cloudFlatBaseAnim.y, cloudFlatDetailAnim.x, cloudFlatDetailAnim.y));
|
||||
skyMat.SetFloat("_CloudsExposure", cloudsSettings.cloudsExposure);
|
||||
|
||||
//Globals
|
||||
Shader.SetGlobalVector("_SunDir", -Components.Sun.transform.forward);
|
||||
Shader.SetGlobalColor("_EnviroLighting", lightSettings.LightColor.Evaluate(GameTime.solarTime));
|
||||
// Moon
|
||||
Shader.SetGlobalVector("_SunPosition", Components.Sun.transform.localPosition + (-Components.Sun.transform.forward * 10000f));
|
||||
Shader.SetGlobalVector("_MoonPosition", Components.Moon.transform.localPosition);
|
||||
//Color Mods
|
||||
Shader.SetGlobalColor("_weatherSkyMod", Color.Lerp(currentWeatherSkyMod, interiorZoneSettings.currentInteriorSkyboxMod, interiorZoneSettings.currentInteriorSkyboxMod.a));
|
||||
Shader.SetGlobalColor("_weatherFogMod", Color.Lerp(currentWeatherFogMod, interiorZoneSettings.currentInteriorFogColorMod, interiorZoneSettings.currentInteriorFogColorMod.a));
|
||||
//Fog
|
||||
Shader.SetGlobalVector("_EnviroSkyFog", new Vector4(Fog.skyFogHeight, Fog.skyFogIntensity, Fog.skyFogStart, fogSettings.heightFogIntensity));
|
||||
Shader.SetGlobalFloat("_distanceFogIntensity", fogSettings.distanceFogIntensity);
|
||||
Shader.SetGlobalFloat("_maximumFogDensity", 1 - fogSettings.maximumFogDensity);
|
||||
|
||||
if (fogSettings.useSimpleFog)
|
||||
{
|
||||
Shader.EnableKeyword("ENVIRO_SIMPLE_FOG");
|
||||
Shader.SetGlobalVector("_EnviroParams", new Vector4(Mathf.Clamp(1f - GameTime.solarTime, 0.5f, 1f), fogSettings.distanceFog ? 1f : 0f, 0f, tonemapping ? 1f : 0f));
|
||||
}
|
||||
else
|
||||
{
|
||||
Shader.SetGlobalColor("_scatteringColor", skySettings.scatteringColor.Evaluate(GameTime.solarTime));
|
||||
Shader.SetGlobalFloat("_scatteringStrenght", Fog.scatteringStrenght);
|
||||
Shader.SetGlobalFloat("_scatteringPower", skySettings.scatteringCurve.Evaluate(GameTime.solarTime));
|
||||
Shader.SetGlobalFloat("_SunBlocking", Fog.sunBlocking);
|
||||
Shader.SetGlobalVector("_EnviroParams", new Vector4(Mathf.Clamp(1f - GameTime.solarTime, 0.5f, 1f), fogSettings.distanceFog ? 1f : 0f, fogSettings.heightFog ? 1f : 0f, tonemapping ? 1f : 0f));
|
||||
Shader.SetGlobalVector("_Bm", BetaMie(skySettings.turbidity, skySettings.waveLength) * (skySettings.mie * (Fog.scatteringStrenght * GameTime.solarTime)));
|
||||
Shader.SetGlobalVector("_BmScene", BetaMie(skySettings.turbidity, skySettings.waveLength) * (fogSettings.mie * (Fog.scatteringStrenght * GameTime.solarTime)));
|
||||
Shader.SetGlobalVector("_Br", BetaRay(skySettings.waveLength) * skySettings.rayleigh);
|
||||
Shader.SetGlobalVector("_mieG", GetMieG(skySettings.g));
|
||||
Shader.SetGlobalVector("_mieGScene", GetMieGScene(skySettings.g));
|
||||
Shader.SetGlobalVector("_SunParameters", new Vector4(skySettings.sunIntensity, skySettings.sunDiskScale, skySettings.sunDiskIntensity, 0f));
|
||||
Shader.SetGlobalFloat("_FogExposure", fogSettings.fogExposure);
|
||||
Shader.SetGlobalFloat("_SkyLuminance", skySettings.skyLuminence.Evaluate(GameTime.solarTime));
|
||||
Shader.SetGlobalFloat("_SkyColorPower", skySettings.skyColorPower.Evaluate(GameTime.solarTime));
|
||||
Shader.SetGlobalFloat("_heightFogIntensity", fogSettings.heightFogIntensity);
|
||||
Shader.SetGlobalFloat("_lightning", thunder);
|
||||
Shader.DisableKeyword("ENVIRO_SIMPLE_FOG");
|
||||
}
|
||||
|
||||
Shader.DisableKeyword("ENVIROVOLUMELIGHT");
|
||||
}
|
||||
|
||||
// Make the parameters stay in reasonable range
|
||||
private void ValidateParameters()
|
||||
{
|
||||
// Keep GameTime Parameters right!
|
||||
internalHour = Mathf.Repeat(internalHour, 24f);
|
||||
GameTime.Longitude = Mathf.Clamp(GameTime.Longitude, -180, 180);
|
||||
GameTime.Latitude = Mathf.Clamp(GameTime.Latitude, -90, 90);
|
||||
#if UNITY_EDITOR
|
||||
if (GameTime.cycleLengthInMinutes <= 0f)
|
||||
{
|
||||
if (GameTime.cycleLengthInMinutes < 0f)
|
||||
GameTime.cycleLengthInMinutes = 0f;
|
||||
internalHour = 12f;
|
||||
customMoonPhase = 0f;
|
||||
}
|
||||
|
||||
if (GameTime.Days < 0)
|
||||
GameTime.Days = 0;
|
||||
|
||||
if (GameTime.Years < 0)
|
||||
GameTime.Years = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
private void UpdateClouds(EnviroWeatherPreset i, bool withTransition)
|
||||
{
|
||||
if (i == null)
|
||||
return;
|
||||
|
||||
float speed = 500f * Time.deltaTime;
|
||||
|
||||
if (withTransition)
|
||||
speed = weatherSettings.cloudTransitionSpeed * Time.deltaTime;
|
||||
|
||||
cloudsConfig.cirrusAlpha = Mathf.Lerp(cloudsConfig.cirrusAlpha, i.cloudsConfig.cirrusAlpha, speed);
|
||||
cloudsConfig.cirrusCoverage = Mathf.Lerp(cloudsConfig.cirrusCoverage, i.cloudsConfig.cirrusCoverage, speed);
|
||||
cloudsConfig.cirrusColorPow = Mathf.Lerp(cloudsConfig.cirrusColorPow, i.cloudsConfig.cirrusColorPow, speed);
|
||||
|
||||
cloudsConfig.particleLayer1Alpha = Mathf.Lerp(cloudsConfig.particleLayer1Alpha, i.cloudsConfig.particleLayer1Alpha, speed);
|
||||
cloudsConfig.particleLayer1Brightness = Mathf.Lerp(cloudsConfig.particleLayer1Brightness, i.cloudsConfig.particleLayer1Brightness, speed);
|
||||
cloudsConfig.particleLayer1ColorPow = Mathf.Lerp(cloudsConfig.particleLayer1ColorPow, i.cloudsConfig.particleLayer1ColorPow, speed);
|
||||
|
||||
cloudsConfig.particleLayer2Alpha = Mathf.Lerp(cloudsConfig.particleLayer2Alpha, i.cloudsConfig.particleLayer2Alpha, speed);
|
||||
cloudsConfig.particleLayer2Brightness = Mathf.Lerp(cloudsConfig.particleLayer2Brightness, i.cloudsConfig.particleLayer2Brightness, speed);
|
||||
cloudsConfig.particleLayer2ColorPow = Mathf.Lerp(cloudsConfig.particleLayer2ColorPow, i.cloudsConfig.particleLayer2ColorPow, speed);
|
||||
|
||||
|
||||
cloudsConfig.flatCloudsAbsorbtion = Mathf.Lerp(cloudsConfig.flatCloudsAbsorbtion, i.cloudsConfig.flatCloudsAbsorbtion, speed);
|
||||
cloudsConfig.flatCoverage = Mathf.Lerp(cloudsConfig.flatCoverage, i.cloudsConfig.flatCoverage, speed);
|
||||
cloudsConfig.flatCloudsAmbientLightIntensity = Mathf.Lerp(cloudsConfig.flatCloudsAmbientLightIntensity, i.cloudsConfig.flatCloudsAmbientLightIntensity, speed);
|
||||
cloudsConfig.flatCloudsDirectLightIntensity = Mathf.Lerp(cloudsConfig.flatCloudsDirectLightIntensity, i.cloudsConfig.flatCloudsDirectLightIntensity, speed);
|
||||
cloudsConfig.flatCloudsDensity = Mathf.Lerp(cloudsConfig.flatCloudsDensity, i.cloudsConfig.flatCloudsDensity, speed);
|
||||
cloudsConfig.flatCloudsHGPhase = Mathf.Lerp(cloudsConfig.flatCloudsHGPhase, i.cloudsConfig.flatCloudsHGPhase, speed);
|
||||
|
||||
shadowIntensityMod = Mathf.Lerp(shadowIntensityMod, i.shadowIntensityMod, speed);
|
||||
|
||||
currentWeatherSkyMod = Color.Lerp(currentWeatherSkyMod, i.weatherSkyMod.Evaluate(GameTime.solarTime), speed);
|
||||
currentWeatherFogMod = Color.Lerp(currentWeatherFogMod, i.weatherFogMod.Evaluate(GameTime.solarTime), speed * 10);
|
||||
currentWeatherLightMod = Color.Lerp(currentWeatherLightMod, i.weatherLightMod.Evaluate(GameTime.solarTime), speed);
|
||||
}
|
||||
|
||||
private void UpdateFog(EnviroWeatherPreset i, bool withTransition)
|
||||
{
|
||||
// Set the Fog color to light color to match Day-Night cycle and weather
|
||||
Color fogClr = Color.Lerp(fogSettings.simpleFogColor.Evaluate(GameTime.solarTime), customFogColor, customFogIntensity);
|
||||
RenderSettings.fogColor = Color.Lerp(fogClr, currentWeatherFogMod, currentWeatherFogMod.a);
|
||||
|
||||
if (i != null)
|
||||
{
|
||||
|
||||
float speed = 500f * Time.deltaTime;
|
||||
|
||||
if (withTransition)
|
||||
speed = weatherSettings.fogTransitionSpeed * Time.deltaTime;
|
||||
|
||||
if (fogSettings.Fogmode == FogMode.Linear)
|
||||
{
|
||||
RenderSettings.fogEndDistance = Mathf.Lerp(RenderSettings.fogEndDistance, i.fogDistance, speed);
|
||||
RenderSettings.fogStartDistance = Mathf.Lerp(RenderSettings.fogStartDistance, i.fogStartDistance, speed);
|
||||
}
|
||||
else
|
||||
{
|
||||
float targetDensity = i.fogDensity;
|
||||
|
||||
if (fogSettings.useUnityFog)
|
||||
targetDensity *= fogSettings.distanceFogIntensity;
|
||||
|
||||
if (updateFogDensity)
|
||||
RenderSettings.fogDensity = Mathf.Lerp(RenderSettings.fogDensity, targetDensity, speed) * interiorZoneSettings.currentInteriorFogMod;
|
||||
}
|
||||
|
||||
Fog.scatteringStrenght = Mathf.Lerp(Fog.scatteringStrenght, i.FogScatteringIntensity, speed);
|
||||
Fog.sunBlocking = Mathf.Lerp(Fog.sunBlocking, i.fogSunBlocking, speed);
|
||||
Fog.moonIntensity = Mathf.Lerp(Fog.moonIntensity, i.moonIntensity, speed);
|
||||
fogSettings.heightDensity = Mathf.Lerp(fogSettings.heightDensity, i.heightFogDensity, speed);
|
||||
Fog.skyFogStart = Mathf.Lerp(Fog.skyFogStart, i.skyFogStart, speed);
|
||||
Fog.skyFogHeight = Mathf.Lerp(Fog.skyFogHeight, i.SkyFogHeight, speed);
|
||||
Fog.skyFogIntensity = Mathf.Lerp(Fog.skyFogIntensity, i.SkyFogIntensity, speed);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateEffectSystems(EnviroWeatherPrefab id, bool withTransition)
|
||||
{
|
||||
if (id != null)
|
||||
{
|
||||
float speed = 500f * Time.deltaTime;
|
||||
|
||||
if (withTransition)
|
||||
speed = weatherSettings.effectTransitionSpeed * Time.deltaTime;
|
||||
|
||||
for (int i = 0; i < id.effectSystems.Count; i++)
|
||||
{
|
||||
|
||||
if (id.effectSystems[i].isStopped)
|
||||
id.effectSystems[i].Play();
|
||||
|
||||
// Set EmissionRate
|
||||
float val = Mathf.Lerp(EnviroSkyMgr.instance.GetEmissionRate(id.effectSystems[i]), id.effectEmmisionRates[i] * qualitySettings.GlobalParticleEmissionRates, speed) * interiorZoneSettings.currentInteriorWeatherEffectMod;
|
||||
EnviroSkyMgr.instance.SetEmissionRate(id.effectSystems[i], val);
|
||||
}
|
||||
|
||||
for (int i = 0; i < Weather.WeatherPrefabs.Count; i++)
|
||||
{
|
||||
if (Weather.WeatherPrefabs[i].gameObject != id.gameObject)
|
||||
{
|
||||
for (int i2 = 0; i2 < Weather.WeatherPrefabs[i].effectSystems.Count; i2++)
|
||||
{
|
||||
float val2 = Mathf.Lerp(EnviroSkyMgr.instance.GetEmissionRate(Weather.WeatherPrefabs[i].effectSystems[i2]), 0f, speed);
|
||||
|
||||
if (val2 < 1f)
|
||||
val2 = 0f;
|
||||
|
||||
EnviroSkyMgr.instance.SetEmissionRate(Weather.WeatherPrefabs[i].effectSystems[i2], val2);
|
||||
|
||||
if (val2 == 0f && !Weather.WeatherPrefabs[i].effectSystems[i2].isStopped)
|
||||
{
|
||||
Weather.WeatherPrefabs[i].effectSystems[i2].Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
UpdateWeatherVariables(id.weatherPreset);
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateWeather()
|
||||
{
|
||||
//Current active weather not matching current zones weather
|
||||
if (Weather.currentActiveWeatherPreset != Weather.currentActiveZone.currentActiveZoneWeatherPreset)
|
||||
{
|
||||
Weather.lastActiveWeatherPreset = Weather.currentActiveWeatherPreset;
|
||||
Weather.lastActiveWeatherPrefab = Weather.currentActiveWeatherPrefab;
|
||||
Weather.currentActiveWeatherPreset = Weather.currentActiveZone.currentActiveZoneWeatherPreset;
|
||||
Weather.currentActiveWeatherPrefab = Weather.currentActiveZone.currentActiveZoneWeatherPrefab;
|
||||
if (Weather.currentActiveWeatherPreset != null)
|
||||
{
|
||||
EnviroSkyMgr.instance.NotifyWeatherChanged(Weather.currentActiveWeatherPreset);
|
||||
Weather.weatherFullyChanged = false;
|
||||
if (!serverMode)
|
||||
{
|
||||
TryPlayAmbientSFX();
|
||||
UpdateAudioSource(Weather.currentActiveWeatherPreset);
|
||||
|
||||
if (Weather.currentActiveWeatherPreset.isLightningStorm)
|
||||
StartCoroutine(PlayThunderRandom());
|
||||
else
|
||||
{
|
||||
StopCoroutine(PlayThunderRandom());
|
||||
Components.LightningGenerator.StopLightning();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Weather.currentActiveWeatherPrefab != null && !serverMode)
|
||||
{
|
||||
UpdateClouds(Weather.currentActiveWeatherPreset, true);
|
||||
UpdateFog(Weather.currentActiveWeatherPreset, true);
|
||||
UpdateEffectSystems(Weather.currentActiveWeatherPrefab, true);
|
||||
if (!Weather.weatherFullyChanged)
|
||||
CalcWeatherTransitionState();
|
||||
}
|
||||
else if (Weather.currentActiveWeatherPrefab != null)
|
||||
{
|
||||
UpdateWeatherVariables(Weather.currentActiveWeatherPrefab.weatherPreset);
|
||||
}
|
||||
}
|
||||
|
||||
#region API
|
||||
/// <summary>
|
||||
/// Changes clouds, fog and particle effects to current weather settings instantly.
|
||||
/// </summary>
|
||||
public void InstantWeatherChange(EnviroWeatherPreset preset, EnviroWeatherPrefab prefab)
|
||||
{
|
||||
UpdateClouds(preset, false);
|
||||
UpdateFog(preset, false);
|
||||
UpdateEffectSystems(prefab, false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Assign your Player and Camera and Initilize.////
|
||||
/// </summary>
|
||||
public void AssignAndStart(GameObject player, Camera Camera)
|
||||
{
|
||||
this.Player = player;
|
||||
PlayerCamera = Camera;
|
||||
Init();
|
||||
started = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Assign your Player and Camera and Initilize.////
|
||||
/// </summary>
|
||||
public void StartAsServer()
|
||||
{
|
||||
Player = gameObject;
|
||||
serverMode = true;
|
||||
Init();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Changes focus on other Player or Camera on runtime.////
|
||||
/// </summary>
|
||||
/// <param name="Player">Player.</param>
|
||||
/// <param name="Camera">Camera.</param>
|
||||
public void ChangeFocus(GameObject player, Camera Camera)
|
||||
{
|
||||
this.Player = player;
|
||||
if(PlayerCamera != null)
|
||||
RemoveEnviroCameraComponents(PlayerCamera);
|
||||
PlayerCamera = Camera;
|
||||
InitImageEffects();
|
||||
}
|
||||
/// <summary>
|
||||
/// Destroy all enviro related camera components on this camera.
|
||||
/// </summary>
|
||||
private void RemoveEnviroCameraComponents(Camera cam)
|
||||
{
|
||||
EnviroSkyRenderingLW renderComponent;
|
||||
EnviroPostProcessing postProcessingComponent;
|
||||
|
||||
renderComponent = cam.GetComponent<EnviroSkyRenderingLW>();
|
||||
if (renderComponent != null)
|
||||
Destroy(renderComponent);
|
||||
|
||||
postProcessingComponent = cam.GetComponent<EnviroPostProcessing>();
|
||||
if (postProcessingComponent != null)
|
||||
Destroy(postProcessingComponent);
|
||||
}
|
||||
|
||||
public void Play(EnviroTime.TimeProgressMode progressMode = EnviroTime.TimeProgressMode.Simulated)
|
||||
{
|
||||
SetupSkybox();
|
||||
|
||||
if (!Components.DirectLight.gameObject.activeSelf)
|
||||
Components.DirectLight.gameObject.SetActive(true);
|
||||
|
||||
GameTime.ProgressTime = progressMode;
|
||||
if (EffectsHolder != null)
|
||||
EffectsHolder.SetActive(true);
|
||||
if (EnviroSkyRender != null)
|
||||
EnviroSkyRender.enabled = true;
|
||||
|
||||
started = true;
|
||||
|
||||
TryPlayAmbientSFX();
|
||||
}
|
||||
|
||||
public void Stop(bool disableLight = false, bool stopTime = true)
|
||||
{
|
||||
if (disableLight)
|
||||
Components.DirectLight.gameObject.SetActive(false);
|
||||
if (stopTime)
|
||||
GameTime.ProgressTime = EnviroTime.TimeProgressMode.None;
|
||||
|
||||
if(EffectsHolder != null)
|
||||
EffectsHolder.SetActive(false);
|
||||
|
||||
if (EnviroSkyRender != null)
|
||||
EnviroSkyRender.enabled = false;
|
||||
if (EnviroPostProcessing != null)
|
||||
EnviroPostProcessing.enabled = false;
|
||||
started = false;
|
||||
}
|
||||
|
||||
public void Deactivate(bool disableLight = false)
|
||||
{
|
||||
if (disableLight)
|
||||
Components.DirectLight.gameObject.SetActive(false);
|
||||
|
||||
if (EffectsHolder != null)
|
||||
EffectsHolder.SetActive(false);
|
||||
|
||||
if (EnviroSkyRender != null)
|
||||
EnviroSkyRender.enabled = false;
|
||||
|
||||
if (EnviroPostProcessing != null)
|
||||
EnviroPostProcessing.enabled = false;
|
||||
}
|
||||
|
||||
public void Activate()
|
||||
{
|
||||
Components.DirectLight.gameObject.SetActive(true);
|
||||
|
||||
if (EffectsHolder != null)
|
||||
EffectsHolder.SetActive(true);
|
||||
|
||||
if (EnviroSkyRender != null)
|
||||
EnviroSkyRender.enabled = true;
|
||||
|
||||
if (EnviroPostProcessing != null)
|
||||
EnviroPostProcessing.enabled = true;
|
||||
|
||||
TryPlayAmbientSFX();
|
||||
if(Weather.currentAudioSource != null)
|
||||
Weather.currentAudioSource.audiosrc.Play();
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dca2c2a635e065d47910f2afb90a17a9
|
||||
timeCreated: 1502205622
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,209 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
using System.Collections;
|
||||
using System;
|
||||
|
||||
[ExecuteInEditMode]
|
||||
[ImageEffectAllowedInSceneView]
|
||||
[RequireComponent(typeof(Camera))]
|
||||
public class EnviroSkyRenderingLW : MonoBehaviour
|
||||
{
|
||||
[HideInInspector]
|
||||
public bool isAddionalCamera = false;
|
||||
private Camera myCam;
|
||||
[HideInInspector]
|
||||
public Material material;
|
||||
[HideInInspector]
|
||||
public bool simpleFog = false;
|
||||
private bool currentSimpleFog = false;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
void OnEnable()
|
||||
{
|
||||
#if ENVIRO_LW
|
||||
if (EnviroSkyMgr.instance == null || EnviroSkyMgr.instance.currentEnviroSkyVersion != EnviroSkyMgr.EnviroSkyVersion.LW)
|
||||
{
|
||||
// Debug.Log("Deactivated EnviroSkyRenderingLW component. Not in LW mode or Manager missing.");
|
||||
this.enabled = false;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
myCam = GetComponent<Camera>();
|
||||
|
||||
if (myCam.actualRenderingPath == RenderingPath.Forward)
|
||||
myCam.depthTextureMode = DepthTextureMode.Depth;
|
||||
|
||||
CreateFogMaterial();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
void OnDisable()
|
||||
{
|
||||
DestroyFogMaterial();
|
||||
//Reset to default depth mode.
|
||||
if (myCam != null && myCam.actualRenderingPath == RenderingPath.Forward)
|
||||
{
|
||||
if (myCam.depthTextureMode == DepthTextureMode.Depth)
|
||||
myCam.depthTextureMode = DepthTextureMode.None;
|
||||
}
|
||||
}
|
||||
|
||||
private void CreateFogMaterial ()
|
||||
{
|
||||
if (material != null)
|
||||
DestroyImmediate(material);
|
||||
|
||||
if (!EnviroSkyMgr.instance.FogSettings.useSimpleFog)
|
||||
{
|
||||
Shader shader = Shader.Find("Enviro/Lite/EnviroFogRendering");
|
||||
if (shader == null)
|
||||
throw new Exception("Critical Error: \"Enviro/EnviroFogRendering\" shader is missing.");
|
||||
material = new Material(shader);
|
||||
}
|
||||
else
|
||||
{
|
||||
Shader shader = Shader.Find("Enviro/Lite/EnviroFogRenderingSimple");
|
||||
if (shader == null)
|
||||
throw new Exception("Critical Error: \"Enviro/EnviroFogRendering\" shader is missing.");
|
||||
material = new Material(shader);
|
||||
}
|
||||
|
||||
if (EnviroSkyMgr.instance.FogSettings.useSimpleFog)
|
||||
{
|
||||
Shader.EnableKeyword("ENVIRO_SIMPLE_FOG");
|
||||
}
|
||||
else
|
||||
{
|
||||
Shader.DisableKeyword("ENVIRO_SIMPLE_FOG");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void DestroyFogMaterial()
|
||||
{
|
||||
if (material != null)
|
||||
DestroyImmediate(material);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (EnviroSkyMgr.instance == null)
|
||||
return;
|
||||
|
||||
if (!EnviroSkyMgr.instance.IsAvailable())
|
||||
return;
|
||||
|
||||
if (currentSimpleFog != EnviroSkyMgr.instance.FogSettings.useSimpleFog)
|
||||
{
|
||||
CreateFogMaterial();
|
||||
currentSimpleFog = EnviroSkyMgr.instance.FogSettings.useSimpleFog;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void OnPreRender ()
|
||||
{
|
||||
///////////////////Matrix Information
|
||||
if (myCam.stereoEnabled)
|
||||
{
|
||||
// Both stereo eye inverse view matrices
|
||||
Matrix4x4 left_world_from_view = myCam.GetStereoViewMatrix(Camera.StereoscopicEye.Left).inverse;
|
||||
Matrix4x4 right_world_from_view = myCam.GetStereoViewMatrix(Camera.StereoscopicEye.Right).inverse;
|
||||
|
||||
// Both stereo eye inverse projection matrices, plumbed through GetGPUProjectionMatrix to compensate for render texture
|
||||
Matrix4x4 left_screen_from_view = myCam.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
||||
Matrix4x4 right_screen_from_view = myCam.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
||||
Matrix4x4 left_view_from_screen = GL.GetGPUProjectionMatrix(left_screen_from_view, true).inverse;
|
||||
Matrix4x4 right_view_from_screen = GL.GetGPUProjectionMatrix(right_screen_from_view, true).inverse;
|
||||
|
||||
// Negate [1,1] to reflect Unity's CBuffer state
|
||||
if (SystemInfo.graphicsDeviceType != UnityEngine.Rendering.GraphicsDeviceType.OpenGLCore && SystemInfo.graphicsDeviceType != UnityEngine.Rendering.GraphicsDeviceType.OpenGLES3 && SystemInfo.graphicsDeviceType != UnityEngine.Rendering.GraphicsDeviceType.OpenGLES2)
|
||||
{
|
||||
left_view_from_screen[1, 1] *= -1;
|
||||
right_view_from_screen[1, 1] *= -1;
|
||||
}
|
||||
|
||||
Shader.SetGlobalMatrix("_LeftWorldFromView", left_world_from_view);
|
||||
Shader.SetGlobalMatrix("_RightWorldFromView", right_world_from_view);
|
||||
Shader.SetGlobalMatrix("_LeftViewFromScreen", left_view_from_screen);
|
||||
Shader.SetGlobalMatrix("_RightViewFromScreen", right_view_from_screen);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Main eye inverse view matrix
|
||||
Matrix4x4 left_world_from_view = myCam.cameraToWorldMatrix;
|
||||
|
||||
// Inverse projection matrices, plumbed through GetGPUProjectionMatrix to compensate for render texture
|
||||
Matrix4x4 screen_from_view = myCam.projectionMatrix;
|
||||
Matrix4x4 left_view_from_screen = GL.GetGPUProjectionMatrix(screen_from_view, true).inverse;
|
||||
|
||||
// Negate [1,1] to reflect Unity's CBuffer state
|
||||
if (SystemInfo.graphicsDeviceType != UnityEngine.Rendering.GraphicsDeviceType.OpenGLCore && SystemInfo.graphicsDeviceType != UnityEngine.Rendering.GraphicsDeviceType.OpenGLES3 && SystemInfo.graphicsDeviceType != UnityEngine.Rendering.GraphicsDeviceType.OpenGLES2)
|
||||
left_view_from_screen[1, 1] *= -1;
|
||||
|
||||
// Store matrices
|
||||
Shader.SetGlobalMatrix("_LeftWorldFromView", left_world_from_view);
|
||||
Shader.SetGlobalMatrix("_LeftViewFromScreen", left_view_from_screen);
|
||||
}
|
||||
//////////////////////////////
|
||||
}
|
||||
|
||||
[ImageEffectOpaque]
|
||||
public void OnRenderImage(RenderTexture source, RenderTexture destination)
|
||||
{
|
||||
if (EnviroSkyLite.instance == null) {
|
||||
Graphics.Blit(source, destination);
|
||||
return;
|
||||
}
|
||||
|
||||
// Set Camera to render depth in forward
|
||||
if (myCam.actualRenderingPath == RenderingPath.Forward)
|
||||
myCam.depthTextureMode |= DepthTextureMode.Depth;
|
||||
|
||||
if(material == null)
|
||||
CreateFogMaterial();
|
||||
|
||||
if (!Application.isPlaying && EnviroSkyLite.instance.showFogInEditor || Application.isPlaying)
|
||||
{
|
||||
RenderFog(source, destination);
|
||||
}
|
||||
else
|
||||
{
|
||||
Graphics.Blit(source, destination);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void RenderFog(RenderTexture source, RenderTexture destination)
|
||||
{
|
||||
float FdotC = myCam.transform.position.y - EnviroSkyLite.instance.fogSettings.height;
|
||||
float paramK = (FdotC <= 0.0f ? 1.0f : 0.0f);
|
||||
var sceneMode = RenderSettings.fogMode;
|
||||
var sceneDensity = RenderSettings.fogDensity;
|
||||
var sceneStart = RenderSettings.fogStartDistance;
|
||||
var sceneEnd = RenderSettings.fogEndDistance;
|
||||
Vector4 sceneParams;
|
||||
bool linear = (sceneMode == FogMode.Linear);
|
||||
float diff = linear ? sceneEnd - sceneStart : 0.0f;
|
||||
float invDiff = Mathf.Abs(diff) > 0.0001f ? 1.0f / diff : 0.0f;
|
||||
sceneParams.x = sceneDensity * 1.2011224087f; // density / sqrt(ln(2)), used by Exp2 fog mode
|
||||
sceneParams.y = sceneDensity * 1.4426950408f; // density / ln(2), used by Exp fog mode
|
||||
sceneParams.z = linear ? -invDiff : 0.0f;
|
||||
sceneParams.w = linear ? sceneEnd * invDiff : 0.0f;
|
||||
Shader.SetGlobalVector("_SceneFogParams", sceneParams);
|
||||
Shader.SetGlobalVector("_SceneFogMode", new Vector4((int)sceneMode, EnviroSkyLite.instance.fogSettings.useRadialDistance ? 1 : 0, 0, 0));
|
||||
Shader.SetGlobalVector("_HeightParams", new Vector4(EnviroSkyLite.instance.fogSettings.height, FdotC, paramK, EnviroSkyLite.instance.fogSettings.heightDensity * 0.5f));
|
||||
Shader.SetGlobalVector("_DistanceParams", new Vector4(-Mathf.Max(EnviroSkyLite.instance.fogSettings.startDistance, 0.0f), 0, 0, 0));
|
||||
|
||||
material.SetTexture("_MainTex", source);
|
||||
Graphics.Blit(source, destination, material);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4ab5cbdc1174f4243900ca83356d9f5d
|
||||
timeCreated: 1493723296
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8711fbf908956444db795750960deaa9
|
||||
folderAsset: yes
|
||||
timeCreated: 1571061611
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+241
@@ -0,0 +1,241 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
[ExecuteInEditMode]
|
||||
[AddComponentMenu("Enviro/Lite/AddionalCamera")]
|
||||
public class EnviroLiteAdditionalCamera : MonoBehaviour {
|
||||
|
||||
#if ENVIRO_LW
|
||||
public bool addEnviroSkyRendering = true;
|
||||
public bool addEnviroSkyPostProcessing = true;
|
||||
public bool addWeatherEffects = true;
|
||||
|
||||
private Camera myCam;
|
||||
private EnviroSkyRenderingLW skyRender;
|
||||
private EnviroPostProcessing enviroPostProcessing;
|
||||
|
||||
private GameObject EffectHolder;
|
||||
private GameObject VFX;
|
||||
private List<EnviroWeatherPrefab> zoneWeather = new List<EnviroWeatherPrefab>();
|
||||
private EnviroWeatherPrefab currentWeather;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
myCam = GetComponent<Camera>();
|
||||
|
||||
if (myCam != null)
|
||||
InitImageEffects();
|
||||
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
if (addWeatherEffects)
|
||||
{
|
||||
CreateEffectHolder();
|
||||
StartCoroutine(SetupWeatherEffects());
|
||||
}
|
||||
}
|
||||
|
||||
void Update ()
|
||||
{
|
||||
if (addWeatherEffects)
|
||||
UpdateWeatherEffects();
|
||||
|
||||
if (EnviroSkyLite.instance != null)
|
||||
UpdateSkyRenderer();
|
||||
}
|
||||
|
||||
private void CreateEffectHolder ()
|
||||
{
|
||||
int childs = myCam.transform.childCount;
|
||||
|
||||
for (int i = childs - 1; i >= 0; i--)
|
||||
{
|
||||
if(myCam.transform.GetChild(i).gameObject.name == "Effect Holder")
|
||||
DestroyImmediate(myCam.transform.GetChild(i).gameObject);
|
||||
|
||||
}
|
||||
|
||||
EffectHolder = new GameObject();
|
||||
EffectHolder.name = "Effect Holder";
|
||||
EffectHolder.transform.SetParent(myCam.transform,false);
|
||||
|
||||
VFX = new GameObject();
|
||||
VFX.name = "VFX";
|
||||
VFX.transform.SetParent(EffectHolder.transform, false);
|
||||
|
||||
}
|
||||
|
||||
IEnumerator SetupWeatherEffects()
|
||||
{
|
||||
yield return new WaitForSeconds(1f);
|
||||
|
||||
for (int i = 0; i < EnviroSkyMgr.instance.Weather.weatherPresets.Count; i++)
|
||||
{
|
||||
//Create Weather Prefab
|
||||
GameObject wPrefab = new GameObject();
|
||||
EnviroWeatherPrefab wP = wPrefab.AddComponent<EnviroWeatherPrefab>();
|
||||
wP.weatherPreset = EnviroSkyMgr.instance.Weather.weatherPresets[i];
|
||||
wPrefab.name = wP.weatherPreset.Name;
|
||||
|
||||
//Add Particle Effects
|
||||
for (int w = 0; w < wP.weatherPreset.effectSystems.Count; w++)
|
||||
{
|
||||
if (wP.weatherPreset.effectSystems[w] == null || wP.weatherPreset.effectSystems[w].prefab == null)
|
||||
{
|
||||
Debug.Log("Warning! Missing Particle System Entry: " + wP.weatherPreset.Name);
|
||||
Destroy(wPrefab);
|
||||
break;
|
||||
}
|
||||
GameObject eS = (GameObject)Instantiate(wP.weatherPreset.effectSystems[w].prefab, wPrefab.transform);
|
||||
eS.transform.localPosition = wP.weatherPreset.effectSystems[w].localPositionOffset;
|
||||
eS.transform.localEulerAngles = wP.weatherPreset.effectSystems[w].localRotationOffset;
|
||||
ParticleSystem pS = eS.GetComponent<ParticleSystem>();
|
||||
|
||||
if (pS != null)
|
||||
wP.effectSystems.Add(pS);
|
||||
else
|
||||
{
|
||||
pS = eS.GetComponentInChildren<ParticleSystem>();
|
||||
if (pS != null)
|
||||
wP.effectSystems.Add(pS);
|
||||
else
|
||||
{
|
||||
Debug.Log("No Particle System found in prefab in weather preset: " + wP.weatherPreset.Name);
|
||||
Destroy(wPrefab);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
wP.effectEmmisionRates.Clear();
|
||||
wPrefab.transform.parent = VFX.transform;
|
||||
wPrefab.transform.localPosition = Vector3.zero;
|
||||
wPrefab.transform.localRotation = Quaternion.identity;
|
||||
zoneWeather.Add(wP);
|
||||
}
|
||||
|
||||
// Setup Particle Systems Emission Rates
|
||||
for (int i = 0; i < zoneWeather.Count; i++)
|
||||
{
|
||||
for (int i2 = 0; i2 < zoneWeather[i].effectSystems.Count; i2++)
|
||||
{
|
||||
zoneWeather[i].effectEmmisionRates.Add(EnviroSkyMgr.instance.GetEmissionRate(zoneWeather[i].effectSystems[i2]));
|
||||
EnviroSkyMgr.instance.SetEmissionRate(zoneWeather[i].effectSystems[i2], 0f);
|
||||
}
|
||||
}
|
||||
|
||||
//Set Current Weather
|
||||
if (EnviroSkyMgr.instance.Weather.currentActiveWeatherPrefab != null)
|
||||
{
|
||||
for (int i = 0; i < zoneWeather.Count; i++)
|
||||
{
|
||||
if (zoneWeather[i].weatherPreset == EnviroSkyMgr.instance.Weather.currentActiveWeatherPrefab.weatherPreset)
|
||||
currentWeather = zoneWeather[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateWeatherEffects()
|
||||
{
|
||||
if (EnviroSkyMgr.instance.Weather.currentActiveWeatherPrefab == null || currentWeather == null)
|
||||
return;
|
||||
|
||||
|
||||
if(EnviroSkyMgr.instance.Weather.currentActiveWeatherPrefab.weatherPreset != currentWeather.weatherPreset)
|
||||
{
|
||||
for(int i = 0; i < zoneWeather.Count; i++)
|
||||
{
|
||||
if (zoneWeather[i].weatherPreset == EnviroSkyMgr.instance.Weather.currentActiveWeatherPrefab.weatherPreset)
|
||||
currentWeather = zoneWeather[i];
|
||||
}
|
||||
}
|
||||
|
||||
UpdateEffectSystems(currentWeather, true);
|
||||
}
|
||||
|
||||
private void UpdateEffectSystems(EnviroWeatherPrefab id, bool withTransition)
|
||||
{
|
||||
if (id != null)
|
||||
{
|
||||
float speed = 500f * Time.deltaTime;
|
||||
|
||||
if (withTransition)
|
||||
speed = EnviroSkyMgr.instance.WeatherSettings.effectTransitionSpeed * Time.deltaTime;
|
||||
|
||||
for (int i = 0; i < id.effectSystems.Count; i++)
|
||||
{
|
||||
|
||||
if (id.effectSystems[i].isStopped)
|
||||
id.effectSystems[i].Play();
|
||||
|
||||
// Set EmissionRate
|
||||
float val = Mathf.Lerp(EnviroSkyMgr.instance.GetEmissionRate(id.effectSystems[i]), id.effectEmmisionRates[i] * EnviroSkyLite.instance.qualitySettings.GlobalParticleEmissionRates, speed) * EnviroSkyMgr.instance.InteriorZoneSettings.currentInteriorWeatherEffectMod;
|
||||
EnviroSkyMgr.instance.SetEmissionRate(id.effectSystems[i], val);
|
||||
}
|
||||
|
||||
for (int i = 0; i < zoneWeather.Count; i++)
|
||||
{
|
||||
if (zoneWeather[i].gameObject != id.gameObject)
|
||||
{
|
||||
for (int i2 = 0; i2 < zoneWeather[i].effectSystems.Count; i2++)
|
||||
{
|
||||
float val2 = Mathf.Lerp(EnviroSkyMgr.instance.GetEmissionRate(zoneWeather[i].effectSystems[i2]), 0f, speed);
|
||||
|
||||
if (val2 < 1f)
|
||||
val2 = 0f;
|
||||
|
||||
EnviroSkyMgr.instance.SetEmissionRate(zoneWeather[i].effectSystems[i2], val2);
|
||||
|
||||
if (val2 == 0f && !zoneWeather[i].effectSystems[i2].isStopped)
|
||||
{
|
||||
zoneWeather[i].effectSystems[i2].Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void InitImageEffects()
|
||||
{
|
||||
if (addEnviroSkyRendering)
|
||||
{
|
||||
skyRender = myCam.gameObject.GetComponent<EnviroSkyRenderingLW>();
|
||||
|
||||
if (skyRender == null)
|
||||
skyRender = myCam.gameObject.AddComponent<EnviroSkyRenderingLW>();
|
||||
|
||||
skyRender.isAddionalCamera = true;
|
||||
}
|
||||
|
||||
if (addEnviroSkyPostProcessing)
|
||||
{
|
||||
enviroPostProcessing = myCam.gameObject.GetComponent<EnviroPostProcessing>();
|
||||
|
||||
if (enviroPostProcessing == null)
|
||||
enviroPostProcessing = myCam.gameObject.AddComponent<EnviroPostProcessing>();
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateSkyRenderer()
|
||||
{
|
||||
if (EnviroSkyMgr.instance.FogSettings.useUnityFog && EnviroSkyMgr.instance.Camera != null && EnviroSkyMgr.instance.Camera.renderingPath == RenderingPath.Forward)
|
||||
{
|
||||
RenderSettings.fog = true;
|
||||
if (skyRender != null && skyRender.isActiveAndEnabled)
|
||||
skyRender.enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
//Enable or Disable Enviro Fog Post Effect
|
||||
if (EnviroSkyLite.instance.usePostEffectFog && skyRender != null && !skyRender.isActiveAndEnabled)
|
||||
skyRender.enabled = true;
|
||||
else if (!EnviroSkyLite.instance.usePostEffectFog && skyRender != null && skyRender.isActiveAndEnabled)
|
||||
skyRender.enabled = false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ce39a1be7e2417a4c9dc86e1b20c8518
|
||||
timeCreated: 1510847875
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f0ae59e44c9b3c143b0f9f29a3470f20
|
||||
folderAsset: yes
|
||||
timeCreated: 1532381908
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,93 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d0bf06d76ab6e1d459d72757fa79192d
|
||||
timeCreated: 1513639213
|
||||
licenseType: Store
|
||||
TextureImporter:
|
||||
fileIDToRecycleName:
|
||||
8900000: generatedCubemap
|
||||
serializedVersion: 4
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 2
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -1
|
||||
wrapMode: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 2
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
- buildTarget: Standalone
|
||||
maxTextureSize: 1024
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
- buildTarget: Android
|
||||
maxTextureSize: 1024
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
- buildTarget: WebGL
|
||||
maxTextureSize: 1024
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,93 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 214e1a8de772f334886a8d3bee074dc9
|
||||
timeCreated: 1495419325
|
||||
licenseType: Store
|
||||
TextureImporter:
|
||||
fileIDToRecycleName:
|
||||
8900000: generatedCubemap
|
||||
serializedVersion: 4
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 2
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 8192
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 2
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
- buildTarget: Standalone
|
||||
maxTextureSize: 1024
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
- buildTarget: Android
|
||||
maxTextureSize: 1024
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
- buildTarget: WebGL
|
||||
maxTextureSize: 1024
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 586e3d4d2e9e46e418768146f0c9bf03
|
||||
folderAsset: yes
|
||||
timeCreated: 1574078810
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-8062727520685277108
|
||||
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: 6f9cc4d2177def04ebfbaa8f81e2543c, type: 3}
|
||||
m_Name: Moon Shafts
|
||||
m_EditorClassIdentifier:
|
||||
m_Active: 1
|
||||
radialBlurIterations: 2
|
||||
--- !u!114 &-339818454559500084
|
||||
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: c7d23f857c4cddf4d97e863fe7506dcf, type: 3}
|
||||
m_Name: Sun Shafts
|
||||
m_EditorClassIdentifier:
|
||||
m_Active: 1
|
||||
radialBlurIterations: 2
|
||||
--- !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: de640fe3d0db1804a85f9fc8f5cadab6, type: 3}
|
||||
m_Name: Enviro Lite URP Renderer
|
||||
m_EditorClassIdentifier:
|
||||
m_RendererFeatures:
|
||||
- {fileID: 2731679385580045565}
|
||||
- {fileID: -339818454559500084}
|
||||
- {fileID: -8062727520685277108}
|
||||
m_RendererFeatureMap:
|
||||
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
|
||||
shaders:
|
||||
blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}
|
||||
copyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3}
|
||||
screenSpaceShadowPS: {fileID: 4800000, guid: 0f854b35a0cf61a429bd5dcfea30eddd,
|
||||
type: 3}
|
||||
samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
|
||||
fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
|
||||
m_OpaqueLayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_TransparentLayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_DefaultStencilState:
|
||||
overrideStencilState: 0
|
||||
stencilReference: 0
|
||||
stencilCompareFunction: 8
|
||||
passOperation: 0
|
||||
failOperation: 0
|
||||
zFailOperation: 0
|
||||
m_ShadowTransparentReceive: 1
|
||||
--- !u!114 &2731679385580045565
|
||||
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: 605c28d02bb431c429eac4ef62316ac6, type: 3}
|
||||
m_Name: Fog Lite
|
||||
m_EditorClassIdentifier:
|
||||
m_Active: 1
|
||||
material: {fileID: 0}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e80750b6ad9446944846acc2150bb5d8
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f74d1274fcccc284581245b122f7a775
|
||||
folderAsset: yes
|
||||
timeCreated: 1574078837
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine.Serialization;
|
||||
#if ENVIRO_LWRP && ENVIRO_LW
|
||||
namespace UnityEngine.Rendering.LWRP
|
||||
{
|
||||
public class EnviroLiteFogLWRP : UnityEngine.Rendering.Universal.ScriptableRendererFeature
|
||||
{
|
||||
|
||||
EnviroBlitPass blitPass;
|
||||
private Camera myCam;
|
||||
[HideInInspector]
|
||||
public Material material;
|
||||
private bool currentSimpleFog = false;
|
||||
|
||||
|
||||
private void RenderFog()
|
||||
{
|
||||
if (material == null)
|
||||
CreateFogMaterial();
|
||||
|
||||
float FdotC = myCam.transform.position.y - EnviroSkyLite.instance.fogSettings.height;
|
||||
float paramK = (FdotC <= 0.0f ? 1.0f : 0.0f);
|
||||
var sceneMode = RenderSettings.fogMode;
|
||||
var sceneDensity = RenderSettings.fogDensity;
|
||||
var sceneStart = RenderSettings.fogStartDistance;
|
||||
var sceneEnd = RenderSettings.fogEndDistance;
|
||||
Vector4 sceneParams;
|
||||
bool linear = (sceneMode == FogMode.Linear);
|
||||
float diff = linear ? sceneEnd - sceneStart : 0.0f;
|
||||
float invDiff = Mathf.Abs(diff) > 0.0001f ? 1.0f / diff : 0.0f;
|
||||
sceneParams.x = sceneDensity * 1.2011224087f; // density / sqrt(ln(2)), used by Exp2 fog mode
|
||||
sceneParams.y = sceneDensity * 1.4426950408f; // density / ln(2), used by Exp fog mode
|
||||
sceneParams.z = linear ? -invDiff : 0.0f;
|
||||
sceneParams.w = linear ? sceneEnd * invDiff : 0.0f;
|
||||
Shader.SetGlobalVector("_SceneFogParams", sceneParams);
|
||||
Shader.SetGlobalVector("_SceneFogMode", new Vector4((int)sceneMode, EnviroSkyLite.instance.fogSettings.useRadialDistance ? 1 : 0, 0, 0));
|
||||
Shader.SetGlobalVector("_HeightParams", new Vector4(EnviroSkyLite.instance.fogSettings.height, FdotC, paramK, EnviroSkyLite.instance.fogSettings.heightDensity * 0.5f));
|
||||
Shader.SetGlobalVector("_DistanceParams", new Vector4(-Mathf.Max(EnviroSkyLite.instance.fogSettings.startDistance, 0.0f), 0, 0, 0));
|
||||
}
|
||||
|
||||
private void CreateFogMaterial ()
|
||||
{
|
||||
if (material != null)
|
||||
DestroyImmediate(material);
|
||||
|
||||
if (!EnviroSkyLite.instance.fogSettings.useSimpleFog)
|
||||
{
|
||||
Shader shader = Shader.Find("Enviro/Lite/EnviroFogRendering");
|
||||
if (shader != null)
|
||||
material = new Material(shader);
|
||||
}
|
||||
else
|
||||
{
|
||||
Shader shader = Shader.Find("Enviro/Lite/EnviroFogRenderingSimple");
|
||||
if (shader != null)
|
||||
material = new Material(shader);
|
||||
}
|
||||
|
||||
if (EnviroSkyLite.instance.fogSettings.useSimpleFog)
|
||||
{
|
||||
currentSimpleFog = true;
|
||||
Shader.EnableKeyword("ENVIRO_SIMPLE_FOG");
|
||||
}
|
||||
else
|
||||
{
|
||||
currentSimpleFog = false;
|
||||
Shader.DisableKeyword("ENVIRO_SIMPLE_FOG");
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateMatrix()
|
||||
{
|
||||
///////////////////Matrix Information
|
||||
if (myCam.stereoEnabled)
|
||||
{
|
||||
// Both stereo eye inverse view matrices
|
||||
Matrix4x4 left_world_from_view = myCam.GetStereoViewMatrix(Camera.StereoscopicEye.Left).inverse;
|
||||
Matrix4x4 right_world_from_view = myCam.GetStereoViewMatrix(Camera.StereoscopicEye.Right).inverse;
|
||||
|
||||
// Both stereo eye inverse projection matrices, plumbed through GetGPUProjectionMatrix to compensate for render texture
|
||||
Matrix4x4 left_screen_from_view = myCam.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
||||
Matrix4x4 right_screen_from_view = myCam.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
||||
Matrix4x4 left_view_from_screen = GL.GetGPUProjectionMatrix(left_screen_from_view, true).inverse;
|
||||
Matrix4x4 right_view_from_screen = GL.GetGPUProjectionMatrix(right_screen_from_view, true).inverse;
|
||||
|
||||
// Negate [1,1] to reflect Unity's CBuffer state
|
||||
if (SystemInfo.graphicsDeviceType != UnityEngine.Rendering.GraphicsDeviceType.OpenGLCore && SystemInfo.graphicsDeviceType != UnityEngine.Rendering.GraphicsDeviceType.OpenGLES3)
|
||||
{
|
||||
left_view_from_screen[1, 1] *= -1;
|
||||
right_view_from_screen[1, 1] *= -1;
|
||||
}
|
||||
|
||||
Shader.SetGlobalMatrix("_LeftWorldFromView", left_world_from_view);
|
||||
Shader.SetGlobalMatrix("_RightWorldFromView", right_world_from_view);
|
||||
Shader.SetGlobalMatrix("_LeftViewFromScreen", left_view_from_screen);
|
||||
Shader.SetGlobalMatrix("_RightViewFromScreen", right_view_from_screen);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Main eye inverse view matrix
|
||||
Matrix4x4 left_world_from_view = myCam.cameraToWorldMatrix;
|
||||
|
||||
// Inverse projection matrices, plumbed through GetGPUProjectionMatrix to compensate for render texture
|
||||
Matrix4x4 screen_from_view = myCam.projectionMatrix;
|
||||
Matrix4x4 left_view_from_screen = GL.GetGPUProjectionMatrix(screen_from_view, true).inverse;
|
||||
|
||||
// Negate [1,1] to reflect Unity's CBuffer state
|
||||
if (SystemInfo.graphicsDeviceType != UnityEngine.Rendering.GraphicsDeviceType.OpenGLCore && SystemInfo.graphicsDeviceType != UnityEngine.Rendering.GraphicsDeviceType.OpenGLES3)
|
||||
left_view_from_screen[1, 1] *= -1;
|
||||
|
||||
// Store matrices
|
||||
Shader.SetGlobalMatrix("_LeftWorldFromView", left_world_from_view);
|
||||
Shader.SetGlobalMatrix("_LeftViewFromScreen", left_view_from_screen);
|
||||
}
|
||||
//////////////////////////////
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void Create()
|
||||
{
|
||||
if (EnviroSkyMgr.instance == null || EnviroSkyLite.instance == null)
|
||||
return;
|
||||
|
||||
CreateFogMaterial();
|
||||
|
||||
blitPass = new EnviroBlitPass(UnityEngine.Rendering.Universal.RenderPassEvent.BeforeRenderingTransparents, material, 0, name);
|
||||
}
|
||||
|
||||
public override void AddRenderPasses(UnityEngine.Rendering.Universal.ScriptableRenderer renderer, ref UnityEngine.Rendering.Universal.RenderingData renderingData)
|
||||
{
|
||||
|
||||
|
||||
if (renderingData.cameraData.camera.cameraType == CameraType.Preview)
|
||||
return;
|
||||
|
||||
myCam = renderingData.cameraData.camera;
|
||||
|
||||
if (EnviroSkyLite.instance != null && EnviroSkyLite.instance.usePostEffectFog)
|
||||
{
|
||||
var src = renderer.cameraColorTarget;
|
||||
var dest = UnityEngine.Rendering.Universal.RenderTargetHandle.CameraTarget;
|
||||
|
||||
if (!renderingData.cameraData.isSceneViewCamera && renderingData.cameraData.camera == EnviroSkyLite.instance.PlayerCamera)
|
||||
{
|
||||
UpdateMatrix();
|
||||
|
||||
if (currentSimpleFog != EnviroSkyLite.instance.fogSettings.useSimpleFog)
|
||||
{
|
||||
CreateFogMaterial();
|
||||
blitPass = new EnviroBlitPass(UnityEngine.Rendering.Universal.RenderPassEvent.BeforeRenderingTransparents, material, 0, name);
|
||||
currentSimpleFog = EnviroSkyLite.instance.fogSettings.useSimpleFog;
|
||||
}
|
||||
|
||||
RenderFog();
|
||||
|
||||
if (blitPass == null)
|
||||
Create();
|
||||
|
||||
blitPass.Setup(src, dest);
|
||||
|
||||
renderer.EnqueuePass(blitPass);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 605c28d02bb431c429eac4ef62316ac6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user