Add Synty asset packs (enemies + environment/FX/UI) via Git LFS

14 newly-imported Synty Polygon packs (~2.46 GB; FBX/PNG/textures stored in
Git LFS per .gitattributes). Enemy-grade characters: Werewolf, Kaiju,
FantasyHeroCharacters, Vikings, Western, HorrorCarnival, Dog. Environment:
Nature, NatureBiomes, PNB_Core, FantasyKingdom. UI/icons: Icons,
InterfaceCore, InterfaceSciFiSoldierHUD.

Werewolf + Kaiju back the DR-023 animated enemies; the rest are cataloged
for future work in Docs/Vault/06_Roadmap/Synty_Asset_Inventory.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-06 23:28:47 -07:00
parent 1e23246568
commit 5a59d8e14f
37144 changed files with 18418685 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e7cce07a1d4981447813d540152edf91
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,152 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-6965286897113262571
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
--- !u!114 &-1734985722026620778
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: -1
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Birds_01
m_Shader: {fileID: -6465566751694194690, guid: 0736e099ec10c9e46b9551b2337d0cc7,
type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _ALPHATEST_ON
m_InvalidKeywords:
- _COLORCOLOR_ON
- _EMISSION
- _FLIPBOOKBLENDING_OFF
m_LightmapFlags: 0
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2450
stringTagMap:
RenderType: TransparentCutout
disabledShaderPasses:
- GRABPASS
- SHADOWCASTER
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _Albedo_Map:
m_Texture: {fileID: 2800000, guid: e838eb5831185a4428760bad914139f3, type: 3}
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:
- _AlphaClip: 1
- _AlphaToMask: 1
- _Alpha_Clip_Threshold: 0.168
- _BUILTIN_AlphaClip: 1
- _BUILTIN_Blend: 0
- _BUILTIN_CullMode: 2
- _BUILTIN_DstBlend: 0
- _BUILTIN_QueueControl: 0
- _BUILTIN_QueueOffset: 0
- _BUILTIN_SrcBlend: 1
- _BUILTIN_Surface: 0
- _BUILTIN_ZTest: 4
- _BUILTIN_ZWrite: 1
- _BUILTIN_ZWriteControl: 0
- _Blend: 0
- _BlendOp: 0
- _BumpScale: 1
- _CameraFadingEnabled: 0
- _CameraFarFadeDistance: 2
- _CameraNearFadeDistance: 1
- _Camera_Fade_Far: 20
- _Camera_Fade_Near: 0
- _Camera_Fade_Smoothness: 1.5
- _CastShadows: 0
- _ColorMode: 4
- _Cull: 2
- _Cutoff: 0.168
- _DetailNormalMapScale: 1
- _DistortionBlend: 0.5
- _DistortionEnabled: 0
- _DistortionStrength: 1
- _DistortionStrengthScaled: 0
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EmissionEnabled: 0
- _Enable_Camera_Fade: 0
- _Enable_Scene_Fog: 0
- _Enable_Soft_Particles: 0
- _FlipbookBlending: 0
- _FlipbookMode: 0
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _LightingEnabled: 0
- _Metallic: 0
- _Mode: 1
- _OcclusionStrength: 1
- _Parallax: 0.02
- _QueueControl: 0
- _QueueOffset: 0
- _SmoothnessTextureChannel: 0
- _SoftParticlesEnabled: 0
- _SoftParticlesFarFadeDistance: 1
- _SoftParticlesNearFadeDistance: 0
- _Soft_Distance: 0.1
- _Soft_Power: 1
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _UVSec: 0
- _Use_View_Edge_Compensation: 0
- _ViewEdgePower: 1
- _ZTest: 4
- _ZWrite: 1
- _ZWriteControl: 0
m_Colors:
- _BaseColor: {r: 2, g: 2, b: 2, a: 1}
- _BaseColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0}
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _ColorAddSubDiff: {r: 1, g: 0, b: 0, a: 0}
- _EmissionColor: {r: 0.4716981, g: 0.43883818, b: 0.40272337, a: 1}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
m_BuildTextureStacks: []
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 753665b855752e54791f5526c81446b8
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,151 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-3418051600850092420
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: -1
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Birds_02
m_Shader: {fileID: -6465566751694194690, guid: 0736e099ec10c9e46b9551b2337d0cc7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _ALPHATEST_ON
m_InvalidKeywords:
- _COLORCOLOR_ON
- _EMISSION
- _FLIPBOOKBLENDING_OFF
m_LightmapFlags: 0
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2450
stringTagMap:
RenderType: TransparentCutout
disabledShaderPasses:
- GRABPASS
- SHADOWCASTER
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _Albedo_Map:
m_Texture: {fileID: 2800000, guid: e838eb5831185a4428760bad914139f3, type: 3}
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:
- _AlphaClip: 1
- _AlphaToMask: 1
- _Alpha_Clip_Threshold: 0.168
- _BUILTIN_AlphaClip: 1
- _BUILTIN_Blend: 0
- _BUILTIN_CullMode: 2
- _BUILTIN_DstBlend: 0
- _BUILTIN_QueueControl: 0
- _BUILTIN_QueueOffset: 0
- _BUILTIN_SrcBlend: 1
- _BUILTIN_Surface: 0
- _BUILTIN_ZTest: 4
- _BUILTIN_ZWrite: 1
- _BUILTIN_ZWriteControl: 0
- _Blend: 0
- _BlendOp: 0
- _BumpScale: 1
- _CameraFadingEnabled: 0
- _CameraFarFadeDistance: 2
- _CameraNearFadeDistance: 1
- _Camera_Fade_Far: 20
- _Camera_Fade_Near: 0
- _Camera_Fade_Smoothness: 1.5
- _CastShadows: 0
- _ColorMode: 4
- _Cull: 2
- _Cutoff: 0.168
- _DetailNormalMapScale: 1
- _DistortionBlend: 0.5
- _DistortionEnabled: 0
- _DistortionStrength: 1
- _DistortionStrengthScaled: 0
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EmissionEnabled: 0
- _Enable_Camera_Fade: 0
- _Enable_Scene_Fog: 0
- _Enable_Soft_Particles: 0
- _FlipbookBlending: 0
- _FlipbookMode: 0
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _LightingEnabled: 0
- _Metallic: 0
- _Mode: 1
- _OcclusionStrength: 1
- _Parallax: 0.02
- _QueueControl: 0
- _QueueOffset: 0
- _SmoothnessTextureChannel: 0
- _SoftParticlesEnabled: 0
- _SoftParticlesFarFadeDistance: 1
- _SoftParticlesNearFadeDistance: 0
- _Soft_Distance: 0.1
- _Soft_Power: 1
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _UVSec: 0
- _Use_View_Edge_Compensation: 1
- _ViewEdgePower: 1
- _ZTest: 4
- _ZWrite: 1
- _ZWriteControl: 0
m_Colors:
- _BaseColor: {r: 0.2452829, g: 0.2452829, b: 0.2452829, a: 1}
- _BaseColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0}
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 0.12264145, g: 0.12264145, b: 0.12264145, a: 1}
- _ColorAddSubDiff: {r: 1, g: 0, b: 0, a: 0}
- _EmissionColor: {r: 0.4716981, g: 0.43883818, b: 0.40272337, a: 1}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
m_BuildTextureStacks: []
--- !u!114 &3862875053733140387
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 78957ad58bc38b24e866676b1ac848da
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,154 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-4889628269251310759
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
--- !u!114 &-4690116159972640194
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: 10
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Birds_Wings_01
m_Shader: {fileID: -6465566751694194690, guid: 0736e099ec10c9e46b9551b2337d0cc7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _ALPHATEST_ON
m_InvalidKeywords:
- _FLIPBOOKBLENDING_OFF
m_LightmapFlags: 6
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 1
m_CustomRenderQueue: 2450
stringTagMap:
RenderType: TransparentCutout
disabledShaderPasses:
- ALWAYS
- SHADOWCASTER
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _Albedo_Map:
m_Texture: {fileID: 2800000, guid: 241bd356f6817f34a887e62b6f998149, type: 3}
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:
- _AlphaClip: 1
- _AlphaToMask: 1
- _Alpha_Clip_Threshold: 0.5
- _BUILTIN_AlphaClip: 1
- _BUILTIN_Blend: 0
- _BUILTIN_CullMode: 0
- _BUILTIN_DstBlend: 0
- _BUILTIN_QueueControl: 0
- _BUILTIN_QueueOffset: 0
- _BUILTIN_SrcBlend: 1
- _BUILTIN_Surface: 0
- _BUILTIN_ZTest: 4
- _BUILTIN_ZWrite: 1
- _BUILTIN_ZWriteControl: 0
- _Blend: 0
- _BlendOp: 0
- _BumpScale: 1
- _CameraFadingEnabled: 0
- _CameraFarFadeDistance: 2
- _CameraNearFadeDistance: 1
- _Camera_Fade_Far: 20
- _Camera_Fade_Near: 0
- _Camera_Fade_Smoothness: 1.5
- _CastShadows: 0
- _ColorMode: 0
- _Cull: 0
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DistortionBlend: 0.5
- _DistortionEnabled: 0
- _DistortionStrength: 1
- _DistortionStrengthScaled: 0
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EmissionEnabled: 0
- _Enable_Camera_Fade: 0
- _Enable_Scene_Fog: 0
- _Enable_Soft_Particles: 0
- _FlipbookBlending: 0
- _FlipbookMode: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _InvFade: 1
- _LightingEnabled: 0
- _Metallic: 0
- _Mode: 1
- _OcclusionStrength: 1
- _Parallax: 0.02
- _QueueControl: 0
- _QueueOffset: 0
- _SmoothnessTextureChannel: 0
- _SoftParticlesEnabled: 0
- _SoftParticlesFarFadeDistance: 1
- _SoftParticlesNearFadeDistance: 0
- _Soft_Distance: 0.1
- _Soft_Power: 1
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _UVSec: 0
- _Use_View_Edge_Compensation: 0
- _ViewEdgePower: 1
- _ZTest: 4
- _ZWrite: 1
- _ZWriteControl: 0
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _BaseColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0}
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _ColorAddSubDiff: {r: 1, g: 0, b: 0, a: 0}
- _EmisColor: {r: 0.7924528, g: 0.7924528, b: 0.7924528, a: 0}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
- _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
m_BuildTextureStacks: []
m_AllowLocking: 1
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2cd9492d6237c844dbe164da38834a2d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,148 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-4424640345505262212
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: 10
--- !u!114 &-1800269818234764363
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Circle_Cutout_Mat
m_Shader: {fileID: -6465566751694194690, guid: 0736e099ec10c9e46b9551b2337d0cc7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _ALPHATEST_ON
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords:
- _EMISSION
m_LightmapFlags: 2
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: Transparent
disabledShaderPasses:
- ALWAYS
- SHADOWCASTER
- DepthOnly
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _Albedo_Map:
m_Texture: {fileID: 2800000, guid: 5025628060a2d734c94655e06e24d0a6, type: 3}
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:
- _AlphaClip: 1
- _AlphaToMask: 0
- _Alpha_Clip_Threshold: 0
- _BUILTIN_AlphaClip: 1
- _BUILTIN_Blend: 0
- _BUILTIN_CullMode: 0
- _BUILTIN_DstBlend: 0
- _BUILTIN_QueueControl: -1
- _BUILTIN_QueueOffset: 0
- _BUILTIN_SrcBlend: 1
- _BUILTIN_Surface: 1
- _BUILTIN_ZTest: 4
- _BUILTIN_ZWrite: 0
- _BUILTIN_ZWriteControl: 0
- _Blend: 0
- _BlendOp: 0
- _BumpScale: 1
- _CameraFadingEnabled: 0
- _CameraFarFadeDistance: 2
- _CameraNearFadeDistance: 1
- _Camera_Fade_Far: 20
- _Camera_Fade_Near: 0
- _Camera_Fade_Smoothness: 1.1
- _CastShadows: 0
- _ColorMode: 0
- _Cull: 2
- _Cutoff: 0.5
- _DistortionBlend: 0.5
- _DistortionEnabled: 0
- _DistortionStrength: 1
- _DistortionStrengthScaled: 0
- _DstBlend: 10
- _DstBlendAlpha: 10
- _EmissionEnabled: 0
- _Enable_Camera_Fade: 0
- _Enable_Emission: 1
- _Enable_Scene_Fog: 0
- _Enable_Soft_Particles: 0
- _FlipbookBlending: 0
- _FlipbookMode: 0
- _Glossiness: 0.5
- _InvFade: 1
- _LightingEnabled: 0
- _Metallic: 0
- _Mode: 1
- _QueueControl: 0
- _QueueOffset: 0
- _SoftParticlesEnabled: 0
- _SoftParticlesFarFadeDistance: 1
- _SoftParticlesNearFadeDistance: 0
- _Soft_Distance: 0.976
- _Soft_Power: 1.37
- _SrcBlend: 5
- _SrcBlendAlpha: 1
- _Surface: 1
- _Use_View_Edge_Compensation: 1
- _ViewEdgePower: 1
- _ZTest: 4
- _ZWrite: 0
- _ZWriteControl: 0
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 0}
- _BaseColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0}
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _ColorAddSubDiff: {r: 1, g: 0, b: 0, a: 0}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Emission_Color: {r: 0.5283019, g: 0.5283019, b: 0.5283019, a: 0}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e332da9f5a4747c4497a915eb20a3daf
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,145 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-6834956580764812210
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: 10
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Circle_Transparent_Mat_01
m_Shader: {fileID: -6465566751694194690, guid: 0736e099ec10c9e46b9551b2337d0cc7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _ALPHATEST_ON
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords:
- _EMISSION
m_LightmapFlags: 2
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap:
RenderType: Transparent
disabledShaderPasses:
- DepthOnly
- SHADOWCASTER
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _Albedo_Map:
m_Texture: {fileID: 2800000, guid: 5025628060a2d734c94655e06e24d0a6, type: 3}
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:
- _AlphaClip: 1
- _AlphaToMask: 0
- _Alpha_Clip_Threshold: 0
- _BUILTIN_AlphaClip: 1
- _BUILTIN_Blend: 0
- _BUILTIN_CullMode: 0
- _BUILTIN_DstBlend: 0
- _BUILTIN_QueueControl: -1
- _BUILTIN_QueueOffset: 0
- _BUILTIN_SrcBlend: 1
- _BUILTIN_Surface: 1
- _BUILTIN_ZTest: 4
- _BUILTIN_ZWrite: 0
- _BUILTIN_ZWriteControl: 0
- _Blend: 0
- _BlendOp: 0
- _BumpScale: 1
- _CameraFadingEnabled: 0
- _CameraFarFadeDistance: 2
- _CameraNearFadeDistance: 1
- _Camera_Fade_Far: 20
- _Camera_Fade_Near: 0
- _Camera_Fade_Smoothness: 1.5
- _CastShadows: 0
- _ColorMode: 0
- _Cull: 2
- _Cutoff: 0.5
- _DistortionBlend: 0.5
- _DistortionEnabled: 0
- _DistortionStrength: 1
- _DistortionStrengthScaled: 0
- _DstBlend: 10
- _DstBlendAlpha: 10
- _EmissionEnabled: 0
- _Enable_Camera_Fade: 0
- _Enable_Emission: 0
- _Enable_Scene_Fog: 0
- _Enable_Soft_Particles: 0
- _FlipbookMode: 0
- _Glossiness: 0.5
- _InvFade: 1
- _LightingEnabled: 0
- _Metallic: 0
- _Mode: 1
- _QueueControl: 0
- _QueueOffset: 0
- _SoftParticlesEnabled: 0
- _SoftParticlesFarFadeDistance: 1
- _SoftParticlesNearFadeDistance: 0
- _Soft_Distance: 1.01
- _Soft_Power: 0.07
- _SrcBlend: 5
- _SrcBlendAlpha: 1
- _Surface: 1
- _Use_View_Edge_Compensation: 1
- _ViewEdgePower: 1
- _ZTest: 4
- _ZWrite: 0
- _ZWriteControl: 0
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _ColorAddSubDiff: {r: 1, g: 0, b: 0, a: 0}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Emission_Color: {r: 0, g: 0, b: 0, a: 0}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &297779671765021587
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b54a8c94a46b24c499a2ee8c65c5581e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,166 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-3294118000977810144
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: 10
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Cloud_Mat_01
m_Shader: {fileID: -6465566751694194690, guid: 4a6c8c23090929241b2a55476a46a9b1, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords:
- _EMISSION
m_LightmapFlags: 2
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- 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:
- _AlphaCutoff: 0.5
- _BUILTIN_QueueControl: -1
- _BUILTIN_QueueOffset: 0
- _Big_Wave1: 1
- _Big_WindAmount1: 1
- _Big_Windspeed1: 0.5
- _BumpScale: 1
- _Cloud_Speed: 0
- _Cloud_Strength: 0
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DirectLight: 0.32
- _DstBlend: 0
- _Enable_Fog: 0
- _Enable_Fresnel: 0
- _Enable_Scattering: 1
- _EnvironmentReflections: 1
- _Float0: 2.26
- _Float2: 0.45
- _Float3: 0.0823
- _Fog_Density: 0.2
- _Fresnel_Power: 0.6
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _Light_Intensity: 0
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _PanningSpeed: 0.015
- _PanningSpeed1: 1
- _Parallax: 0.02
- _QueueControl: 0
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Scattering_Edge_Dist: 0
- _Scattering_Multiplier: 0
- _SmoothnessTextureChannel: 0
- _Specular: 0.876
- _SpecularHighlights: 1
- _SrcBlend: 1
- _TransAmbient: 0
- _TransDirect: 0.38
- _TransNormalDistortion: 0.082
- _TransScattering: 1
- _TransShadow: 0.398
- _Translucency: 12
- _UVSec: 0
- _Use_Environment_Override: 0
- _WindDirection1: 1.24
- _WindEffect: 1
- _WindNoiseScale: 0.005
- _WindNoiseScale1: 0.662
- _WindWorldScale: 0.02
- _WindWorldScale1: 2.47
- _X_Multiplier: 2
- _Y_Multi: 0
- _Y_Multiplier: 0
- _ZWrite: 1
- _Z_Multiplier: 0.31
- __dirty: 0
- _contrast: 18.69
- _emissive: 0.25
- _emissive1: 0.435
- _fresnel: 0.15
- _lightDirMulti: 0.36
- _lightMax: 1
- _lightMin: 0.246
- _lightingContrast: 121.99
- _maxEmit: 1.301
- _minEmit: 0.912
- _minEmit1: 0.19
- _minEmit_dir: 0.611
- _poster: 9.08
- _rimLight: 0.75
- _rimLight1: 0.5
- _stepFloat: 9.56
- _stepFloatRim: 1.56
m_Colors:
- _Base_Color: {r: 0.7058824, g: 0.8901961, b: 1, a: 1}
- _Color: {r: 0.8773585, g: 0.8773585, b: 0.8773585, a: 1}
- _Color0: {r: 0.631, g: 0.80809605, b: 1, a: 0}
- _Color3: {r: 0.723, g: 0.80609995, b: 1, a: 0}
- _Colour: {r: 0.88699996, g: 0.93207437, b: 1, a: 0}
- _Colour1: {r: 0.5, g: 0.5, b: 0.5, a: 0}
- _Colour2: {r: 0.681, g: 0.8245501, b: 1, a: 0}
- _EmissionColor: {r: 0.092, g: 0.092, b: 0.092, a: 1}
- _EmissiveColour: {r: 0.36378607, g: 0.5328233, b: 0.7075472, a: 0}
- _Fresnel_Color: {r: 0.9339623, g: 0.1982467, b: 0.1982467, a: 0}
- _GustSmoothing1: {r: 1, g: 1, b: 1, a: 0}
- _Light_Direction_Override: {r: 0, g: 0, b: 0, a: 0}
- _Scattering_Color: {r: 0.735849, g: 0.5341338, b: 0.253382, a: 0}
- _Tint: {r: 0.5, g: 0.5, b: 0.5, a: 0}
- _Top_Color: {r: 1, g: 1, b: 1, a: 1}
- _Translucency: {r: 0.5, g: 0.5, b: 0.5, a: 0}
- _emissiveColour: {r: 0.759, g: 0.8125556, b: 1, a: 0}
- _emissiveColour1: {r: 0.656535, g: 0.7297195, b: 0.865, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &3043017246265412177
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c54fa0c50b2bfa540ac72fb4761c4c09
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
+149
View File
@@ -0,0 +1,149 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-7165913905110476518
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Fog_01
m_Shader: {fileID: -6465566751694194690, guid: 0736e099ec10c9e46b9551b2337d0cc7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords:
- _EMISSION
m_LightmapFlags: 2
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3001
stringTagMap:
RenderType: Transparent
disabledShaderPasses:
- DepthOnly
- SHADOWCASTER
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _Albedo_Map:
m_Texture: {fileID: 2800000, guid: f686075960b139249ba8d3c284bfde4c, type: 3}
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:
- _AlphaClip: 0
- _AlphaToMask: 0
- _Alpha_Clip_Threshold: 0
- _BUILTIN_AlphaClip: 1
- _BUILTIN_Blend: 0
- _BUILTIN_CullMode: 0
- _BUILTIN_DstBlend: 0
- _BUILTIN_QueueControl: -1
- _BUILTIN_QueueOffset: 0
- _BUILTIN_SrcBlend: 1
- _BUILTIN_Surface: 1
- _BUILTIN_ZTest: 4
- _BUILTIN_ZWrite: 0
- _BUILTIN_ZWriteControl: 0
- _Blend: 0
- _BlendOp: 0
- _BumpScale: 1
- _CameraFadingEnabled: 0
- _CameraFarFadeDistance: 2
- _CameraNearFadeDistance: 1
- _Camera_Fade_Far: 20
- _Camera_Fade_Near: 0
- _Camera_Fade_Smoothness: 1.5
- _CastShadows: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DistortionBlend: 0.5
- _DistortionEnabled: 0
- _DistortionStrength: 1
- _DistortionStrengthScaled: 0
- _DstBlend: 10
- _DstBlendAlpha: 10
- _EmissionEnabled: 0
- _Enable_Camera_Fade: 0
- _Enable_Emission: 0
- _Enable_Scene_Fog: 0
- _Enable_Soft_Particles: 0
- _FlipbookMode: 0
- _GlossMapScale: 1
- _Glossiness: 0.3
- _GlossyReflections: 1
- _LightingEnabled: 1
- _Metallic: 0
- _Mode: 3
- _OcclusionStrength: 1
- _Parallax: 0.02
- _QueueControl: 0
- _QueueOffset: 1
- _SmoothnessTextureChannel: 0
- _SoftParticlesEnabled: 0
- _SoftParticlesFarFadeDistance: 1
- _SoftParticlesNearFadeDistance: 0
- _Soft_Distance: 1.01
- _Soft_Power: 1
- _SpecularHighlights: 1
- _SrcBlend: 5
- _SrcBlendAlpha: 1
- _Surface: 1
- _UVSec: 0
- _Use_View_Edge_Compensation: 1
- _ViewEdgePower: 1
- _ZTest: 4
- _ZWrite: 0
- _ZWriteControl: 0
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 0.6313726}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Emission_Color: {r: 0, g: 0, b: 0, a: 0}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &2032839421421174271
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: 10
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 81a32375932a1e7479f08337657c44a6
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,314 @@
%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: Grass_Mat_01
m_Shader: {fileID: -6465566751694194690, guid: 9b98a126c8d4d7a4baeb81b16e4f7b97, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _ALPHATEST_ON
- _BUILTIN_ALPHATEST_ON
- _BUILTIN_AlphaClip
m_InvalidKeywords:
- _EMISSION
- _FLATCOLOURSWITCH_ON
- _LEAFFLATCOLOURSWITCH_ON
- _LOD_FADE_CROSSFADE_ON
m_LightmapFlags: 2
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _Emissive_2_Mask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Emissive_Mask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Emissive_Pulse_Map:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Leaf_Ambient_Occlusion:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Leaf_Normal:
m_Texture: {fileID: 2800000, guid: ea57697f22d46ae47b42cb69c6da0a6e, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Leaf_Texture:
m_Texture: {fileID: 2800000, guid: 0f2aa787ebfed6948971b49259ce7bdd, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Trunk_Ambient_Occlusion:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Trunk_Emissive_Mask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Trunk_Normal:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Trunk_Texture:
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:
- _AlphaClip: 1
- _AlphaCutoff: 0.5
- _AlphaToMask: 1
- _Alpha_Clip_Threshold: 0.5
- _BUILTIN_AlphaClip: 1
- _BUILTIN_Blend: 0
- _BUILTIN_CullMode: 0
- _BUILTIN_DstBlend: 0
- _BUILTIN_QueueControl: -1
- _BUILTIN_QueueOffset: 0
- _BUILTIN_SrcBlend: 1
- _BUILTIN_Surface: 0
- _BUILTIN_ZTest: 4
- _BUILTIN_ZWrite: 1
- _BUILTIN_ZWriteControl: 0
- _Big_Wave: 10
- _Big_WindAmount: 1.22
- _Big_Windspeed: 1.84
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _Breeze_Strength: 0.2
- _BumpScale: 1
- _CastShadows: 1
- _Color_Noise_Large_Freq: 0
- _Color_Noise_Small_Freq: 0
- _ColourNoiseLargeScale: 0
- _ColourNoiseScale: 0.108
- _ColourNoiseSmallScale: 0
- _Cull: 0
- _Cutoff: 0.3
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EmissiveAmount: 0
- _Emissive_Amount: 0
- _Enable_Breeze: 1
- _Enable_Emission: 0
- _Enable_Frosting: 0
- _Enable_Leaf_Normal: 1
- _Enable_Light_Wind: 1
- _Enable_Pulse: 0
- _Enable_Strong_Wind: 1
- _Enable_Trunk_Normal: 0
- _Enable_Wind_Twist: 1
- _EnvironmentReflections: 1
- _FlatColourSwitch: 1
- _Float0: 0.5
- _Float1: 0.05
- _FrostingFalloff: 1
- _FrostingHeight: 1
- _FrostingSwitch: 0
- _FrostingWorldObjectSwitch2: 0
- _Frosting_Falloff: 1
- _Frosting_Height: 1
- _Frosting_Use_World_Normals: 0
- _Gale_Bend: 1
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _GustAmount: 0
- _GustFreq: 0.224
- _GustLargeFreq: 0.081
- _GustScale: 0.094
- _GustSmallFreq: 0.306
- _JitterAmount: 0.552
- _JitterFreq: 0.19
- _LOD_FADE_CROSSFADE: 1
- _LOD_FADE_CROSSFADE_in: 1
- _LOD_FADE_CROSSFADE_out: 1
- _LeafBigNoiseAmount: 0.21
- _LeafBigNoiseScale: 1
- _LeafFlatColourSwitch: 1
- _LeafMetallic: 0
- _LeafNoiseAmount: 0.371
- _LeafNoiseScale: 1
- _LeafNormalAmount: 0.5
- _LeafSmoothness: 0.2
- _Leaf_Ambient_Occlusion_Intensity: 0.5
- _Leaf_Flat_Color: 1
- _Leaf_Metallic: 0
- _Leaf_Normal_Strength: 0.5
- _Leaf_Smoothness: 0.2
- _Light_Wind_Strength: 0.5
- _Light_Wind_Use_Leaf_Fade: 1
- _Light_Wind_Y_Offset: 0
- _Light_Wind_Y_Strength: 1
- _Metallic: 0.132
- _Mode: 0
- _NormalAmount: 0.5
- _OcclusionStrength: 1
- _PanningSpeed: 0.007
- _PanningSpeed1: 0.127
- _Parallax: 0.02
- _PulseSpeed: 0.04
- _PulseTiling: 0.03
- _Pulse_Speed: 0.04
- _Pulse_Tiling: 0.03
- _QueueControl: 0
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Small_Wave: 2.1
- _Smoothness: 0.2
- _SmoothnessTextureChannel: 0
- _SnowFalloff: 0
- _SnowHeight: 1
- _SnowSwitch: 0
- _SnowSwitch5: 0
- _SnowTiling: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Strong_Wind_Frequency: 0.5
- _Strong_Wind_Strength: 0.5
- _Surface: 0
- _Tiling: 1
- _Tint_Tiling: 0.5
- _TotalWindAmount: 1
- _TrunkFlatColourSwitch: 0
- _TrunkMetallic: 0
- _TrunkNormalAmount: 0.5
- _TrunkSmoothness: 0.2
- _Trunk_Ambient_Occlusion_Intensity: 0.5
- _Trunk_Flat_Color_Switch: 0
- _Trunk_Metallic: 0
- _Trunk_Normal_Strength: 0.5
- _Trunk_Smoothness: 0.2
- _UVSec: 0
- _Use_Color_Noise: 1
- _Use_Global_Weather_Controller: 1
- _Use_Vertex_Color_Wind: 1
- _WindAmount: 1
- _WindBaseline: 0
- _WindDirection: 0
- _WindDirection1: 0
- _WindNoiseScale: 1
- _WindNoiseScale1: 14.76
- _WindNoiseScale2: 0.5
- _WindWorldScale: 0.08
- _WindWorldScale1: 0.001
- _Wind_Twist_Strength: 0.15
- _WorkflowMode: 1
- _Y_multiplier: -0.5
- _ZTest: 4
- _ZWrite: 1
- _ZWriteControl: 0
- __dirty: 0
- _leafNoiseScale: 1
- _minimum: 0
- _noiseAmount: 0.189
- _noiseScale: 0.7
- _noiseTemp: 1
- _remap: 0.7
- _sin: 0.27
- _snowFalloff: 0
- _tempNoise: 0.29
- _worldScale: 0.67
m_Colors:
- _BaseColour: {r: 0.07843138, g: 0.02015968, b: 0, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _Color0: {r: 1, g: 1, b: 1, a: 0}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Emissive2Colour: {r: 0, g: 0, b: 0, a: 0}
- _EmissiveColour: {r: 0, g: 0.71420974, b: 0.98039216, a: 0}
- _EmissiveColour1: {r: 0, g: 0, b: 0, a: 0}
- _Emissive_2_Color: {r: 0, g: 0, b: 0, a: 0}
- _Emissive_Color: {r: 0, g: 0.71420974, b: 0.98039216, a: 0}
- _Emissive_Mask_2_Offset: {r: 0, g: 0, b: 0, a: 0}
- _Emissive_Mask_2_Tiling: {r: 1, g: 1, b: 0, a: 0}
- _Emissive_Mask_Offset: {r: 0, g: 0, b: 0, a: 0}
- _Emissive_Mask_Tiling: {r: 1, g: 1, b: 0, a: 0}
- _FrostingColour: {r: 1, g: 1, b: 1, a: 0}
- _Frosting_Color: {r: 1, g: 1, b: 1, a: 0}
- _GustHighlight: {r: 0.5660378, g: 0.5660378, b: 0.5660378, a: 0}
- _GustSmoothing: {r: 0.5, g: 0.5, b: 0.5, a: 0}
- _LeafBaseColour: {r: 0.100629, g: 0.2830189, b: 0, a: 0}
- _LeafNoiseColour: {r: 0.56184477, g: 0.6320754, b: 0, a: 0}
- _LeafNoiseLargeColour: {r: 0.07843138, g: 0.02015968, b: 0, a: 0}
- _LeafTint: {r: 0.07843138, g: 0.02015968, b: 0, a: 0}
- _Leaf_Base_Color: {r: 0.10062898, g: 0.28301886, b: 0, a: 0}
- _Leaf_Noise_Color: {r: 0.5618447, g: 0.6320754, b: 0, a: 0}
- _Leaf_Noise_Large_Color: {r: 0.078431346, g: 0.02015968, b: 0, a: 0}
- _Leaf_Normal_Offset: {r: 0, g: 0, b: 0, a: 0}
- _Leaf_Normal_Tiling: {r: 1, g: 1, b: 0, a: 0}
- _Leaf_Offset: {r: 0, g: 0, b: 0, a: 0}
- _Leaf_Tiling: {r: 1, g: 1, b: 0, a: 0}
- _SnowColour: {r: 1, g: 1, b: 1, a: 0}
- _Tint: {r: 0, g: 0, b: 0, a: 0}
- _TrunkBaseColour: {r: 0.07843138, g: 0.02015968, b: 0, a: 0}
- _TrunkEmissiveColour: {r: 0, g: 0, b: 0, a: 0}
- _TrunkNoiseColour: {r: 0, g: 0, b: 0, a: 0}
- _TrunkTint: {r: 0.07843138, g: 0.02015968, b: 0, a: 0}
- _Trunk_Base_Color: {r: 0.078431346, g: 0.02015968, b: 0, a: 0}
- _Trunk_Emissive_Color: {r: 0, g: 0, b: 0, a: 0}
- _Trunk_Noise_Color: {r: 0, g: 0, b: 0, a: 0}
- _Trunk_Normal_Offset: {r: 0, g: 0, b: 0, a: 0}
- _Trunk_Normal_Tiling: {r: 1, g: 1, b: 0, a: 0}
- _Trunk_Offset: {r: 0, g: 0, b: 0, a: 0}
- _Trunk_Tiling: {r: 1, g: 1, b: 0, a: 0}
- _vertColourEmit: {r: 0, g: 0, b: 0, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &2695346914217682590
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: 10
--- !u!114 &3384125473008554070
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 337f8fd204ad6184485dbbd7d0e3d08f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0f40deaf2739fb24fb89ab39300ed991
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ed43dfa7c6ccd044f910dade7f10219c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2655988077585873504
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d7b5d19c8a166074c9fdff4b410f133a
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2655988077585873504
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 641afcbffabc7d64d896be1c64fc0d24
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2655988077585873504
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4f64f8fc47af20f4fa622327a76dbfe4
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2655988077585873504
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9324a2bdeac5b04468401c0bc9902ccf
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2655988077585873504
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,89 @@
%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: Skybox_Mat_01
m_Shader: {fileID: -6465566751694194690, guid: de1d86872962c37429cb628a7de53613, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords:
- _EMISSION
m_LightmapFlags: 2
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- 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:
- _AlphaCutoff: 0.5
- _BUILTIN_QueueControl: -1
- _BUILTIN_QueueOffset: 0
- _Distance: 200
- _Enable_UV_Based: 0
- _EnvironmentReflections: 1
- _Falloff: 1
- _Offset: 70
- _QueueControl: 0
- _QueueOffset: 0
- _ReceiveShadows: 1
- _SpecularHighlights: 1
- _UV_Based_Toggle: 0
- __dirty: 0
m_Colors:
- _Bottom_Color: {r: 0.7843138, g: 0.3137255, b: 0.23529413, a: 1}
- _ColorBottom: {r: 0.78431374, g: 0.3137255, b: 0.23529412, a: 0}
- _ColorTop: {r: 0.101960786, g: 0, b: 0, a: 0}
- _EmissionColor: {r: 1, g: 1, b: 1, a: 1}
- _Top_Color: {r: 0.10196079, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &1205387759387733027
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
--- !u!114 &4796635614883595404
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: 10
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 11bb87b4a9b098e49b0dd46a67b38578
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,131 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-2664722364176407742
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: SoftParticle
m_Shader: {fileID: -6465566751694194690, guid: 0736e099ec10c9e46b9551b2337d0cc7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _ALPHATEST_ON
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap:
RenderType: Transparent
disabledShaderPasses:
- DepthOnly
- SHADOWCASTER
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _Albedo_Map:
m_Texture: {fileID: 2800000, guid: 654ad34974c067a42a847a124ffa2118, type: 3}
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:
- _AlphaClip: 1
- _AlphaToMask: 0
- _Alpha_Clip_Threshold: 0
- _BUILTIN_AlphaClip: 1
- _BUILTIN_Blend: 0
- _BUILTIN_CullMode: 0
- _BUILTIN_DstBlend: 10
- _BUILTIN_QueueControl: 0
- _BUILTIN_QueueOffset: 0
- _BUILTIN_SrcBlend: 5
- _BUILTIN_Surface: 1
- _BUILTIN_ZTest: 4
- _BUILTIN_ZWrite: 0
- _BUILTIN_ZWriteControl: 0
- _Blend: 0
- _BumpScale: 1
- _Camera_Fade_Far: 20
- _Camera_Fade_Near: 0
- _Camera_Fade_Smoothness: 1.5
- _CastShadows: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 10
- _Enable_Camera_Fade: 0
- _Enable_Emission: 0
- _Enable_Scene_Fog: 0
- _Enable_Soft_Particles: 1
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _QueueControl: 0
- _QueueOffset: 0
- _SmoothnessTextureChannel: 0
- _Soft_Distance: 1.01
- _Soft_Power: 1
- _SpecularHighlights: 1
- _SrcBlend: 5
- _Surface: 1
- _UVSec: 0
- _Use_View_Edge_Compensation: 1
- _ViewEdgePower: 1
- _ZTest: 4
- _ZWrite: 0
- _ZWriteControl: 0
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Emission_Color: {r: 0, g: 0, b: 0, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &1043937875055351658
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: 10
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c50dc05a7643fc14a94fadd13e073b65
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,89 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-107577548136614770
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Synty_Clouds_Tropical
m_Shader: {fileID: -6465566751694194690, guid: 4a6c8c23090929241b2a55476a46a9b1, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- 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:
- _BUILTIN_QueueControl: 0
- _BUILTIN_QueueOffset: 0
- _Cloud_Speed: 0
- _Cloud_Strength: 0.18
- _Enable_Fog: 1
- _Enable_Fresnel: 1
- _Enable_Scattering: 0
- _Fog_Density: 0.248
- _Fresnel_Power: 0.32
- _Light_Intensity: 0
- _QueueControl: 0
- _QueueOffset: 0
- _Scattering_Edge_Dist: 0.564
- _Scattering_Multiplier: 0.31
- _Use_Environment_Override: 0
m_Colors:
- _Base_Color: {r: 0.31854683, g: 0.47353154, b: 0.70110214, a: 1}
- _Fresnel_Color: {r: 0.3063813, g: 0.53691286, b: 0.764151, a: 1}
- _Light_Direction_Override: {r: 0, g: 0, b: 0, a: 0}
- _Scattering_Color: {r: 1, g: 1, b: 1, a: 0}
- _Top_Color: {r: 0.9911022, g: 0.9911022, b: 0.9911022, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &3830183165338074800
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: 10
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9ebf89cea4d94c84fb1a5397278c840f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,271 @@
%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: Water_Mat_Basic
m_Shader: {fileID: -6465566751694194690, guid: 436db39b4e2ae5e46a17e21865226b19, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _RECEIVE_SHADOWS_OFF
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap:
RenderType: Transparent
disabledShaderPasses:
- DepthOnly
- SHADOWCASTER
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _Noise_Texture:
m_Texture: {fileID: 2800000, guid: e0595e1df515fa64fa99e3017d4ace24, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Normal_Texture:
m_Texture: {fileID: 2800000, guid: bd6f803a7aa2a134693d786c0b77bdaa, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SampleTexture2D_c5bda943a6134644bb954c2c5ced7db4_Texture_1_Texture2D:
m_Texture: {fileID: 2800000, guid: 932b131d5388cf24ca67e9dcdf91dce4, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Scrolling_Texture:
m_Texture: {fileID: 2800000, guid: 4199a601545ad164badaad1fe1733439, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Shore_Foam_Noise_Texture:
m_Texture: {fileID: 2800000, guid: e0595e1df515fa64fa99e3017d4ace24, type: 3}
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:
- _AlphaClip: 0
- _AlphaToMask: 0
- _Animation_Offset: 0
- _BUILTIN_AlphaClip: 0
- _BUILTIN_Blend: 0
- _BUILTIN_CullMode: 0
- _BUILTIN_DstBlend: 10
- _BUILTIN_QueueControl: 0
- _BUILTIN_QueueOffset: 0
- _BUILTIN_SrcBlend: 5
- _BUILTIN_Surface: 1
- _BUILTIN_ZTest: 4
- _BUILTIN_ZWrite: 0
- _BUILTIN_ZWriteControl: 0
- _Base_Opacity: 0.941
- _Blend: 0
- _BlendModePreserveSpecular: 0
- _BumpScale: 1
- _CastShadows: 0
- _CausticsIntensity: 2
- _Caustics_Intensity: 0.062
- _Caustics_Scale: 10
- _Caustics_Speed: 1
- _Caustics_Use_Voronoi_Noise: 0
- _Cull: 2
- _Cutoff: 0.5
- _Deep_Height: 1.16
- _Deep_Intensity: 1
- _Depth_Distance: 3.94
- _Depth_Height: 2.43
- _Depth_Visiblity: 15
- _DetailNormalMapScale: 1
- _Distance_multiplier: 0.35
- _Distance_power: 0.9
- _Distant_Water_Intensity: 3
- _Distant_Water_Power: 13.07
- _Distortion_Size: 10
- _Distortion_Speed: 0.2
- _Distortion_Strength: 0.06
- _DstBlend: 10
- _EdgePower: 0
- _Enable_Animation: 1
- _Enable_Caustics: 1
- _Enable_Distortion: 0
- _Enable_Fresnel: 1
- _Enable_Fresnel_Fade: 0
- _Enable_Fresnel_glancing_angle_fix: 1
- _Enable_Global_Foam: 0
- _Enable_Normals: 1
- _Enable_Ocean_Wave: 0
- _Enable_Shore_Animation: 0
- _Enable_Shore_Foam: 1
- _Enable_Shore_Wave_Foam: 1
- _Enable_Shore_Waves: 1
- _Enable_Top_Scrolling_Texture: 0
- _Enable_distant_normal_intensity_fall_off: 1
- _Fade_Distance: 1
- _Fade_Power: 0
- _Float: 0.1
- _Foam_Glow: 0
- _Fresnel_Distance: 5.96
- _Fresnel_Power: 1.59
- _GLancing_angle_mask_power: 0.21
- _Glancing_angle_mask_border: 5.65
- _Glancing_angle_mask_power: 1.18
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _Normal_Intensity: 1
- _Normal_Noise_Intensity: 0.23
- _Normal_Noise_Tiling: 0.2
- _Normal_Pan_Speed: 1
- _Normal_Tiling: 0.04
- _OcclusionStrength: 1
- _OceanWaveFoamIntensity: 0.5
- _OceanWaveHeight: 1
- _OceanWaveSpeed: 0.5
- _Ocean_Foam_Amount: 0.5
- _Ocean_Foam_Breakup_Tiling: 1
- _Ocean_Foam_Opacity: 0.321
- _Ocean_Wave_Foam_Amount: 0.5
- _Ocean_Wave_Foam_Breakup_Tiling: 0.001
- _Ocean_Wave_Foam_Intensity: 0.442
- _Ocean_Wave_Height: 0.26
- _Ocean_Wave_Speed: 1
- _Parallax: 0.02
- _QueueControl: 0
- _QueueOffset: 0
- _ReceiveShadows: 0
- _Scrolling_Texture_Opacity: 1
- _Shallow_Intensity: 1
- _Shallows_Opacity: 0.661
- _ShoreEdgeGradientIntensity: 0.254
- _ShoreEdgeTransparency: 0.58
- _Shore_Edge_Foam_Intensity: 1
- _Shore_Edge_Noise_Scale: 0.86
- _Shore_Edge_Opacity: 0.09
- _Shore_Edge_Thickness: 0.233
- _Shore_Edge_Transparency: 0.487
- _Shore_Foam_Intensity: 0.504
- _Shore_Foam_Noise_Scale: 1
- _Shore_Glow: 0
- _Shore_Small_Foam_Opacity: 0.723
- _Shore_Small_Foam_Tiling: 2.5
- _Shore_Wave_Fade_In_Speed: 3
- _Shore_Wave_Fade_Out_Speed: 1
- _Shore_Wave_Intensity: 0.226
- _Shore_Wave_Noise_Scale: 0.1
- _Shore_Wave_Oscillation: 1
- _Shore_Wave_Return_Amount: 0.519
- _Shore_Wave_Speed: 0.144
- _Shore_Wave_Thickness: 0.113
- _Smoothness: 0.776
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 5
- _Surface: 1
- _UVSec: 0
- _UseVoronoiNoiseForCaustics: 0
- _Very_Deep_Height: 4
- _Water_Depth: 0.697
- _Water_Near_Far_Balance: 0
- _Water_Noise_Tiling: 0.19
- _Water_Normal_Distortion_Intensity: 0.2
- _Water_Normal_Distortion_Speed: 1
- _Water_Normal_Intensity: 1
- _Water_Normal_Noise_Intensity: 0.44
- _Water_Normal_Noise_Speed: 1
- _Water_Normal_Pan_Speed: 1
- _Water_Normal_Tiling: 0.04
- _WorkflowMode: 1
- _ZTest: 4
- _ZWrite: 0
- _ZWriteControl: 0
- _deepPower: 82.63
- _testHeight: 0
m_Colors:
- _CausticsColor: {r: 0.7529412, g: 0.7333333, b: 0.6509804, a: 0}
- _Caustics_Color: {r: 1, g: 0.97889644, b: 0.8156863, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _Deep_Color: {r: 0.13443395, g: 0.5, b: 0.43360785, a: 1}
- _Depth_Offset: {r: 0, g: 0, b: 0, a: 0}
- _Distant_Water_Color: {r: 0, g: 0.17334907, b: 0.33962262, a: 1}
- _Distortion_Direction: {r: 0.1, g: 0.1, b: 0, a: 0}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Foam_Color: {r: 1, g: 1, b: 1, a: 0}
- _Foam_Glow_Color: {r: 1, g: 1, b: 1, a: 0}
- _InvProjectionMatrix: {r: 0, g: 0, b: 0, a: 0}
- _Metallic_Color: {r: 1, g: 1, b: 1, a: 0}
- _Normal_Offset: {r: 0, g: 0, b: 0, a: 0}
- _OceanWaveFoamColor: {r: 0, g: 0, b: 0, a: 0}
- _Ocean_Wave_Foam_Color: {r: 1, g: 1, b: 1, a: 0}
- _Scroll_Texture_Dir: {r: 0, g: 0, b: 0, a: 0}
- _Scrolling_Texture_Direction: {r: 0, g: -0.01, b: 0, a: 0}
- _Scrolling_Texture_Tiling: {r: 1, g: 1, b: 0, a: 0}
- _Scrolling_Texture_Tint: {r: 0.37121746, g: 0.7245609, b: 0.8113207, a: 0}
- _Shallow_Color: {r: 0.8313726, g: 0.7058824, b: 0.5529412, a: 1}
- _Shore_Foam_Color_Tint: {r: 1, g: 1, b: 1, a: 0}
- _Shore_Foam_Noise_Scale: {r: 1, g: 1, b: 0, a: 0}
- _Shore_Glow_Color: {r: 1, g: 1, b: 1, a: 0}
- _Shore_Wave_Color: {r: 1, g: 1, b: 1, a: 1}
- _Shore_Wave_Color_Tint: {r: 1, g: 1, b: 1, a: 0}
- _Shore_Wave_Foam_Noise_Scale: {r: 1, g: 1, b: 0, a: 0}
- _Shore_Wave_Noise_Scale: {r: 0.1, g: 0.1, b: 0, a: 0}
- _ShowGlowColor: {r: 0.6084906, g: 0.9138365, b: 1, a: 0}
- _Specular_Color: {r: 1, g: 1, b: 1, a: 0}
- _Tiling_Amount: {r: 1, g: 1, b: 0, a: 0}
- _Top_Scroll_Color: {r: 0.37121746, g: 0.7245609, b: 0.8113207, a: 0}
- _Very_Deep_Color: {r: 0.064836234, g: 0.23616055, b: 0.2924528, a: 0}
- _Water_Deep_Color: {r: 0.19340093, g: 0.519, b: 0.49027064, a: 0}
- _Water_Far_Color: {r: 0.2117647, g: 0.5921569, b: 0.6509804, a: 1}
- _Water_Near_Color: {r: 0.09411765, g: 0.227451, b: 0.3019608, a: 1}
- _Water_Normal_Offset: {r: 0, g: 0, b: 0, a: 0}
- _Water_Normal_Tiling: {r: 0.02, g: 0.02, b: 0, a: 0}
- _Water_Shallow_Color: {r: 0.8301887, g: 0.7040698, b: 0.5521538, a: 0}
- _Water_Very_Deep_Color: {r: 0, g: 0.37495828, b: 0.4811321, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &2862270284184042971
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: 639247ca83abc874e893eb93af2b5e44, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 0
--- !u!114 &7254917657683383287
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: 10
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cdb077a74adc2364fba71e0893240ca7
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: dc0e5b40434d88c4998c4f657898281c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -0,0 +1,97 @@
fileFormatVersion: 2
guid: 336f7fb4be5ef5d458d1f403b3595756
ModelImporter:
serializedVersion: 19301
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 0
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 0
importBlendShapes: 0
importCameras: 0
importLights: 0
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 120
normalImportMode: 1
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 2
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -0,0 +1,97 @@
fileFormatVersion: 2
guid: 65b3037c0d89ade49a643720e46ea2f1
ModelImporter:
serializedVersion: 19301
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 0
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 0
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 0
importBlendShapes: 0
importCameras: 0
importLights: 0
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -3
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 30
normalImportMode: 1
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 2
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -0,0 +1,97 @@
fileFormatVersion: 2
guid: eedcc2bfc694e2f4286178c2ca5a19ab
ModelImporter:
serializedVersion: 19301
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 0
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 0
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 0
importBlendShapes: 0
importCameras: 0
importLights: 0
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -3
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 30
normalImportMode: 1
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 2
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -0,0 +1,97 @@
fileFormatVersion: 2
guid: 0a5b8883395c2c94898888395c221682
ModelImporter:
serializedVersion: 19301
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -0,0 +1,106 @@
fileFormatVersion: 2
guid: ee26c0ade75d838479550e035b35ee19
ModelImporter:
serializedVersion: 20300
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 0
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 0
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages:
- 0.25
- 0.125
- 0.01
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 0
importBlendShapes: 0
importCameras: 0
importLights: 0
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 0
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -3
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 3
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 2
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -0,0 +1,97 @@
fileFormatVersion: 2
guid: e05867e933dc6ca45a89c6daf5512752
ModelImporter:
serializedVersion: 19301
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 0
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 0
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 0
importBlendShapes: 0
importCameras: 0
importLights: 0
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 1
tangentImportMode: 1
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1
blendShapeNormalImportMode: 1
normalSmoothingSource: 2
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -0,0 +1,97 @@
fileFormatVersion: 2
guid: c66960d310916cf4bb4246bbc76740bf
ModelImporter:
serializedVersion: 19301
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 0
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 0
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 0
importBlendShapes: 0
importCameras: 0
importLights: 0
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -3
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 3
normalImportMode: 1
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 2
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -0,0 +1,109 @@
fileFormatVersion: 2
guid: b9c778b9f476be4489801d26a4d2cd4a
ModelImporter:
serializedVersion: 22200
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 0
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 319030a5708906f479de4cdd17756c9e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9fd4a8f9661417147b89a78c0a3a94cf
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 32b4889a0597f4643946f922c4161e40
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ad73027ba8a07e943b25a2fac49dfd77
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 73bd0be678270ca4e85be3edf52d3185
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,81 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &382368691562699300
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1010392774561955998}
- component: {fileID: 4155267150919765819}
- component: {fileID: 2183839260480437233}
m_Layer: 0
m_Name: SM_Env_Cloud_Ring_01
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1010392774561955998
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 382368691562699300}
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &4155267150919765819
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 382368691562699300}
m_Mesh: {fileID: 126315953321181073, guid: 65b3037c0d89ade49a643720e46ea2f1, type: 3}
--- !u!23 &2183839260480437233
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 382368691562699300}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: c54fa0c50b2bfa540ac72fb4761c4c09, 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
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 095869ae7a3059e4bacccc852cb82962
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,81 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2827401321296578225
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3204067219854728203}
- component: {fileID: 2006628221418017710}
- component: {fileID: 4340360589394437988}
m_Layer: 0
m_Name: SM_Env_Cloud_Ring_02
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3204067219854728203
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2827401321296578225}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &2006628221418017710
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2827401321296578225}
m_Mesh: {fileID: -5133025022365977981, guid: eedcc2bfc694e2f4286178c2ca5a19ab, type: 3}
--- !u!23 &4340360589394437988
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2827401321296578225}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: c54fa0c50b2bfa540ac72fb4761c4c09, 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
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7ece8030f0e2d584d852940ab5d88427
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,85 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &6216691667786144519
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6705279916964200893}
- component: {fileID: 7683751312235253272}
- component: {fileID: 5568380235615419090}
m_Layer: 0
m_Name: SM_Env_Fog_Ring_01
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6705279916964200893
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6216691667786144519}
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7683751312235253272
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6216691667786144519}
m_Mesh: {fileID: 5278378462708113451, guid: 0a5b8883395c2c94898888395c221682, type: 3}
--- !u!23 &5568380235615419090
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6216691667786144519}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 81a32375932a1e7479f08337657c44a6, 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: 4ddb5313f19796442b505f8ba4d4378e
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,306 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4329539280604718496
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 775268073009244122}
- component: {fileID: 4150486688048397788}
- component: {fileID: 4886503286920470406}
m_Layer: 0
m_Name: SM_Env_Grass_01_LOD0
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &775268073009244122
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4329539280604718496}
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 3929399815699829785}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &4150486688048397788
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4329539280604718496}
m_Mesh: {fileID: 5330367459728830273, guid: ee26c0ade75d838479550e035b35ee19, type: 3}
--- !u!23 &4886503286920470406
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4329539280604718496}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 337f8fd204ad6184485dbbd7d0e3d08f, 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 &4450639437272338083
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3929399815699829785}
- component: {fileID: 8129586635983070056}
m_Layer: 0
m_Name: SM_Env_Grass_01
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3929399815699829785
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4450639437272338083}
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 775268073009244122}
- {fileID: 3230147528885793052}
- {fileID: 1638974381163207996}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!205 &8129586635983070056
LODGroup:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4450639437272338083}
serializedVersion: 2
m_LocalReferencePoint: {x: 0.0020991564, y: 0.45902553, z: 0.0013104081}
m_Size: 1.9001158
m_FadeMode: 1
m_AnimateCrossFading: 0
m_LastLODIsBillboard: 0
m_LODs:
- screenRelativeHeight: 0.10218467
fadeTransitionWidth: 0.05
renderers:
- renderer: {fileID: 4886503286920470406}
- screenRelativeHeight: 0.045682438
fadeTransitionWidth: 0.1
renderers:
- renderer: {fileID: 921103542854011534}
- screenRelativeHeight: 0.01
fadeTransitionWidth: 0.1
renderers:
- renderer: {fileID: 466766643098130362}
m_Enabled: 1
--- !u!1 &7099518115681963166
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1638974381163207996}
- component: {fileID: 7485815549262920333}
- component: {fileID: 466766643098130362}
m_Layer: 0
m_Name: SM_Env_Grass_01_LOD2
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1638974381163207996
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7099518115681963166}
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 3929399815699829785}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7485815549262920333
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7099518115681963166}
m_Mesh: {fileID: -9208904075467085062, guid: ee26c0ade75d838479550e035b35ee19, type: 3}
--- !u!23 &466766643098130362
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7099518115681963166}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 337f8fd204ad6184485dbbd7d0e3d08f, 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 &9019769532646444906
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3230147528885793052}
- component: {fileID: 2025354289335888196}
- component: {fileID: 921103542854011534}
m_Layer: 0
m_Name: SM_Env_Grass_01_LOD1
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3230147528885793052
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9019769532646444906}
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 3929399815699829785}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &2025354289335888196
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9019769532646444906}
m_Mesh: {fileID: 4795818754618484709, guid: ee26c0ade75d838479550e035b35ee19, type: 3}
--- !u!23 &921103542854011534
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9019769532646444906}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 337f8fd204ad6184485dbbd7d0e3d08f, 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: 5aa87785e1c41ae4ab86448549bc5503
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,81 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &5312741001786462339
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4823765763709127225}
- component: {fileID: 8457389508405347740}
- component: {fileID: 5961175717370474838}
m_Layer: 0
m_Name: SM_Env_Skydome_01
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4823765763709127225
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5312741001786462339}
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &8457389508405347740
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5312741001786462339}
m_Mesh: {fileID: 4556534892368862732, guid: e05867e933dc6ca45a89c6daf5512752, type: 3}
--- !u!23 &5961175717370474838
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5312741001786462339}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 11bb87b4a9b098e49b0dd46a67b38578, 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
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ec546d033fbe13f42a0a7efb164718a7
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,85 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &5358220775051822842
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4690474597158837312}
- component: {fileID: 8554642872466035685}
- component: {fileID: 5862777521056687919}
m_Layer: 0
m_Name: SM_Env_Water_Plane_01
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4690474597158837312
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5358220775051822842}
serializedVersion: 2
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &8554642872466035685
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5358220775051822842}
m_Mesh: {fileID: 5025501189545170447, guid: c66960d310916cf4bb4246bbc76740bf, type: 3}
--- !u!23 &5862777521056687919
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5358220775051822842}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: cdb077a74adc2364fba71e0893240ca7, 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: 236cce36376db1240bd5e68d040f6f02
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,48 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &5668847715783660810
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3566174592591070264}
- component: {fileID: 6234840579323247654}
m_Layer: 0
m_Name: WeatherControl
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3566174592591070264
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5668847715783660810}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &6234840579323247654
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5668847715783660810}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4b71dd5fcc6358f439205acf154ba17d, type: 3}
m_Name:
m_EditorClassIdentifier:
windIntensity: 1
weatherIntensity: 0
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b26a4b89fd812e54fbc5e588d361ccf7
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5b5f3844f16580d4ebd075db2643d68f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 343ffb6434c0ee94eb3069ff0a958046
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,252 @@
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.UIElements;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.UIElements;
namespace Synty.PolygonVikings2.Scripts.Editor
{
[InitializeOnLoad]
public class ReplaceShaders : EditorWindow
{
private StyleSheet _editorStyle;
private Shader _oldShader = null;
private Shader _newShader = null;
private Dictionary<string, string> _parameterMatchList = new Dictionary<string, string>();
private List<string> _oldShaderProperties = new List<string>();
private List<string> _newShaderProperties = new List<string>();
private void Awake()
{
InitializeEditorWindow();
}
private void InitializeEditorWindow()
{
_editorStyle = Resources.Load<StyleSheet>("Styles/EditorStyles");
}
[MenuItem("Synty/Replace Shader")]
public static void ShowWindow() {
// Create the window instance
ReplaceShaders window = GetWindow<ReplaceShaders>("Synty Replace Shaders");
}
private void DoReplaceShader()
{
string[] assets = Selection.assetGUIDs;
foreach (string guid in assets)
{
string assetPath = AssetDatabase.GUIDToAssetPath(guid);
Material loadedMaterial = AssetDatabase.LoadAssetAtPath<Material>(assetPath);
if (loadedMaterial != null)
{
Dictionary<string, object> storedProperties = new Dictionary<string, object>();
if (loadedMaterial.shader == _oldShader)
{
for (int i = 0; i < loadedMaterial.shader.GetPropertyCount(); i++)
{
switch (loadedMaterial.shader.GetPropertyType(i))
{
case ShaderPropertyType.Color:
storedProperties.Add(loadedMaterial.shader.GetPropertyName(i), loadedMaterial.GetColor(loadedMaterial.shader.GetPropertyName(i)));
break;
case ShaderPropertyType.Vector:
storedProperties.Add(loadedMaterial.shader.GetPropertyName(i), loadedMaterial.GetVector(loadedMaterial.shader.GetPropertyName(i)));
break;
case ShaderPropertyType.Float:
storedProperties.Add(loadedMaterial.shader.GetPropertyName(i), loadedMaterial.GetFloat(loadedMaterial.shader.GetPropertyName(i)));
break;
case ShaderPropertyType.Range:
storedProperties.Add(loadedMaterial.shader.GetPropertyName(i), loadedMaterial.GetFloat(loadedMaterial.shader.GetPropertyName(i)));
break;
case ShaderPropertyType.Texture:
storedProperties.Add(loadedMaterial.shader.GetPropertyName(i), loadedMaterial.GetTexture(loadedMaterial.shader.GetPropertyName(i)));
break;
case ShaderPropertyType.Int:
storedProperties.Add(loadedMaterial.shader.GetPropertyName(i), loadedMaterial.GetInt(loadedMaterial.shader.GetPropertyName(i)));
break;
}
}
loadedMaterial.shader = _newShader;
foreach (var property in storedProperties)
{
// Don't map any properties that haven't been allocated matching sets
if (_parameterMatchList[property.Key] == "Don't Map")
{
continue;
}
// Map all defined properties
if (property.Value is Color)
{
loadedMaterial.SetColor(_parameterMatchList[property.Key], (Color)property.Value);
}
else if (property.Value is Vector4)
{
loadedMaterial.SetVector(_parameterMatchList[property.Key], (Vector4)property.Value);
}
else if (property.Value is Single)
{
loadedMaterial.SetFloat(_parameterMatchList[property.Key], (float)property.Value);
}
else if (property.Value is Texture2D)
{
loadedMaterial.SetTexture(_parameterMatchList[property.Key], (Texture2D)property.Value);
}
else if (property.Value is int)
{
loadedMaterial.SetInt(_parameterMatchList[property.Key], (int)property.Value);
}
}
}
}
}
}
public void CreateGUI()
{
FetchShaderOptions();
VisualElement root = rootVisualElement;
// Replace shader button click
Action onButtonClick = DoReplaceShader;
var replaceButton = new Button() { text = "Replace Shader on Selected Materials", style = { height = 50}};
root.Add(replaceButton);
replaceButton.RegisterCallback<MouseUpEvent>((evt) => onButtonClick());
root.Add(new Label("Replace Shaders:"));
Action onShaderChange = () =>
{
root.Query<ObjectField>().ForEach((shaderSelector) =>
{
if (shaderSelector.name == "oldShaderSelector")
{
_oldShader = (Shader)shaderSelector.value;
}
else if (shaderSelector.name == "newShaderSelector")
{
_newShader = (Shader)shaderSelector.value;
}
});
if (_oldShader != null && _newShader != null)
{
FetchShaderOptions();
UpdateDropdowns(root);
}
else
{
RemoveDropdowns(root);
}
};
var oldShader = new ObjectField();
oldShader.objectType = typeof(Shader);
oldShader.label = "Old Shader";
oldShader.name = "oldShaderSelector";
root.Add(oldShader);
oldShader.RegisterValueChangedCallback((evt) => onShaderChange());
var newShader = new ObjectField();
newShader.objectType = typeof(Shader);
newShader.label = "New Shader";
newShader.name = "newShaderSelector";
root.Add(newShader);
newShader.RegisterValueChangedCallback((evt) => onShaderChange());
root.Add(new Label("Old => New Property Map:"));
if (_oldShader != null)
{
oldShader.value = _oldShader;
}
if (_newShader != null)
{
newShader.value = _newShader;
}
if (_oldShader != null && _newShader != null)
{
UpdateDropdowns(root);
}
}
private void FetchShaderOptions()
{
if (_oldShader != null)
{
_oldShaderProperties.Clear();
for (int i = 0; i < _oldShader.GetPropertyCount(); i++)
{
// Add to the list if it's not a built-in shader property
if (!_oldShader.GetPropertyName(i).Contains("_BUILTIN_", StringComparison.OrdinalIgnoreCase))
{
_oldShaderProperties.Add(_oldShader.GetPropertyName(i));
}
}
}
if (_newShader != null)
{
_newShaderProperties.Clear();
_newShaderProperties.Add("Don't Map");
for (int i = 0; i < _newShader.GetPropertyCount(); i++)
{
// Add to the list if it's not a built-in shader property
if (!_newShader.GetPropertyName(i).Contains("_BUILTIN_", StringComparison.OrdinalIgnoreCase))
{
_newShaderProperties.Add(_newShader.GetPropertyName(i));
}
}
}
}
private void RemoveDropdowns(VisualElement root)
{
root.Query<DropdownField>().ForEach((dropdown) =>
{
root.Remove(dropdown);
});
}
private void UpdateDropdowns(VisualElement root)
{
Action onPropertyChange = () =>
{
_parameterMatchList.Clear();
root.Query<DropdownField>().ForEach((dropdown) =>
{
_parameterMatchList.Add(dropdown.name, dropdown.value);
});
};
// Unregister the change checks before destroying the dropdowns
root.Query<DropdownField>().ForEach((dropdown) =>
{
dropdown.UnregisterValueChangedCallback((evt) => onPropertyChange());
});
// Destory all dropdowns
RemoveDropdowns(root);
// Recreate the dropdowns
DropdownField dropdown;
foreach (string property in _oldShaderProperties)
{
var index = Math.Max(_newShaderProperties.FindIndex(x => x.Equals(property)), 0);
dropdown = new DropdownField(property, _newShaderProperties, index);
dropdown.name = property;
root.Add(dropdown);
dropdown.RegisterValueChangedCallback((evt) => onPropertyChange());
}
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 09881555a488ed54d8c60dcd1900e739
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,42 @@
using System;
using System.Collections;
using System.Collections.Generic;
//using UnityEditor.Rendering.LookDev;
using UnityEngine;
public class WeatherControl : MonoBehaviour
{
[Range(0,1)]
public float windIntensity;
[Range(0,1)]
public float weatherIntensity;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
UpdateShaderGlobals();
}
private void OnDrawGizmos()
{
Gizmos.color = Color.red;
Gizmos.DrawIcon(this.transform.position,"../Synty/PNB_Core/Textures/SyntyLogo.png", true);
Gizmos.DrawLine(this.transform.position, this.transform.position + this.transform.forward * 4f);
Gizmos.DrawLine(this.transform.position + this.transform.forward * 4f, this.transform.position + this.transform.forward * 3f + this.transform.right * 0.5f);
Gizmos.DrawLine(this.transform.position + this.transform.forward * 4f, this.transform.position + this.transform.forward * 3f - this.transform.right * 0.5f);
UpdateShaderGlobals();
}
private void UpdateShaderGlobals()
{
Shader.SetGlobalVector("_WindDirection", this.transform.forward);
Shader.SetGlobalFloat("_GaleStrength", weatherIntensity);
Shader.SetGlobalFloat("_WindIntensity", windIntensity);
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4b71dd5fcc6358f439205acf154ba17d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1f15571e9cfd4b5438dcd09263ac3a32
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 9acd276df194e8545abc11efbafe668d
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 4a6c8c23090929241b2a55476a46a9b1
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 9b98a126c8d4d7a4baeb81b16e4f7b97
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fb4ba993f93e1a946a9edefaa6c1807a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2c8a9d9dfe36a0b409084d844fb9e9ea
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,747 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;
public class SyntyFoliage_customGUI : ShaderGUI
{
bool scriptExists = false;
#region TabProperties
private int selectedTab = 0;
private string[] tabNames = { "Leaves", "Trunk", "Frosting", "Emission", "Wind" };
private bool showSurfaceType = false;
private bool checkedRenderPipe = false;
private int renderPipeType = 0;
void CheckRenderPipeline()
{
var pipelineAsset = GraphicsSettings.defaultRenderPipeline;
if (pipelineAsset == null)
{
Debug.Log("Using Built-In Render Pipeline (BIRP)");
renderPipeType = 0;
}
else if (pipelineAsset.GetType().Name.Contains("UniversalRenderPipelineAsset"))
{
Debug.Log("Using Universal Render Pipeline (URP)");
renderPipeType = 1;
}
else if (pipelineAsset.GetType().Name.Contains("HDRenderPipelineAsset"))
{
Debug.Log("Using High Definition Render Pipeline (HDRP)");
renderPipeType = 1;
}
else
{
Debug.Log("Using custom render pipeline, falling back to BIRP settings");
renderPipeType = 0;
}
checkedRenderPipe = true;
}
//Build Surface Type options BIRP
public void SurfaceOptionsBIRP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_BUILTIN_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_BUILTIN_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetOverrideTag("RenderType", "Transparent");
material.renderQueue = (int)RenderQueue.Transparent;
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_BUILTIN_ZWrite", 0);
material.EnableKeyword("_ALPHABLEND_ON");
material.EnableKeyword("_ZWRITE_ON");
material.EnableKeyword("_BUILTIN_SURFACE_TYPE_TRANSPARENT");
}
else // Opaque
{
material.SetOverrideTag("RenderType", "Opaque");
material.renderQueue = (int)RenderQueue.Geometry;
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_BUILTIN_ZWrite", 1);
material.DisableKeyword("_ALPHABLEND_ON");
material.DisableKeyword("_ZWRITE_ON");
material.DisableKeyword("_BUILTIN_SURFACE_TYPE_TRANSPARENT");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_BUILTIN_CullMode");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_BUILTIN_CullMode", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_BUILTIN_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_BUILTIN_AlphaClip", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_BUILTIN_ALPHATEST_ON");
material.EnableKeyword("_BUILTIN_AlphaClip");
}
else
{
material.DisableKeyword("_BUILTIN_ALPHATEST_ON");
material.DisableKeyword("_BUILTIN_AlphaClip");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//Build Surface Type options URP
public void SurfaceOptionsURP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
}
else // Opaque
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_ZWrite", 1);
material.DisableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.DisableKeyword("_ZWRITE_ON");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_Cull");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_Cull", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_AlphaClip", alphaClip ? 1 : 0);
material.SetFloat("_AlphaToMask", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
material.EnableKeyword("_ALPHABLEND_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
material.DisableKeyword("_ALPHABLEND_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//used to setup the tabs and what settings to call
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
#region Create Warning button
foreach (var obj in Resources.FindObjectsOfTypeAll<WeatherControl>())
{
if (obj != null)
{
scriptExists = true;
break;
}
}
if (!scriptExists)
{
GUILayout.Label("WARNING", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
GUI.contentColor = Color.yellow;
GUILayout.Label("Global WeatherController missing in scene", EditorStyles.boldLabel);
GUI.contentColor = Color.white;
if (GUILayout.Button("Add WeatherController"))
{
GameObject weatherController = new GameObject("WeatherController");
weatherController.AddComponent<WeatherControl>();
}
EditorGUILayout.EndVertical();
}
#endregion
#region Surface Type Properties
//Set Default RenderType's
if (!checkedRenderPipe)
{
Material material = materialEditor.target as Material;
CheckRenderPipeline();
//Set BIRP
if (renderPipeType == 0)
{
//Make opaque
material.SetFloat("_BUILTIN_Surface", 0);
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_BUILTIN_ZWrite", 1);
material.DisableKeyword("_ZWRITE_ON");
material.DisableKeyword("_BUILTIN_SURFACE_TYPE_TRANSPARENT");
//alpha clip on
material.SetFloat("_BUILTIN_AlphaClip", 1);
material.EnableKeyword("_BUILTIN_ALPHATEST_ON");
material.EnableKeyword("_BUILTIN_AlphaClip");
//Render both faces
material.SetFloat("_BUILTIN_CullMode", 0);
}
//Set URP
else if (renderPipeType == 1)
{
//Make opaque
material.SetFloat("_Surface", 0);
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_ZWrite", 1);
material.DisableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.DisableKeyword("_ZWRITE_ON");
//alpha clip on
material.SetFloat("_AlphaClip", 1);
material.SetFloat("_AlphaToMask", 1);
material.EnableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_Cull", 0);
}
}
//Manual Options
showSurfaceType = EditorGUILayout.Foldout(showSurfaceType, "Material Override properties");
if (showSurfaceType)
{
//Set BIRP
if (renderPipeType == 0)
{
SurfaceOptionsBIRP(materialEditor);
}
//Set URP
else if (renderPipeType == 1)
{
SurfaceOptionsURP(materialEditor);
}
}
#endregion
selectedTab = GUILayout.Toolbar(selectedTab, tabNames);
GUILayout.Space(10);
switch (selectedTab)
{
case 0:
DrawLeafSettings(materialEditor, properties);
break;
case 1:
DrawTrunkSettings(materialEditor, properties);
break;
case 2:
DrawFrostingSettings(materialEditor, properties);
break;
case 3:
DrawEmissionSettings(materialEditor, properties);
break;
case 4:
DrawWindSettings(materialEditor, properties);
break;
}
}
#endregion
#region Gui Backdrops
private static GUIStyle makeBackdrop()
{
GUIStyle backdropStyle = new GUIStyle(GUI.skin.box);
backdropStyle.padding = new RectOffset(10, 10, 10, 10);
backdropStyle.margin = new RectOffset(5, 5, 5, 5);
return backdropStyle;
}
#endregion
#region Vector Custom GUI Properties
//dictionary that contains the properties to override GUI for Vector2 + Vector3 elements
Dictionary<string, string> vecGuiProperties = new Dictionary<string, string>
{
{ "_Leaf_Tiling", "Vector2" },
{ "_Leaf_Offset", "Vector2" },
{ "_Leaf_Normal_Tiling", "Vector2" },
{ "_Leaf_Normal_Offset", "Vector2" },
{ "_Trunk_Tiling", "Vector2" },
{ "_Trunk_Offset", "Vector2" },
{ "_Trunk_Normal_Tiling", "Vector2" },
{ "_Trunk_Normal_Offset", "Vector2" },
{ "_Emissive_Mask_Tiling", "Vector2" },
{ "_Emissive_Mask_Offset", "Vector2" },
{ "_Emissive_Mask_2_Tiling", "Vector2" },
{ "_Emissive_Mask_2_Offset", "Vector2" }
};
#endregion
//Tab 1
#region Leaf Properties
private void DrawLeafSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
#region Leaf & Trunk Color Noise
GUILayout.Label("Leaf & Trunk Color Noise", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
string[] generalProperties =
{
"_Alpha_Clip_Threshold",
"_Use_Color_Noise",
"_Color_Noise_Small_Freq",
"_Color_Noise_Large_Freq"
};
setProperties(materialEditor, properties, generalProperties, vecGuiProperties);
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Base Leaf
GUILayout.Label("Leaf Base", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
string[] leafProperties =
{
"_Leaf_Texture",
"_Leaf_Tiling",
"_Leaf_Offset",
"_Leaf_Metallic",
"_Leaf_Smoothness",
"_Leaf_Base_Color",
"_Leaf_Noise_Color",
"_Leaf_Noise_Large_Color",
"_Leaf_Flat_Color"
};
setProperties(materialEditor, properties, leafProperties, vecGuiProperties);
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Leaf Normals
GUILayout.Label("Leaf Normals", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableLeafNormals = FindProperty("_Enable_Leaf_Normal", properties);
materialEditor.ShaderProperty(enableLeafNormals, "Enable Leaf Normals");
if (enableLeafNormals.floatValue == 1)
{
string[] leafNormals =
{
"_Leaf_Normal",
"_Leaf_Normal_Tiling",
"_Leaf_Normal_Offset",
"_Leaf_Normal_Strength"
};
setProperties(materialEditor, properties, leafNormals, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Leaf AO
GUILayout.Label("Leaf AO", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
string[] leafAO =
{
"_Leaf_Ambient_Occlusion",
"_Leaf_Ambient_Occlusion_Intensity"
};
setProperties(materialEditor, properties, leafAO, vecGuiProperties);
EditorGUILayout.EndVertical();
#endregion
}
#endregion
//Tab 2
#region Trunk Properties
private void DrawTrunkSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
#region Leaf & Trunk Color Noise
GUILayout.Label("Leaf & Trunk Color Noise", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
string[] generalProperties =
{
"_Use_Color_Noise",
"_Color_Noise_Small_Freq",
"_Color_Noise_Large_Freq"
};
setProperties(materialEditor, properties, generalProperties, vecGuiProperties);
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
#endregion
#region Trunk Base
GUILayout.Label("Trunk Base", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
string[] trunkBase =
{
"_Trunk_Texture",
"_Trunk_Tiling",
"_Trunk_Offset",
"_Trunk_Metallic",
"_Trunk_Smoothness",
"_Trunk_Base_Color",
"_Trunk_Noise_Color",
"_Trunk_Flat_Color_Switch"
};
setProperties(materialEditor, properties, trunkBase, vecGuiProperties);
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Trunk Normals
GUILayout.Label("Trunk Normals", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableTrunkNormals = FindProperty("_Enable_Trunk_Normal", properties);
materialEditor.ShaderProperty(enableTrunkNormals, "Enable Trunk Normals");
if (enableTrunkNormals.floatValue == 1)
{
string[] trunkNormals =
{
"_Trunk_Normal",
"_Trunk_Normal_Tiling",
"_Trunk_Normal_Offset",
"_Trunk_Normal_Strength"
};
setProperties(materialEditor, properties, trunkNormals, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Trunk Emission
GUILayout.Label("Trunk Emission", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
string[] trunkEmmisive =
{
"_Trunk_Emissive_Mask",
"_Trunk_Emissive_Color"
};
setProperties(materialEditor, properties, trunkEmmisive, vecGuiProperties);
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Trunk AO
GUILayout.Label("Trunk AO", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
string[] trunkAO =
{
"_Trunk_Ambient_Occlusion",
"_Trunk_Ambient_Occlusion_Intensity"
};
setProperties(materialEditor, properties, trunkAO, vecGuiProperties);
EditorGUILayout.EndVertical();
#endregion
}
#endregion
//Tab 3
#region Frosting
private void DrawFrostingSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableFrosting = FindProperty("_Enable_Frosting", properties);
materialEditor.ShaderProperty(enableFrosting, "Enable Frosting");
if (enableFrosting.floatValue == 1)
{
string[] frosting =
{
"_Frosting_Color",
"_Frosting_Falloff",
"_Frosting_Height",
"_Frosting_Use_World_Normals"
};
setProperties(materialEditor, properties, frosting, vecGuiProperties);
}
EditorGUILayout.EndVertical();
}
#endregion
//Tab 4
#region Emission Properties
private void DrawEmissionSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
#region Emission
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableEmission = FindProperty("_Enable_Emission", properties);
materialEditor.ShaderProperty(enableEmission, "Enable Emission");
if (enableEmission.floatValue == 1)
{
string[] emission =
{
"_Emissive_Color",
"_Emissive_2_Color",
"_Emissive_Mask",
"_Emissive_Mask_Tiling",
"_Emissive_Mask_Offset",
"_Emissive_2_Mask",
"_Emissive_Mask_2_Tiling",
"_Emissive_Mask_2_Offset",
"_Emissive_Amount"
};
setProperties(materialEditor, properties, emission, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Pulse
if (enableEmission.floatValue == 1)
{
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enablePulse = FindProperty("_Enable_Pulse", properties);
materialEditor.ShaderProperty(enablePulse, "Enable Pulse");
if (enablePulse.floatValue == 1)
{
string[] emissionPulse =
{
"_Emissive_Pulse_Map",
"_Pulse_Tiling",
"_Pulse_Speed"
};
setProperties(materialEditor, properties, emissionPulse, vecGuiProperties);
}
EditorGUILayout.EndVertical();
}
#endregion
}
#endregion
//Tab 5
#region Wind
private void DrawWindSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
string[] enableVertexCol =
{
"_Use_Vertex_Color_Wind",
};
EditorGUILayout.BeginVertical(backdropStyle);
setProperties(materialEditor, properties, enableVertexCol, vecGuiProperties);
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty globalWeatherController = FindProperty("_Use_Global_Weather_Controller", properties);
materialEditor.ShaderProperty(globalWeatherController, "Use Global Weather Controller");
//Set if statement here
if (scriptExists)
{
GUILayout.Label("WeatherController found in scene", EditorStyles.boldLabel);
}
else
{
GUI.contentColor = Color.yellow;
GUILayout.Label("Cannot activate until WeatherController in scene", EditorStyles.boldLabel);
GUI.contentColor = Color.white;
globalWeatherController.floatValue = 0f;
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
#region Breeze
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableBreeze = FindProperty("_Enable_Breeze", properties);
materialEditor.ShaderProperty(enableBreeze, "Enable Breeze");
if (enableBreeze.floatValue == 1)
{
string[] enableBreezeProp =
{
"_Breeze_Strength",
};
setProperties(materialEditor, properties, enableBreezeProp, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Light Wind
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableLightWind = FindProperty("_Enable_Light_Wind", properties);
materialEditor.ShaderProperty(enableLightWind, "Enable Light Wind");
if (enableLightWind.floatValue == 1)
{
string[] enableLightWindProp =
{
"_Light_Wind_Strength",
"_Light_Wind_Y_Strength",
"_Light_Wind_Y_Offset",
"_Light_Wind_Use_Leaf_Fade"
};
setProperties(materialEditor, properties, enableLightWindProp, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Strong Wind
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableStrongWind = FindProperty("_Enable_Strong_Wind", properties);
materialEditor.ShaderProperty(enableStrongWind, "Enable Strong Wind");
if (enableStrongWind.floatValue == 1)
{
string[] enableStrongWindProp =
{
"_Strong_Wind_Strength",
"_Strong_Wind_Frequency"
};
setProperties(materialEditor, properties, enableStrongWindProp, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Wind Twist
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableWindTwist = FindProperty("_Enable_Wind_Twist", properties);
materialEditor.ShaderProperty(enableWindTwist, "Enable Wind Twist");
if (enableWindTwist.floatValue == 1)
{
string[] enableWindTwistProp =
{
"_Wind_Twist_Strength",
"_Gale_Bend"
};
setProperties(materialEditor, properties, enableWindTwistProp, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
}
#endregion
// Build Properties
#region Build Properties
//Gathers list of properties to sort and display in inspector
private static void setProperties(MaterialEditor materialEditor, MaterialProperty[] properties, string[] shaderProperties, Dictionary<string, string> vecGuiProperties)
{
foreach (string property in shaderProperties)
{
MaterialProperty propertyReference = FindProperty(property, properties);
if (vecGuiProperties.ContainsKey(property))
{
string type = vecGuiProperties[property];
if (type == "Vector2")
{
Vector2 vec2Value = new Vector2(propertyReference.vectorValue.x, propertyReference.vectorValue.y);
vec2Value = EditorGUILayout.Vector2Field(propertyReference.displayName, vec2Value);
propertyReference.vectorValue = new Vector4(vec2Value.x, vec2Value.y, 0, 0);
}
else if (type == "Vector3")
{
Vector3 vec3Value = new Vector3(propertyReference.vectorValue.x, propertyReference.vectorValue.y, propertyReference.vectorValue.z);
vec3Value = EditorGUILayout.Vector3Field(propertyReference.displayName, vec3Value);
propertyReference.vectorValue = new Vector4(vec3Value.x, vec3Value.y, vec3Value.z, 0);
}
}
else
{
materialEditor.ShaderProperty(propertyReference, propertyReference.displayName);
}
}
}
#endregion
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d6622224d38129748bb16b565693f72d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,494 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;
public class SyntyGlacier_customGUI : ShaderGUI
{
#region TabProperties
private int selectedTab = 0;
private string[] tabNames = { "Base", "Triplanar", "Refraction"};
/*
private bool showSurfaceType = false;
private bool checkedRenderPipe = false;
private int renderPipeType = 0;*/
/* void CheckRenderPipeline()
{
var pipelineAsset = GraphicsSettings.renderPipelineAsset;
if (pipelineAsset == null)
{
Debug.Log("Using Built-In Render Pipeline (BIRP)");
renderPipeType = 0;
}
else if (pipelineAsset.GetType().Name.Contains("UniversalRenderPipelineAsset"))
{
Debug.Log("Using Universal Render Pipeline (URP)");
renderPipeType = 1;
}
else if (pipelineAsset.GetType().Name.Contains("HDRenderPipelineAsset"))
{
Debug.Log("Using High Definition Render Pipeline (HDRP)");
renderPipeType = 1;
}
else
{
Debug.Log("Using custom render pipeline, falling back to BIRP settings");
renderPipeType = 0;
}
checkedRenderPipe = true;
}*/
//Build Surface Type options URP
/* public void SurfaceOptionsBIRP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_BUILTIN_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_BUILTIN_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_BUILTIN_ZWrite", 0);
material.EnableKeyword("_ALPHABLEND_ON");
material.EnableKeyword("_ZWRITE_ON");
}
else // Opaque
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_BUILTIN_ZWrite", 1);
material.DisableKeyword("_ALPHABLEND_ON");
material.DisableKeyword("_ZWRITE_ON");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_BUILTIN_Cull");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_BUILTIN_Cull", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_BUILTIN_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_BUILTIN_AlphaClip", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//Build Surface Type options URP
public void SurfaceOptionsURP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
}
else // Opaque
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_ZWrite", 1);
material.DisableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.DisableKeyword("_ZWRITE_ON");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_Cull");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_Cull", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_AlphaClip", alphaClip ? 1 : 0);
material.SetFloat("_AlphaToMask", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
material.EnableKeyword("_ALPHABLEND_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
material.DisableKeyword("_ALPHABLEND_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}*/
//used to setup the tabs and what settings to call
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
{
/* #region Surface Type Properties
//Set Default RenderType's
if (!checkedRenderPipe)
{
Material material = materialEditor.target as Material;
CheckRenderPipeline();
//Set BIRP
if (renderPipeType == 0)
{
//Make transparent
material.SetFloat("_BUILTIN_Surface", 1);
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_BUILTIN_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
material.EnableKeyword("_ALPHABLEND_ON");
//alpha clip off
material.SetFloat("_BUILTIN_AlphaClip", 0);
material.DisableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_BUILTIN_CullMode", 2);
}
//Set URP
else if (renderPipeType == 1)
{
//Make transparent
material.SetFloat("_Surface", 1);
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
material.EnableKeyword("_ALPHABLEND_ON");
//alpha clip off
material.SetFloat("_AlphaClip", 0);
material.SetFloat("_AlphaToMask", 0);
material.DisableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_Cull", 2);
}
}
//Manual Options
showSurfaceType = EditorGUILayout.Foldout(showSurfaceType, "Material Override properties");
if (showSurfaceType)
{
//Set BIRP
if (renderPipeType == 0)
{
SurfaceOptionsBIRP(materialEditor);
}
//Set URP
else if (renderPipeType == 1)
{
SurfaceOptionsURP(materialEditor);
}
}
#endregion*/
selectedTab = GUILayout.Toolbar(selectedTab, tabNames);
GUILayout.Space(10);
switch (selectedTab)
{
case 0:
DrawBaseSettings(materialEditor, properties);
break;
case 1:
DrawTriplanarSettings(materialEditor, properties);
break;
case 2:
DrawRefractionSettings(materialEditor, properties);
break;
}
}
#endregion
#region Vector Custom GUI Properties
//dictionary that contains the properties to override GUI for Vector2 + Vector3 elements
Dictionary<string, string> vecGuiProperties = new Dictionary<string, string>
{
{ "_Normal_Offset", "Vector2" },
};
#endregion
#region Gui Backdrops
private static GUIStyle makeBackdrop()
{
GUIStyle backdropStyle = new GUIStyle(GUI.skin.box);
backdropStyle.padding = new RectOffset(10, 10, 10, 10);
backdropStyle.margin = new RectOffset(5, 5, 5, 5);
return backdropStyle;
}
#endregion
//Tab 1
#region Base Color
private void DrawBaseSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
#region Base properties
EditorGUILayout.BeginVertical(backdropStyle);
GUILayout.Label("Base Properties", EditorStyles.boldLabel);
// Add properties here
string[] shaderProperties =
{
"_Base_Color",
"_Metallic",
"_Smoothness",
"_Opacity"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Fresnel
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableFresnel = FindProperty("_Enable_Side_Fresnel", properties);
materialEditor.ShaderProperty(enableFresnel, "Enable Fresnel");
if (enableFresnel.floatValue == 1)
{
string[] globalFresnelProperties =
{
"_Fresnel_Color",
"_Fresnel_Border",
"_Fresnel_Power"
};
setProperties(materialEditor, properties, globalFresnelProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Depth
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableDepth = FindProperty("_Enable_Depth", properties);
materialEditor.ShaderProperty(enableDepth, "Enable Depth");
if (enableDepth.floatValue == 1)
{
string[] globalDepthProperties =
{
"_Depth_Power_Multiplier",
"_Deep_Color",
"_Deep_Power",
"_Shallow_Color",
"_Shallow_Power"
};
setProperties(materialEditor, properties, globalDepthProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
}
#endregion
//Tab 2
#region Triplanar Settings
private void DrawTriplanarSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
#region Triplanar
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableTriplanar = FindProperty("_Enable_Triplanar", properties);
materialEditor.ShaderProperty(enableTriplanar, "Enable Triplanar");
if (enableTriplanar.floatValue == 1)
{
string[] globalTriplanarProperties =
{
"_Base_Tiling",
"_Base_Normal_Intensity",
"_Base_Albedo",
"_Base_Color_Multiplier",
"_Base_Normal",
"_Base_Specular_Power",
"_Base_Metallic"
};
setProperties(materialEditor, properties, globalTriplanarProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Top triplanar
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableTopTriplanar = FindProperty("_Enable_Top_Projection", properties);
materialEditor.ShaderProperty(enableTopTriplanar, "Enable Top Triplanar");
if (enableTopTriplanar.floatValue == 1)
{
string[] globalTopTriplanarProperties =
{
"_Top_Tiling",
"_Top_Normal_Intensity",
"_Spread",
"_Fade_Amount",
"_Top_Albedo",
"_Top_Color_Multiplier",
"_Top_Normal",
"_Top_Opacity",
"_Top_Specular_Power",
"_Top_Metallic"
};
setProperties(materialEditor, properties, globalTopTriplanarProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
}
#endregion
//Tab 3
#region Advanced Settings
private void DrawRefractionSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
#region Refraction
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableRefraction = FindProperty("_Enable_Refraction", properties);
materialEditor.ShaderProperty(enableRefraction, "Enable Refraction");
if (enableRefraction.floatValue == 1)
{
string[] globalRefractionProperties =
{
"_Refraction_Texture",
"_Refraction_Height",
"_Refraction_Color",
"_Refraction_Power",
"_Steps",
"_Amplitude",
"_Refraction_Tiling"
};
setProperties(materialEditor, properties, globalRefractionProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Depth Distortion
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableDistortion = FindProperty("_Inner_Distortion", properties);
materialEditor.ShaderProperty(enableDistortion, "Enable Distortion");
if (enableDistortion.floatValue == 1)
{
string[] globalDistortionProperties =
{
"_Noise_Tiling",
"_Inner_Distortion_Power"
};
setProperties(materialEditor, properties, globalDistortionProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
#endregion
}
#endregion
// Build Properties
#region Build Properties
//Gathers list of properties to sort and display in inspector
private static void setProperties(MaterialEditor materialEditor, MaterialProperty[] properties, string[] shaderProperties, Dictionary<string, string> vecGuiProperties)
{
foreach (string property in shaderProperties)
{
MaterialProperty propertyReference = FindProperty(property, properties);
if (vecGuiProperties.ContainsKey(property))
{
string type = vecGuiProperties[property];
if (type == "Vector2")
{
Vector2 vec2Value = new Vector2(propertyReference.vectorValue.x, propertyReference.vectorValue.y);
vec2Value = EditorGUILayout.Vector2Field(propertyReference.displayName, vec2Value);
propertyReference.vectorValue = new Vector4(vec2Value.x, vec2Value.y, 0, 0);
}
else if (type == "Vector3")
{
Vector3 vec3Value = new Vector3(propertyReference.vectorValue.x, propertyReference.vectorValue.y, propertyReference.vectorValue.z);
vec3Value = EditorGUILayout.Vector3Field(propertyReference.displayName, vec3Value);
propertyReference.vectorValue = new Vector4(vec3Value.x, vec3Value.y, vec3Value.z, 0);
}
}
else
{
materialEditor.ShaderProperty(propertyReference, propertyReference.displayName);
}
}
}
#endregion
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2f8a3e1b794877e48af79693f41b79d5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,368 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;
public class SyntyPannerOpaque_customGUI : ShaderGUI
{
#region Vector Custom GUI Properties
//dictionary that contains the properties to override GUI for Vector2 + Vector3 elements
Dictionary<string, string> vecGuiProperties = new Dictionary<string, string>
{
{ "_Tiling", "Vector2" },
{ "_Offset", "Vector2" }
};
#endregion
#region Gui Backdrops
private static GUIStyle makeBackdrop()
{
GUIStyle backdropStyle = new GUIStyle(GUI.skin.box);
backdropStyle.padding = new RectOffset(10, 10, 10, 10);
backdropStyle.margin = new RectOffset(5, 5, 5, 5);
return backdropStyle;
}
#endregion
#region TabProperties
private int selectedTab = 0;
private string[] tabNames = { "Base", "Advanced" };
private bool showSurfaceType = false;
private bool checkedRenderPipe = false;
private int renderPipeType = 0;
void CheckRenderPipeline()
{
var pipelineAsset = GraphicsSettings.defaultRenderPipeline;
if (pipelineAsset == null)
{
Debug.Log("Using Built-In Render Pipeline (BIRP)");
renderPipeType = 0;
}
else if (pipelineAsset.GetType().Name.Contains("UniversalRenderPipelineAsset"))
{
Debug.Log("Using Universal Render Pipeline (URP)");
renderPipeType = 1;
}
else if (pipelineAsset.GetType().Name.Contains("HDRenderPipelineAsset"))
{
Debug.Log("Using High Definition Render Pipeline (HDRP)");
renderPipeType = 1;
}
else
{
Debug.Log("Using custom render pipeline, falling back to BIRP settings");
renderPipeType = 0;
}
checkedRenderPipe = true;
}
//Build Surface Type options URP
public void SurfaceOptionsBIRP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_BUILTIN_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_BUILTIN_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_BUILTIN_ZWrite", 0);
material.EnableKeyword("_ALPHABLEND_ON");
material.EnableKeyword("_ZWRITE_ON");
}
else // Opaque
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_BUILTIN_ZWrite", 1);
material.DisableKeyword("_ALPHABLEND_ON");
material.DisableKeyword("_ZWRITE_ON");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_BUILTIN_Cull");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_BUILTIN_Cull", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_BUILTIN_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_BUILTIN_AlphaClip", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//Build Surface Type options URP
public void SurfaceOptionsURP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
}
else // Opaque
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_ZWrite", 1);
material.DisableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.DisableKeyword("_ZWRITE_ON");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_Cull");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_Cull", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_AlphaClip", alphaClip ? 1 : 0);
material.SetFloat("_AlphaToMask", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
material.EnableKeyword("_ALPHABLEND_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
material.DisableKeyword("_ALPHABLEND_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//used to setup the tabs and what settings to call
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
{
#region Surface Type Properties
//Set Default RenderType's
if (!checkedRenderPipe)
{
Material material = materialEditor.target as Material;
CheckRenderPipeline();
//Set BIRP
if (renderPipeType == 0)
{
//Make opaque
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_BUILTIN_ZWrite", 1);
material.DisableKeyword("_ZWRITE_ON");
//alpha clip on
material.SetFloat("_BUILTIN_AlphaClip", 1);
material.EnableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_BUILTIN_Cull", 0);
}
//Set URP
else if (renderPipeType == 1)
{
//Make opaque
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_ZWrite", 1);
material.DisableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.DisableKeyword("_ZWRITE_ON");
//alpha clip on
material.SetFloat("_AlphaClip", 1);
material.SetFloat("_AlphaToMask", 1);
material.EnableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_Cull", 0);
}
}
//Manual Options
showSurfaceType = EditorGUILayout.Foldout(showSurfaceType, "Material Override properties");
if (showSurfaceType)
{
//Set BIRP
if (renderPipeType == 0)
{
SurfaceOptionsBIRP(materialEditor);
}
//Set URP
else if (renderPipeType == 1)
{
SurfaceOptionsURP(materialEditor);
}
}
#endregion
selectedTab = GUILayout.Toolbar(selectedTab, tabNames);
GUILayout.Space(10);
switch (selectedTab)
{
case 0:
DrawBaseSettings(materialEditor, properties);
break;
case 1:
DrawAdvancedSettings(materialEditor, properties);
break;
}
}
#endregion
#region Base Color
private void DrawBaseSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
GUILayout.Label("Base Properties", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
string[] baseProperties =
{
"_Albedo_Map",
"_Albedo_Tint",
"_Normal_Map",
"_Normal_Intensity",
"_Emission_Map",
"_Emission_Tint",
"_Emission_Intensity",
"_Metallic",
"_Smoothness",
"_Tiling",
"_Offset"
};
setProperties(materialEditor, properties, baseProperties, vecGuiProperties);
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
GUILayout.Label("Scrolling", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
string[] scrollProperties =
{
"_Speed_X",
"_Speed_Y"
};
setProperties(materialEditor, properties, scrollProperties, vecGuiProperties);
EditorGUILayout.EndVertical();
}
#endregion
#region Advanced
private void DrawAdvancedSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableUVDistortion = FindProperty("_Enable_UV_Distortion", properties);
materialEditor.ShaderProperty(enableUVDistortion, "Enable UV Noise");
if (enableUVDistortion.floatValue == 1)
{
string[] globalUVNoiseProperties =
{
"_Use_Texture",
"_Distortion_Map",
"_Distortion_Size",
"_Distortion_Speed",
"_Distortion_Strength"
};
setProperties(materialEditor, properties, globalUVNoiseProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
}
#endregion
#region Build Properties
//Gathers list of properties to sort and display in inspector
private static void setProperties(MaterialEditor materialEditor, MaterialProperty[] properties, string[] shaderProperties, Dictionary<string, string> vecGuiProperties)
{
foreach (string property in shaderProperties)
{
MaterialProperty propertyReference = FindProperty(property, properties);
if (vecGuiProperties.ContainsKey(property))
{
string type = vecGuiProperties[property];
if (type == "Vector2")
{
Vector2 vec2Value = new Vector2(propertyReference.vectorValue.x, propertyReference.vectorValue.y);
vec2Value = EditorGUILayout.Vector2Field(propertyReference.displayName, vec2Value);
propertyReference.vectorValue = new Vector4(vec2Value.x, vec2Value.y, 0, 0);
}
else if (type == "Vector3")
{
Vector3 vec3Value = new Vector3(propertyReference.vectorValue.x, propertyReference.vectorValue.y, propertyReference.vectorValue.z);
vec3Value = EditorGUILayout.Vector3Field(propertyReference.displayName, vec3Value);
propertyReference.vectorValue = new Vector4(vec3Value.x, vec3Value.y, vec3Value.z, 0);
}
}
else
{
materialEditor.ShaderProperty(propertyReference, propertyReference.displayName);
}
}
}
#endregion
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: bb43379cac175074abf96ac2ba4fbba8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,396 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;
public class SyntyPannerTransparent_customGUI : ShaderGUI
{
#region Vector Custom GUI Properties
//dictionary that contains the properties to override GUI for Vector2 + Vector3 elements
Dictionary<string, string> vecGuiProperties = new Dictionary<string, string>
{
{ "_Tiling", "Vector2" },
{ "_Offset", "Vector2" }
};
#endregion
#region Gui Backdrops
private static GUIStyle makeBackdrop()
{
GUIStyle backdropStyle = new GUIStyle(GUI.skin.box);
backdropStyle.padding = new RectOffset(10, 10, 10, 10);
backdropStyle.margin = new RectOffset(5, 5, 5, 5);
return backdropStyle;
}
#endregion
#region TabProperties
private int selectedTab = 0;
private string[] tabNames = { "Base", "Advanced" };
private bool showSurfaceType = false;
private bool checkedRenderPipe = false;
private int renderPipeType = 0;
void CheckRenderPipeline()
{
var pipelineAsset = GraphicsSettings.defaultRenderPipeline;
if (pipelineAsset == null)
{
Debug.Log("Using Built-In Render Pipeline (BIRP)");
renderPipeType = 0;
}
else if (pipelineAsset.GetType().Name.Contains("UniversalRenderPipelineAsset"))
{
Debug.Log("Using Universal Render Pipeline (URP)");
renderPipeType = 1;
}
else if (pipelineAsset.GetType().Name.Contains("HDRenderPipelineAsset"))
{
Debug.Log("Using High Definition Render Pipeline (HDRP)");
renderPipeType = 1;
}
else
{
Debug.Log("Using custom render pipeline, falling back to BIRP settings");
renderPipeType = 0;
}
checkedRenderPipe = true;
}
//Build Surface Type options URP
public void SurfaceOptionsBIRP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_BUILTIN_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_BUILTIN_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_BUILTIN_ZWrite", 0);
material.EnableKeyword("_ALPHABLEND_ON");
material.EnableKeyword("_ZWRITE_ON");
}
else // Opaque
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_BUILTIN_ZWrite", 1);
material.DisableKeyword("_ALPHABLEND_ON");
material.DisableKeyword("_ZWRITE_ON");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_BUILTIN_Cull");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_BUILTIN_Cull", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_BUILTIN_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_BUILTIN_AlphaClip", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//Build Surface Type options URP
public void SurfaceOptionsURP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
}
else // Opaque
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_ZWrite", 1);
material.DisableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.DisableKeyword("_ZWRITE_ON");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_Cull");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_Cull", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_AlphaClip", alphaClip ? 1 : 0);
material.SetFloat("_AlphaToMask", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
material.EnableKeyword("_ALPHABLEND_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
material.DisableKeyword("_ALPHABLEND_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//used to setup the tabs and what settings to call
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
{
#region Surface Type Properties
//Set Default RenderType's
if (!checkedRenderPipe)
{
Material material = materialEditor.target as Material;
CheckRenderPipeline();
//Set BIRP
if (renderPipeType == 0)
{
//Make transparent
material.SetFloat("_BUILTIN_Surface", 1);
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_BUILTIN_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
material.EnableKeyword("_ALPHABLEND_ON");
//alpha clip off
material.SetFloat("_BUILTIN_AlphaClip", 0);
material.DisableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_BUILTIN_CullMode", 2);
}
//Set URP
else if (renderPipeType == 1)
{
//Make transparent
material.SetFloat("_Surface", 1);
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
material.EnableKeyword("_ALPHABLEND_ON");
//alpha clip off
material.SetFloat("_AlphaClip", 0);
material.SetFloat("_AlphaToMask", 0);
material.DisableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_Cull", 2);
}
}
//Manual Options
showSurfaceType = EditorGUILayout.Foldout(showSurfaceType, "Material Override properties");
if (showSurfaceType)
{
//Set BIRP
if (renderPipeType == 0)
{
SurfaceOptionsBIRP(materialEditor);
}
//Set URP
else if (renderPipeType == 1)
{
SurfaceOptionsURP(materialEditor);
}
}
#endregion
selectedTab = GUILayout.Toolbar(selectedTab, tabNames);
GUILayout.Space(10);
switch (selectedTab)
{
case 0:
DrawBaseSettings(materialEditor, properties);
break;
case 1:
DrawAdvancedSettings(materialEditor, properties);
break;
}
}
#endregion
#region Base Color
private void DrawBaseSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
GUILayout.Label("Base Properties", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
string[] baseProperties =
{
"_Albedo_Map",
"_Albedo_Tint",
"_Normal_Map",
"_Normal_Intensity",
"_Emission_Map",
"_Emission_Tint",
"_Emission_Intensity",
"_Opacity_Map",
"_Opacity_Base",
"_Opacity_Map_Multiplier",
"_Metallic",
"_Smoothness",
"_Tiling",
"_Offset"
};
setProperties(materialEditor, properties, baseProperties, vecGuiProperties);
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
GUILayout.Label("Scrolling", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
string[] scrollProperties =
{
"_Speed_X",
"_Speed_Y"
};
setProperties(materialEditor, properties, scrollProperties, vecGuiProperties);
EditorGUILayout.EndVertical();
}
#endregion
#region Advanced
private void DrawAdvancedSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableUVDistortion = FindProperty("_Enable_UV_Distortion", properties);
materialEditor.ShaderProperty(enableUVDistortion, "Enable UV Noise");
if (enableUVDistortion.floatValue == 1)
{
string[] globalUVNoiseProperties =
{
"_Use_Texture",
"_Distortion_Map",
"_Distortion_Size",
"_Distortion_Speed",
"_Distortion_Strength"
};
setProperties(materialEditor, properties, globalUVNoiseProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableEdgeSpeed = FindProperty("_Enable_Edge_Speed", properties);
materialEditor.ShaderProperty(enableEdgeSpeed, "Enable Edge Distortion");
if (enableEdgeSpeed.floatValue == 1)
{
string[] globalEdgeProperties =
{
"_Edge_Depth",
"_Edge_Strength",
"_Edge_Distortion_Intensity"
};
setProperties(materialEditor, properties, globalEdgeProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
}
#endregion
#region Build Properties
//Gathers list of properties to sort and display in inspector
private static void setProperties(MaterialEditor materialEditor, MaterialProperty[] properties, string[] shaderProperties, Dictionary<string, string> vecGuiProperties)
{
foreach (string property in shaderProperties)
{
MaterialProperty propertyReference = FindProperty(property, properties);
if (vecGuiProperties.ContainsKey(property))
{
string type = vecGuiProperties[property];
if (type == "Vector2")
{
Vector2 vec2Value = new Vector2(propertyReference.vectorValue.x, propertyReference.vectorValue.y);
vec2Value = EditorGUILayout.Vector2Field(propertyReference.displayName, vec2Value);
propertyReference.vectorValue = new Vector4(vec2Value.x, vec2Value.y, 0, 0);
}
else if (type == "Vector3")
{
Vector3 vec3Value = new Vector3(propertyReference.vectorValue.x, propertyReference.vectorValue.y, propertyReference.vectorValue.z);
vec3Value = EditorGUILayout.Vector3Field(propertyReference.displayName, vec3Value);
propertyReference.vectorValue = new Vector4(vec3Value.x, vec3Value.y, vec3Value.z, 0);
}
}
else
{
materialEditor.ShaderProperty(propertyReference, propertyReference.displayName);
}
}
}
#endregion
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 27d2f1849d7ae844e95bc1a13b32f6e6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,627 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;
public class SyntyWater_customGUI : ShaderGUI
{
#region TabProperties
private int selectedTab = 0;
private string[] tabNames = { "Base", "Shore Foam", "Global Foam", "Waves", "Advanced" };
private bool showSurfaceType = false;
private bool checkedRenderPipe = false;
private int renderPipeType = 0;
void CheckRenderPipeline()
{
var pipelineAsset = GraphicsSettings.defaultRenderPipeline;
if (pipelineAsset == null)
{
Debug.Log("Using Built-In Render Pipeline (BIRP)");
renderPipeType = 0;
}
else if (pipelineAsset.GetType().Name.Contains("UniversalRenderPipelineAsset"))
{
Debug.Log("Using Universal Render Pipeline (URP)");
renderPipeType = 1;
}
else if (pipelineAsset.GetType().Name.Contains("HDRenderPipelineAsset"))
{
Debug.Log("Using High Definition Render Pipeline (HDRP)");
renderPipeType = 1;
}
else
{
Debug.Log("Using custom render pipeline, falling back to BIRP settings");
renderPipeType = 0;
}
checkedRenderPipe = true;
}
//Build Surface Type options URP
public void SurfaceOptionsBIRP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_BUILTIN_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_BUILTIN_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_BUILTIN_ZWrite", 0);
material.EnableKeyword("_ALPHABLEND_ON");
material.EnableKeyword("_ZWRITE_ON");
material.EnableKeyword("_BUILTIN_SURFACE_TYPE_TRANSPARENT");
}
else // Opaque
{
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_BUILTIN_ZWrite", 1);
material.DisableKeyword("_ALPHABLEND_ON");
material.DisableKeyword("_ZWRITE_ON");
material.DisableKeyword("_BUILTIN_SURFACE_TYPE_TRANSPARENT");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_BUILTIN_CullMode");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_BUILTIN_CullMode", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_BUILTIN_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_BUILTIN_AlphaClip", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
}
}
//Build Surface Type options URP
public void SurfaceOptionsURP(MaterialEditor materialEditor)
{
GUIStyle backdropStyle = makeBackdrop();
Material material = materialEditor.target as Material;
if (material != null)
{
EditorGUILayout.LabelField("Surface Options", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
// Surface Type Dropdown
int surfaceType = (int)material.GetFloat("_Surface");
surfaceType = EditorGUILayout.Popup("Surface Type", surfaceType, new string[] { "Opaque", "Transparent" });
material.SetFloat("_Surface", surfaceType);
// Transparent
if (surfaceType == 1)
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
}
else // Opaque
{
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.One);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.Zero);
material.SetFloat("_ZWrite", 1);
material.DisableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.DisableKeyword("_ZWRITE_ON");
}
// Render Face Type
int renderFace = (int)material.GetFloat("_Cull");
renderFace = EditorGUILayout.Popup("Render Face", renderFace, new string[] { "Both", "Back", "Front" });
material.SetFloat("_Cull", renderFace);
// Alpha Clipping
bool alphaClip = material.GetFloat("_AlphaClip") == 1;
alphaClip = EditorGUILayout.Toggle("Alpha Clipping", alphaClip);
material.SetFloat("_AlphaClip", alphaClip ? 1 : 0);
material.SetFloat("_AlphaToMask", alphaClip ? 1 : 0);
if (alphaClip)
{
material.EnableKeyword("_ALPHATEST_ON");
material.EnableKeyword("_ALPHABLEND_ON");
}
else
{
material.DisableKeyword("_ALPHATEST_ON");
material.DisableKeyword("_ALPHABLEND_ON");
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
material.shader = Shader.Find(material.shader.name);
}
}
//used to setup the tabs and what settings to call
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
{
#region Surface Type Properties
//Set Default RenderType's
if (!checkedRenderPipe)
{
Material material = materialEditor.target as Material;
CheckRenderPipeline();
//Set BIRP
if (renderPipeType == 0)
{
//Make transparent
material.SetFloat("_BUILTIN_Surface", 1);
material.SetFloat("_BUILTIN_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_BUILTIN_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_BUILTIN_ZWrite", 0);
material.EnableKeyword("_BUILTIN_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
material.EnableKeyword("_ALPHABLEND_ON");
//alpha clip off
material.SetFloat("_BUILTIN_AlphaClip", 0);
material.DisableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_BUILTIN_CullMode", 2);
}
//Set URP
else if (renderPipeType == 1)
{
//Make transparent
material.SetFloat("_Surface", 1);
material.SetFloat("_SrcBlend", (float)UnityEngine.Rendering.BlendMode.SrcAlpha);
material.SetFloat("_DstBlend", (float)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
material.SetFloat("_ZWrite", 0);
material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
material.EnableKeyword("_ZWRITE_ON");
material.EnableKeyword("_ALPHABLEND_ON");
//alpha clip off
material.SetFloat("_AlphaClip", 0);
material.SetFloat("_AlphaToMask", 0);
material.DisableKeyword("_ALPHATEST_ON");
//Render both faces
material.SetFloat("_Cull", 2);
}
}
//Manual Options
showSurfaceType = EditorGUILayout.Foldout(showSurfaceType, "Material Override properties");
if (showSurfaceType)
{
//Set BIRP
if (renderPipeType == 0)
{
SurfaceOptionsBIRP(materialEditor);
}
//Set URP
else if (renderPipeType == 1)
{
SurfaceOptionsURP(materialEditor);
}
}
#endregion
selectedTab = GUILayout.Toolbar(selectedTab, tabNames);
GUILayout.Space(10);
switch (selectedTab)
{
case 0:
DrawBaseSettings(materialEditor, properties);
break;
case 1:
DrawShoreFoamSettings(materialEditor, properties);
break;
case 2:
DrawGlobalFoamSettings(materialEditor, properties);
break;
case 3:
DrawWaveSettings(materialEditor, properties);
break;
case 4:
DrawAdvancedSettings(materialEditor, properties);
break;
}
}
#endregion
#region Vector Custom GUI Properties
//dictionary that contains the properties to override GUI for Vector2 + Vector3 elements
Dictionary<string, string> vecGuiProperties = new Dictionary<string, string>
{
{ "_Normal_Offset", "Vector2" },
{ "_Scrolling_Texture_Direction", "Vector2" },
{ "_Scrolling_Texture_Tiling", "Vector2" },
{ "_Distortion_Direction", "Vector2" }
};
#endregion
#region Gui Backdrops
private static GUIStyle makeBackdrop()
{
GUIStyle backdropStyle = new GUIStyle(GUI.skin.box);
backdropStyle.padding = new RectOffset(10, 10, 10, 10);
backdropStyle.margin = new RectOffset(5, 5, 5, 5);
return backdropStyle;
}
#endregion
//Tab 1
#region Base Properties
bool showNormalSettings = true;
private void DrawBaseSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
EditorGUILayout.BeginVertical(backdropStyle);
#region Base Properties
GUILayout.Label("Base Properties", EditorStyles.boldLabel);
// Add properties here
string[] shaderProperties =
{
"_Smoothness",
"_Metallic",
"_Base_Opacity",
"_Shallows_Opacity",
"_Shallow_Color",
"_Deep_Color",
"_Very_Deep_Color",
"_Deep_Height",
"_Very_Deep_Height"
};
setProperties(materialEditor, properties, shaderProperties, vecGuiProperties);
EditorGUILayout.EndVertical();
#endregion
EditorGUILayout.Separator();
#region Normals
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableNormals = FindProperty("_Enable_Normals", properties);
materialEditor.ShaderProperty(enableNormals, "Enable Normals");
if (enableNormals.floatValue == 1)
{
showNormalSettings = EditorGUILayout.Foldout(showNormalSettings, "Normal Settings");
if (showNormalSettings)
{
string[] normalProperties =
{
"_Normal_Texture",
"_Normal_Offset",
"_Normal_Tiling",
"_Normal_Intensity",
"_Normal_Pan_Speed",
"_Normal_Noise_Tiling",
"_Normal_Noise_Intensity"
};
setProperties(materialEditor, properties, normalProperties, vecGuiProperties);
EditorGUILayout.Separator();
GUILayout.Label("Fade Distant Normals", EditorStyles.boldLabel);
string[] fresnelMasking =
{
"_Enable_Fresnel_Fade",
"_Fade_Distance",
"_Fade_Power"
};
setProperties(materialEditor, properties, fresnelMasking, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
#endregion
}
#endregion
//Tab 2
#region Shore Foam
bool showShoreWaveFoamSettings = true;
bool showShoreFoamSettings = true;
private void DrawShoreFoamSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
//GUILayout.Label("Shore Foam Properties", EditorStyles.boldLabel);
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableShoreWaveFoam = FindProperty("_Enable_Shore_Wave_Foam", properties);
materialEditor.ShaderProperty(enableShoreWaveFoam, "Enable Shore Wave Foam");
if (enableShoreWaveFoam.floatValue == 1)
{
showShoreWaveFoamSettings = EditorGUILayout.Foldout(showShoreWaveFoamSettings, "Shore Wave Foam Settings");
if (showShoreWaveFoamSettings)
{
string[] shoreAnimProperties =
{
"_Enable_Shore_Animation",
"_Animation_Offset"
};
setProperties(materialEditor, properties, shoreAnimProperties, vecGuiProperties);
EditorGUILayout.Separator();
string[] shoreWaveProperties =
{
"_Shore_Wave_Speed",
"_Shore_Wave_Return_Amount",
"_Shore_Wave_Thickness"
};
setProperties(materialEditor, properties, shoreWaveProperties, vecGuiProperties);
EditorGUILayout.Separator();
string[] shoreEdgeProperties =
{
"_Shore_Edge_Opacity",
"_Shore_Wave_Color_Tint",
"_Shore_Edge_Thickness",
"_Shore_Edge_Noise_Scale"
};
setProperties(materialEditor, properties, shoreEdgeProperties, vecGuiProperties);
EditorGUILayout.Separator();
string[] shoreFoamProperties =
{
"_Shore_Foam_Noise_Scale",
"_Shore_Foam_Noise_Texture"
};
setProperties(materialEditor, properties, shoreFoamProperties, vecGuiProperties);
EditorGUILayout.Separator();
}
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableShoreFoam = FindProperty("_Enable_Shore_Foam", properties);
materialEditor.ShaderProperty(enableShoreFoam, "Enable Shore Foam");
if (enableShoreFoam.floatValue == 1)
{
showShoreFoamSettings = EditorGUILayout.Foldout(showShoreFoamSettings, "Shore Foam Settings");
if (showShoreFoamSettings)
{
string[] shoreFoamProperties =
{
"_Shore_Small_Foam_Opacity",
"_Shore_Small_Foam_Tiling",
"_Shore_Foam_Color_Tint"
};
setProperties(materialEditor, properties, shoreFoamProperties, vecGuiProperties);
EditorGUILayout.Separator();
}
}
EditorGUILayout.EndVertical();
}
#endregion
//Tab 3
#region Global Foam
bool showGlobalFoamSettings = true;
bool showTopScrollingFoamSettings = true;
private void DrawGlobalFoamSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableGlobalFoam = FindProperty("_Enable_Global_Foam", properties);
materialEditor.ShaderProperty(enableGlobalFoam, "Enable Global Foam");
if (enableGlobalFoam.floatValue == 1)
{
showGlobalFoamSettings = EditorGUILayout.Foldout(showGlobalFoamSettings, "Global Foam Settings");
if (showGlobalFoamSettings)
{
string[] globalFoamProperties =
{
"_Noise_Texture"
};
setProperties(materialEditor, properties, globalFoamProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableTopScrollingFoam = FindProperty("_Enable_Top_Scrolling_Texture", properties);
materialEditor.ShaderProperty(enableTopScrollingFoam, "Enable Top Scrolling Texture");
if (enableTopScrollingFoam.floatValue == 1)
{
showTopScrollingFoamSettings = EditorGUILayout.Foldout(showTopScrollingFoamSettings, "Top Scrolling Foam Settings");
if (showTopScrollingFoamSettings)
{
string[] topScrollProperties =
{
"_Scrolling_Texture_Direction",
"_Scrolling_Texture",
"_Scrolling_Texture_Tiling",
"_Scrolling_Texture_Tint",
"_Scrolling_Texture_Opacity"
};
setProperties(materialEditor, properties, topScrollProperties, vecGuiProperties);
}
}
EditorGUILayout.EndVertical();
}
#endregion
//Tab 4
#region Wave Settings
private void DrawWaveSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableOceanWaves = FindProperty("_Enable_Ocean_Wave", properties);
materialEditor.ShaderProperty(enableOceanWaves, "Enable Ocean Waves");
if (enableOceanWaves.floatValue == 1)
{
string[] globalFoamProperties =
{
"_Ocean_Wave_Height",
"_Ocean_Wave_Speed",
"_Ocean_Foam_Amount",
"_Ocean_Foam_Opacity",
"_Ocean_Foam_Breakup_Tiling"
};
setProperties(materialEditor, properties, globalFoamProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
}
#endregion
//Tab 5
#region Advanced
private void DrawAdvancedSettings(MaterialEditor materialEditor, MaterialProperty[] properties)
{
GUIStyle backdropStyle = makeBackdrop();
EditorGUILayout.BeginVertical(backdropStyle);
MaterialProperty enableCaustics = FindProperty("_Enable_Caustics", properties);
materialEditor.ShaderProperty(enableCaustics, "Enable Caustics");
if (enableCaustics.floatValue == 1)
{
string[] globalCausticProperties =
{
"_Caustics_Scale",
"_Caustics_Use_Voronoi_Noise",
"_Caustics_Color",
"_Caustics_Intensity",
"_Caustics_Speed",
};
setProperties(materialEditor, properties, globalCausticProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
EditorGUILayout.Separator();
EditorGUILayout.BeginVertical(backdropStyle);
GUILayout.Label("This feature is only supported in URP/HDRP", EditorStyles.boldLabel);
MaterialProperty enableDistortion = FindProperty("_Enable_Distortion", properties);
materialEditor.ShaderProperty(enableDistortion, "Enable Distortion");
if (enableDistortion.floatValue == 1)
{
string[] globalDistortionProperties =
{
"_Distortion_Direction",
"_Distortion_Speed",
"_Distortion_Strength",
"_Distortion_Size"
};
setProperties(materialEditor, properties, globalDistortionProperties, vecGuiProperties);
}
EditorGUILayout.EndVertical();
}
#endregion
// Build Properties
#region Build Properties
//Gathers list of properties to sort and display in inspector
private static void setProperties(MaterialEditor materialEditor, MaterialProperty[] properties, string[] shaderProperties, Dictionary<string, string> vecGuiProperties)
{
foreach (string property in shaderProperties)
{
MaterialProperty propertyReference = FindProperty(property, properties);
if (vecGuiProperties.ContainsKey(property))
{
string type = vecGuiProperties[property];
if (type == "Vector2")
{
Vector2 vec2Value = new Vector2(propertyReference.vectorValue.x, propertyReference.vectorValue.y);
vec2Value = EditorGUILayout.Vector2Field(propertyReference.displayName, vec2Value);
propertyReference.vectorValue = new Vector4(vec2Value.x, vec2Value.y, 0, 0);
}
else if (type == "Vector3")
{
Vector3 vec3Value = new Vector3(propertyReference.vectorValue.x, propertyReference.vectorValue.y, propertyReference.vectorValue.z);
vec3Value = EditorGUILayout.Vector3Field(propertyReference.displayName, vec3Value);
propertyReference.vectorValue = new Vector4(vec3Value.x, vec3Value.y, vec3Value.z, 0);
}
}
else
{
materialEditor.ShaderProperty(propertyReference, propertyReference.displayName);
}
}
}
#endregion
}

Some files were not shown because too many files have changed in this diff Show More