VO level Design, grotto, cave
This commit is contained in:
BIN
Assets/Meshes/Enviroment/Grove/Dry_ivy/Dry_IvyE.png
Normal file
BIN
Assets/Meshes/Enviroment/Grove/Dry_ivy/Dry_IvyE.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 65 KiB |
156
Assets/Meshes/Enviroment/Grove/Dry_ivy/Dry_IvyE.png.meta
Normal file
156
Assets/Meshes/Enviroment/Grove/Dry_ivy/Dry_IvyE.png.meta
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b8e71a71b85a84e41b2ae2dbcc9297ce
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 2
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 8192
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 8192
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: iOS
|
||||||
|
maxTextureSize: 8192
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 8192
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: WindowsStoreApps
|
||||||
|
maxTextureSize: 8192
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Meshes/Enviroment/Grove/Dry_ivy/Dry_IvyLight.png
Normal file
BIN
Assets/Meshes/Enviroment/Grove/Dry_ivy/Dry_IvyLight.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.2 MiB |
156
Assets/Meshes/Enviroment/Grove/Dry_ivy/Dry_IvyLight.png.meta
Normal file
156
Assets/Meshes/Enviroment/Grove/Dry_ivy/Dry_IvyLight.png.meta
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f32dd7f766ee83d45803db79b7752e82
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 2
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 8192
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 8192
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: iOS
|
||||||
|
maxTextureSize: 8192
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 8192
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: WindowsStoreApps
|
||||||
|
maxTextureSize: 8192
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
192
Assets/Meshes/Enviroment/Grove/Dry_ivy/Dry_ivyLight.mat
Normal file
192
Assets/Meshes/Enviroment/Grove/Dry_ivy/Dry_ivyLight.mat
Normal file
@@ -0,0 +1,192 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &-2111046179899251927
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 11
|
||||||
|
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: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
version: 9
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Dry_ivyLight
|
||||||
|
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _ALPHATEST_ON
|
||||||
|
- _EMISSION
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 0
|
||||||
|
m_EnableInstancingVariants: 1
|
||||||
|
m_DoubleSidedGI: 1
|
||||||
|
m_CustomRenderQueue: 2450
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: TransparentCutout
|
||||||
|
disabledShaderPasses:
|
||||||
|
- MOTIONVECTORS
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- BaseTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: f32dd7f766ee83d45803db79b7752e82, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- DissolveMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- NOSMap:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 58ab285f22944344a850a086c0044828, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _BaseMap:
|
||||||
|
m_Texture: {fileID: 2800000, guid: f32dd7f766ee83d45803db79b7752e82, type: 3}
|
||||||
|
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}
|
||||||
|
- _Dissolve_bb24d93911a14f94aabf19ce6960d2e3_NoiseMask_2224857806:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 2800000, guid: b8e71a71b85a84e41b2ae2dbcc9297ce, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: f32dd7f766ee83d45803db79b7752e82, 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}
|
||||||
|
- _SpecGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_Lightmaps:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_LightmapsInd:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_ShadowMasks:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- AOStrength: 3
|
||||||
|
- AlphaClipThreshold: 0.538
|
||||||
|
- BASETEXTYPE: 2
|
||||||
|
- DissolveNoiseScale: 25
|
||||||
|
- EffectStrenght: 1
|
||||||
|
- FresnelPower: 4
|
||||||
|
- Metalness: 0.19
|
||||||
|
- NormalStrength: 2.36
|
||||||
|
- Smoothness: 0.13
|
||||||
|
- USEDISSOLVE: 0
|
||||||
|
- USEDISSOLVEMASK: 0
|
||||||
|
- USEFRESNEL: 1
|
||||||
|
- Vector1_473704f964214ae2bc68475022d1524b: 0
|
||||||
|
- _AddPrecomputedVelocity: 0
|
||||||
|
- _AlphaClip: 1
|
||||||
|
- _AlphaToMask: 1
|
||||||
|
- _BendEffect: 0
|
||||||
|
- _BendMaxDistance: 1
|
||||||
|
- _BendMaxHeight: 0
|
||||||
|
- _BendMinDistance: 0
|
||||||
|
- _BendMinHeight: 0
|
||||||
|
- _Blend: 0
|
||||||
|
- _BlendModePreserveSpecular: 0
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _CastShadows: 1
|
||||||
|
- _ClearCoatMask: 0
|
||||||
|
- _ClearCoatSmoothness: 0
|
||||||
|
- _Cull: 0
|
||||||
|
- _Cutoff: 0.333
|
||||||
|
- _DetailAlbedoMapScale: 1
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _DstBlendAlpha: 0
|
||||||
|
- _EffectThreshold: 0
|
||||||
|
- _EnvironmentReflections: 1
|
||||||
|
- _FadeDistance: 1.19
|
||||||
|
- _FarFadeDistance: 500
|
||||||
|
- _GlossMapScale: 0
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 0
|
||||||
|
- _InverseFadeRange: 0.84
|
||||||
|
- _InverseFarFadeRange: 0.262
|
||||||
|
- _Metallic: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.005
|
||||||
|
- _QueueControl: 0
|
||||||
|
- _QueueOffset: 0
|
||||||
|
- _ReceiveShadows: 1
|
||||||
|
- _Smoothness: 0.003
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _SrcBlendAlpha: 1
|
||||||
|
- _Surface: 0
|
||||||
|
- _Threshold: 0
|
||||||
|
- _USEDISTANCEFADE: 1
|
||||||
|
- _USESCANWAVE: 0
|
||||||
|
- _WaveTrail: 4
|
||||||
|
- _WorkflowMode: 1
|
||||||
|
- _ZTest: 4
|
||||||
|
- _ZWrite: 1
|
||||||
|
- _ZWriteControl: 0
|
||||||
|
m_Colors:
|
||||||
|
- BaseColor: {r: 0.6226415, g: 0.6226415, b: 0.6226415, a: 1}
|
||||||
|
- Color_613d1588816440ec9b17710effb7528b: {r: 1.8443027, g: 0.05793621, b: 0,
|
||||||
|
a: 0}
|
||||||
|
- EmissiveColor: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _BendVector: {r: 0, g: -1, b: 0, a: 0}
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 7.906699, b: 6.6951823, a: 1}
|
||||||
|
- _FresnelColor: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _ScanWaveColor: {r: 0, g: 0.5949242, b: 1, a: 0}
|
||||||
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
m_AllowLocking: 1
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2306d32e092056646a5d80870ce3bf04
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
231
Assets/Prefabs/Environments/Nature/Dry_ivy_Light.prefab
Normal file
231
Assets/Prefabs/Environments/Nature/Dry_ivy_Light.prefab
Normal file
@@ -0,0 +1,231 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &1843684913689375280
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 6236993072342878774}
|
||||||
|
- component: {fileID: 6197976940576123378}
|
||||||
|
- component: {fileID: 5310257495824949364}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Dry_ivy2_LOD0
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &6236993072342878774
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1843684913689375280}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
|
||||||
|
m_LocalPosition: {x: -0.2152, y: -0.0124, z: 0.2971}
|
||||||
|
m_LocalScale: {x: 1, y: 1.188408, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6739813207863367317}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &6197976940576123378
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1843684913689375280}
|
||||||
|
m_Mesh: {fileID: 1780231411891999157, guid: 01326acbc568f7c4db7c6aa98e996744, type: 3}
|
||||||
|
--- !u!23 &5310257495824949364
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1843684913689375280}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||||
|
m_RayTracingAccelStructBuildFlags: 1
|
||||||
|
m_SmallMeshCulling: 1
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 2306d32e092056646a5d80870ce3bf04, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!1 &3572252781627725034
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 6739813207863367317}
|
||||||
|
- component: {fileID: 7174915809138247286}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Dry_ivy_Light
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &6739813207863367317
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3572252781627725034}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0.6943703, y: 0.7113504, z: 0.05971779, w: 0.09090842}
|
||||||
|
m_LocalPosition: {x: -11.306061, y: -2.8842964, z: -79.126205}
|
||||||
|
m_LocalScale: {x: 3.2760777, y: 3.2760773, z: 3.2760773}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 6236993072342878774}
|
||||||
|
- {fileID: 600736924083060146}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 2.366, y: 167.734, z: 88.362}
|
||||||
|
--- !u!205 &7174915809138247286
|
||||||
|
LODGroup:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3572252781627725034}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalReferencePoint: {x: -0.19408846, y: 0.0030876994, z: -0.02992335}
|
||||||
|
m_Size: 1.2618124
|
||||||
|
m_FadeMode: 0
|
||||||
|
m_AnimateCrossFading: 0
|
||||||
|
m_LastLODIsBillboard: 0
|
||||||
|
m_LODs:
|
||||||
|
- screenRelativeHeight: 0.3621121
|
||||||
|
fadeTransitionWidth: 0
|
||||||
|
renderers:
|
||||||
|
- renderer: {fileID: 5310257495824949364}
|
||||||
|
- screenRelativeHeight: 0.21597344
|
||||||
|
fadeTransitionWidth: 0
|
||||||
|
renderers:
|
||||||
|
- renderer: {fileID: 8751207784540928108}
|
||||||
|
m_Enabled: 1
|
||||||
|
--- !u!1 &8309509063968336982
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 600736924083060146}
|
||||||
|
- component: {fileID: 5383419341119516738}
|
||||||
|
- component: {fileID: 8751207784540928108}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Dry_ivy2_LOD2
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &600736924083060146
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8309509063968336982}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
|
||||||
|
m_LocalPosition: {x: -0.21519715, y: 0, z: 0.29273865}
|
||||||
|
m_LocalScale: {x: 1, y: 1.188408, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6739813207863367317}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &5383419341119516738
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8309509063968336982}
|
||||||
|
m_Mesh: {fileID: 2698437764238509827, guid: 01326acbc568f7c4db7c6aa98e996744, type: 3}
|
||||||
|
--- !u!23 &8751207784540928108
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8309509063968336982}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 0
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||||
|
m_RayTracingAccelStructBuildFlags: 1
|
||||||
|
m_SmallMeshCulling: 1
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: 2306d32e092056646a5d80870ce3bf04, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 17ef9550ee7e9984088076c5c88120ee
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
194
Assets/Scripts/FogIntensityZone.cs
Normal file
194
Assets/Scripts/FogIntensityZone.cs
Normal file
@@ -0,0 +1,194 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using UnityEngine;
|
||||||
|
using AtmosphericHeightFog; // Upewnij siê, ¿e przestrzeñ nazw odpowiada Twojemu projektowi
|
||||||
|
|
||||||
|
[RequireComponent(typeof(Collider))]
|
||||||
|
public class FogIntensityZone : MonoBehaviour
|
||||||
|
{
|
||||||
|
[Header("Tryb dzia³ania")]
|
||||||
|
[Tooltip("Jeœli zaznaczone – zmieniana bêdzie tylko intensywnoœæ foga. W przeciwnym razie zmieniane s¹ równie¿ kolory, ustawienia odleg³oœci i intensywnoœæ œwiat³a kierunkowego.")]
|
||||||
|
public bool onlyChangeIntensity = true;
|
||||||
|
|
||||||
|
[Header("Ustawienia dla trybu 'Tylko intensywnoϾ'")]
|
||||||
|
[Tooltip("Docelowa intensywnoϾ foga, gdy zmieniamy tylko intensywnoϾ.")]
|
||||||
|
public float targetIntensity = 0.5f;
|
||||||
|
|
||||||
|
[Header("Ustawienia dla trybu 'Pe³na zmiana'")]
|
||||||
|
[Tooltip("Docelowa intensywnoœæ foga przy pe³nej zmianie ustawieñ.")]
|
||||||
|
public float manualTargetIntensity = 0.5f;
|
||||||
|
|
||||||
|
[Tooltip("Docelowy kolor startowy foga przy pe³nej zmianie.")]
|
||||||
|
[ColorUsage(true, true)]
|
||||||
|
public Color manualTargetFogColorStart = new Color(0.5f, 0.75f, 1f, 1f);
|
||||||
|
|
||||||
|
[Tooltip("Docelowy kolor koñcowy foga przy pe³nej zmianie.")]
|
||||||
|
[ColorUsage(true, true)]
|
||||||
|
public Color manualTargetFogColorEnd = new Color(0.75f, 1f, 1.25f, 1f);
|
||||||
|
|
||||||
|
[Tooltip("Docelowa wartoœæ blendowania kolorów (0 - 1).")]
|
||||||
|
[Range(0f, 1f)]
|
||||||
|
public float manualTargetFogColorDuo = 0f;
|
||||||
|
|
||||||
|
[Tooltip("Docelowa wartoœæ odleg³oœci startowej foga.")]
|
||||||
|
public float manualTargetFogDistanceStart = -50f;
|
||||||
|
|
||||||
|
[Tooltip("Docelowa wartoœæ odleg³oœci koñcowej foga.")]
|
||||||
|
public float manualTargetFogDistanceEnd = 150f;
|
||||||
|
|
||||||
|
[Tooltip("Docelowa wartoœæ spadku odleg³oœci foga.")]
|
||||||
|
public float manualTargetFogDistanceFalloff = 2f;
|
||||||
|
|
||||||
|
[Tooltip("Docelowa intensywnoœæ œwiat³a kierunkowego przy pe³nej zmianie.")]
|
||||||
|
public float manualTargetDirectionalIntensity = 0.5f;
|
||||||
|
|
||||||
|
[Header("Pozosta³e ustawienia")]
|
||||||
|
[Tooltip("Czas (w sekundach) przejœcia miêdzy wartoœciami.")]
|
||||||
|
public float transitionDuration = 1f;
|
||||||
|
|
||||||
|
[Tooltip("Tag obiektu gracza.")]
|
||||||
|
public string playerTag = "Player";
|
||||||
|
|
||||||
|
// Referencja do globalnego skryptu foga
|
||||||
|
private HeightFogGlobal fogGlobal;
|
||||||
|
|
||||||
|
// Domyœlne wartoœci pobrane przy starcie
|
||||||
|
private float defaultIntensity;
|
||||||
|
private Color defaultFogColorStart;
|
||||||
|
private Color defaultFogColorEnd;
|
||||||
|
private float defaultFogColorDuo;
|
||||||
|
private float defaultFogDistanceStart;
|
||||||
|
private float defaultFogDistanceEnd;
|
||||||
|
private float defaultFogDistanceFalloff;
|
||||||
|
private float defaultDirectionalIntensity;
|
||||||
|
|
||||||
|
// Przechowywana aktywna korutyna, by móc j¹ przerwaæ
|
||||||
|
private Coroutine transitionCoroutine;
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
fogGlobal = FindObjectOfType<HeightFogGlobal>();
|
||||||
|
if (fogGlobal == null)
|
||||||
|
{
|
||||||
|
Debug.LogError("Nie znaleziono HeightFogGlobal w scenie!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Zapamiêtujemy domyœlne wartoœci pobrane z globalnego skryptu foga
|
||||||
|
defaultIntensity = fogGlobal.fogIntensity;
|
||||||
|
defaultFogColorStart = fogGlobal.fogColorStart;
|
||||||
|
defaultFogColorEnd = fogGlobal.fogColorEnd;
|
||||||
|
defaultFogColorDuo = fogGlobal.fogColorDuo;
|
||||||
|
defaultFogDistanceStart = fogGlobal.fogDistanceStart;
|
||||||
|
defaultFogDistanceEnd = fogGlobal.fogDistanceEnd;
|
||||||
|
defaultFogDistanceFalloff = fogGlobal.fogDistanceFalloff;
|
||||||
|
defaultDirectionalIntensity = fogGlobal.directionalIntensity;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerEnter(Collider other)
|
||||||
|
{
|
||||||
|
if (!other.CompareTag(playerTag))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (transitionCoroutine != null)
|
||||||
|
StopCoroutine(transitionCoroutine);
|
||||||
|
|
||||||
|
if (onlyChangeIntensity)
|
||||||
|
{
|
||||||
|
// Tylko intensywnoœæ – pozosta³e w³aœciwoœci pozostaj¹ na domyœlnych wartoœciach.
|
||||||
|
transitionCoroutine = StartCoroutine(TransitionProperties(
|
||||||
|
fogGlobal.fogIntensity, targetIntensity,
|
||||||
|
defaultFogColorStart, defaultFogColorStart,
|
||||||
|
defaultFogColorEnd, defaultFogColorEnd,
|
||||||
|
defaultFogColorDuo, defaultFogColorDuo,
|
||||||
|
defaultFogDistanceStart, defaultFogDistanceStart,
|
||||||
|
defaultFogDistanceEnd, defaultFogDistanceEnd,
|
||||||
|
defaultFogDistanceFalloff, defaultFogDistanceFalloff,
|
||||||
|
defaultDirectionalIntensity, defaultDirectionalIntensity,
|
||||||
|
transitionDuration));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Pe³na zmiana – przejœcie do ustawieñ podanych rêcznie.
|
||||||
|
transitionCoroutine = StartCoroutine(TransitionProperties(
|
||||||
|
fogGlobal.fogIntensity, manualTargetIntensity,
|
||||||
|
fogGlobal.fogColorStart, manualTargetFogColorStart,
|
||||||
|
fogGlobal.fogColorEnd, manualTargetFogColorEnd,
|
||||||
|
fogGlobal.fogColorDuo, manualTargetFogColorDuo,
|
||||||
|
fogGlobal.fogDistanceStart, manualTargetFogDistanceStart,
|
||||||
|
fogGlobal.fogDistanceEnd, manualTargetFogDistanceEnd,
|
||||||
|
fogGlobal.fogDistanceFalloff, manualTargetFogDistanceFalloff,
|
||||||
|
fogGlobal.directionalIntensity, manualTargetDirectionalIntensity,
|
||||||
|
transitionDuration));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerExit(Collider other)
|
||||||
|
{
|
||||||
|
if (!other.CompareTag(playerTag))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (transitionCoroutine != null)
|
||||||
|
StopCoroutine(transitionCoroutine);
|
||||||
|
|
||||||
|
// Przy wyjœciu wracamy do domyœlnych ustawieñ.
|
||||||
|
transitionCoroutine = StartCoroutine(TransitionProperties(
|
||||||
|
fogGlobal.fogIntensity, defaultIntensity,
|
||||||
|
fogGlobal.fogColorStart, defaultFogColorStart,
|
||||||
|
fogGlobal.fogColorEnd, defaultFogColorEnd,
|
||||||
|
fogGlobal.fogColorDuo, defaultFogColorDuo,
|
||||||
|
fogGlobal.fogDistanceStart, defaultFogDistanceStart,
|
||||||
|
fogGlobal.fogDistanceEnd, defaultFogDistanceEnd,
|
||||||
|
fogGlobal.fogDistanceFalloff, defaultFogDistanceFalloff,
|
||||||
|
fogGlobal.directionalIntensity, defaultDirectionalIntensity,
|
||||||
|
transitionDuration));
|
||||||
|
}
|
||||||
|
|
||||||
|
IEnumerator TransitionProperties(
|
||||||
|
float startIntensity, float targetIntensity,
|
||||||
|
Color startFogColorStart, Color targetFogColorStart,
|
||||||
|
Color startFogColorEnd, Color targetFogColorEnd,
|
||||||
|
float startFogColorDuo, float targetFogColorDuo,
|
||||||
|
float startFogDistanceStart, float targetFogDistanceStart,
|
||||||
|
float startFogDistanceEnd, float targetFogDistanceEnd,
|
||||||
|
float startFogDistanceFalloff, float targetFogDistanceFalloff,
|
||||||
|
float startDirectionalIntensity, float targetDirectionalIntensity,
|
||||||
|
float duration)
|
||||||
|
{
|
||||||
|
float elapsed = 0f;
|
||||||
|
while (elapsed < duration)
|
||||||
|
{
|
||||||
|
elapsed += Time.deltaTime;
|
||||||
|
float t = elapsed / duration;
|
||||||
|
|
||||||
|
// Interpolacja intensywnoœci foga
|
||||||
|
fogGlobal.fogIntensity = Mathf.Lerp(startIntensity, targetIntensity, t);
|
||||||
|
|
||||||
|
// Jeœli tryb pe³ny, interpolujemy tak¿e kolory, ustawienia odleg³oœci i intensywnoœæ œwiat³a kierunkowego
|
||||||
|
if (!onlyChangeIntensity)
|
||||||
|
{
|
||||||
|
fogGlobal.fogColorStart = Color.Lerp(startFogColorStart, targetFogColorStart, t);
|
||||||
|
fogGlobal.fogColorEnd = Color.Lerp(startFogColorEnd, targetFogColorEnd, t);
|
||||||
|
fogGlobal.fogColorDuo = Mathf.Lerp(startFogColorDuo, targetFogColorDuo, t);
|
||||||
|
fogGlobal.fogDistanceStart = Mathf.Lerp(startFogDistanceStart, targetFogDistanceStart, t);
|
||||||
|
fogGlobal.fogDistanceEnd = Mathf.Lerp(startFogDistanceEnd, targetFogDistanceEnd, t);
|
||||||
|
fogGlobal.fogDistanceFalloff = Mathf.Lerp(startFogDistanceFalloff, targetFogDistanceFalloff, t);
|
||||||
|
fogGlobal.directionalIntensity = Mathf.Lerp(startDirectionalIntensity, targetDirectionalIntensity, t);
|
||||||
|
}
|
||||||
|
yield return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ustawienie ostatecznych wartoœci
|
||||||
|
fogGlobal.fogIntensity = targetIntensity;
|
||||||
|
if (!onlyChangeIntensity)
|
||||||
|
{
|
||||||
|
fogGlobal.fogColorStart = targetFogColorStart;
|
||||||
|
fogGlobal.fogColorEnd = targetFogColorEnd;
|
||||||
|
fogGlobal.fogColorDuo = targetFogColorDuo;
|
||||||
|
fogGlobal.fogDistanceStart = targetFogDistanceStart;
|
||||||
|
fogGlobal.fogDistanceEnd = targetFogDistanceEnd;
|
||||||
|
fogGlobal.fogDistanceFalloff = targetFogDistanceFalloff;
|
||||||
|
fogGlobal.directionalIntensity = targetDirectionalIntensity;
|
||||||
|
}
|
||||||
|
transitionCoroutine = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/FogIntensityZone.cs.meta
Normal file
2
Assets/Scripts/FogIntensityZone.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 243b69222a2b4ef489a74b0bc6b33e7e
|
||||||
@@ -16,7 +16,7 @@ TerrainLayer:
|
|||||||
m_Metallic: 0
|
m_Metallic: 0
|
||||||
m_Smoothness: 0
|
m_Smoothness: 0
|
||||||
m_NormalScale: 2.39
|
m_NormalScale: 2.39
|
||||||
m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_DiffuseRemapMax: {x: 0.8679245, y: 0.8679245, z: 0.8679245, w: 1}
|
m_DiffuseRemapMax: {x: 0.8679245, y: 0.8679245, z: 0.8679245, w: 1}
|
||||||
m_MaskMapRemapMin: {x: 0, y: 0.6878295, z: 0, w: 0}
|
m_MaskMapRemapMin: {x: 0, y: 0.6878295, z: 0, w: 0}
|
||||||
m_MaskMapRemapMax: {x: 0.19480523, y: 0.77922076, z: 1, w: 0.13934228}
|
m_MaskMapRemapMax: {x: 0.19480523, y: 0.77922076, z: 1, w: 0.13934228}
|
||||||
|
|||||||
Reference in New Issue
Block a user