#6 Add Toon Water And GerstnerWave / InputAction Change

This commit is contained in:
M1_IDMhan 2023-08-03 02:10:40 +09:00
parent b33c3859d0
commit 922ed8e56e
88 changed files with 37378 additions and 480 deletions

View File

@ -130,6 +130,56 @@ RectTransform:
type: 3}
m_PrefabInstance: {fileID: 241393316}
m_PrefabAsset: {fileID: 0}
--- !u!1 &214845523
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 214845524}
- component: {fileID: 214845525}
m_Layer: 0
m_Name: GameObject (3)
m_TagString: Untagged
m_Icon: {fileID: 8418204508859773708, guid: 0000000000000000d000000000000000, type: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &214845524
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 214845523}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.5, y: 0, z: 0.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1225567543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &214845525
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 214845523}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ca68bc2df97bc4c43a817e4a07ea1814, type: 3}
m_Name:
m_EditorClassIdentifier:
rigidBody: {fileID: 1225567544}
depthBeforeSubmerged: 1
displacementAmount: 3
floaterCount: 4
waterDrag: 0.99
waterAngularDrag: 0.5
--- !u!1 &227505832
GameObject:
m_ObjectHideFlags: 3
@ -738,7 +788,7 @@ Transform:
m_GameObject: {fileID: 595518295}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -1, y: 0, z: 2}
m_LocalPosition: {x: -0.5, y: 0.2, z: 1.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -964,8 +1014,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 776161953}
serializedVersion: 2
m_LocalRotation: {x: 0.38498044, y: -0.000000015880197, z: 0.000000006624121, w: 0.92292476}
m_LocalPosition: {x: 0, y: 10.1, z: -10}
m_LocalRotation: {x: 0.2722223, y: 0.65260637, z: -0.27222228, w: 0.6526063}
m_LocalPosition: {x: -9.999999, y: 10.1, z: 0.0000011920929}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -1172,56 +1222,6 @@ MonoBehaviour:
waterPlane: {fileID: 840095404}
waterLevel: -0.4
dynamicMaterial: 0
--- !u!1 &855182927
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 855182928}
- component: {fileID: 855182929}
m_Layer: 0
m_Name: GameObject (3)
m_TagString: Untagged
m_Icon: {fileID: -5397416234189338067, guid: 0000000000000000d000000000000000, type: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &855182928
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 855182927}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.5, y: 0, z: -0.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1062632626}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &855182929
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 855182927}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ca68bc2df97bc4c43a817e4a07ea1814, type: 3}
m_Name:
m_EditorClassIdentifier:
rigidBody: {fileID: 1062632622}
depthBeforeSubmerged: 1
displacementAmount: 3
floaterCount: 4
waterDrag: 0.99
waterAngularDrag: 10
--- !u!1 &897152331
GameObject:
m_ObjectHideFlags: 0
@ -1247,8 +1247,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 897152331}
serializedVersion: 2
m_LocalRotation: {x: 0.38498044, y: -0.000000015880197, z: 0.000000006624121, w: 0.92292476}
m_LocalPosition: {x: 0, y: 10.1, z: -10}
m_LocalRotation: {x: 0.3849805, y: 0.000000029802322, z: 0.000000014901161, w: 0.92292476}
m_LocalPosition: {x: -0.0000002384187, y: 10.1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
@ -1294,6 +1294,56 @@ MonoBehaviour:
m_Calls: []
m_LegacyBlendHint: 0
m_ComponentOwner: {fileID: 227505833}
--- !u!1 &1034588240
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1034588241}
- component: {fileID: 1034588242}
m_Layer: 0
m_Name: GameObject (2)
m_TagString: Untagged
m_Icon: {fileID: 8418204508859773708, guid: 0000000000000000d000000000000000, type: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1034588241
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1034588240}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.5, y: 0, z: -0.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1225567543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1034588242
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1034588240}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ca68bc2df97bc4c43a817e4a07ea1814, type: 3}
m_Name:
m_EditorClassIdentifier:
rigidBody: {fileID: 1225567544}
depthBeforeSubmerged: 1
displacementAmount: 3
floaterCount: 4
waterDrag: 0.99
waterAngularDrag: 0.5
--- !u!114 &1052583427 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8113378936488292401, guid: 19e7a279b411e8a4aa8396dbda0558e2,
@ -1306,143 +1356,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fe50eb2ce75bcc748ab14fe464853cfd, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1062632621
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1062632626}
- component: {fileID: 1062632625}
- component: {fileID: 1062632624}
- component: {fileID: 1062632623}
- component: {fileID: 1062632622}
m_Layer: 0
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!54 &1062632622
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1062632621}
serializedVersion: 4
m_Mass: 1
m_Drag: 0.01
m_AngularDrag: 0.05
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!65 &1062632623
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1062632621}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!23 &1062632624
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1062632621}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, 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!33 &1062632625
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1062632621}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!4 &1062632626
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1062632621}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 2, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1089304213}
- {fileID: 1280493736}
- {fileID: 1919646494}
- {fileID: 855182928}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1075979656
GameObject:
m_ObjectHideFlags: 0
@ -1469,7 +1382,7 @@ Transform:
m_GameObject: {fileID: 1075979656}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1, y: 0, z: -2}
m_LocalPosition: {x: 0.5, y: 0.2, z: -2.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -1538,56 +1451,6 @@ PrefabInstance:
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d0223f77114284b47a0e8b317e71e4dc, type: 3}
--- !u!1 &1089304212
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1089304213}
- component: {fileID: 1089304214}
m_Layer: 0
m_Name: GameObject
m_TagString: Untagged
m_Icon: {fileID: -5397416234189338067, guid: 0000000000000000d000000000000000, type: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1089304213
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1089304212}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.5, y: 0, z: 0.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1062632626}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1089304214
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1089304212}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ca68bc2df97bc4c43a817e4a07ea1814, type: 3}
m_Name:
m_EditorClassIdentifier:
rigidBody: {fileID: 1062632622}
depthBeforeSubmerged: 1
displacementAmount: 3
floaterCount: 4
waterDrag: 0.99
waterAngularDrag: 10
--- !u!114 &1098125357 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 7792241509306665534, guid: c8c901c119dd09f4d9976a4d49bbd8f9,
@ -1703,6 +1566,291 @@ PrefabInstance:
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c81967ffeeb296946a0aad56060019a9, type: 3}
--- !u!1 &1181634877
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1181634882}
- component: {fileID: 1181634881}
- component: {fileID: 1181634880}
- component: {fileID: 1181634878}
- component: {fileID: 1181634884}
- component: {fileID: 1181634883}
m_Layer: 0
m_Name: SM_Veh_Boat_Rowing_01_Hull (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!54 &1181634878
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1181634877}
serializedVersion: 4
m_Mass: 1
m_Drag: 0.1
m_AngularDrag: 0.05
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!23 &1181634880
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1181634877}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 5e1235b2e417983469723d36f05de88d, 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: 0
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!33 &1181634881
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1181634877}
m_Mesh: {fileID: 4300000, guid: 9e2ca1b3a4930a0478e9a1785b96f2dd, type: 3}
--- !u!4 &1181634882
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1181634877}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: 0, y: -0.58, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
--- !u!114 &1181634883
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1181634877}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 616a7216aa8754444908b58052d4b644, type: 3}
m_Name:
m_EditorClassIdentifier:
waveGenerator: {fileID: 1560348105}
boatOffset: -0.4
--- !u!65 &1181634884
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1181634877}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 1.9821782, y: 1.1576467, z: 5.3873086}
m_Center: {x: 0, y: 0.5788233, z: 0}
--- !u!1 &1225567539
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1225567543}
- component: {fileID: 1225567542}
- component: {fileID: 1225567541}
- component: {fileID: 1225567540}
- component: {fileID: 1225567544}
m_Layer: 0
m_Name: TestCube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!65 &1225567540
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1225567539}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!23 &1225567541
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1225567539}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, 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!33 &1225567542
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1225567539}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!4 &1225567543
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1225567539}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 2.315569, y: 0.29, z: -2.8508334}
m_LocalScale: {x: 2, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 2026649843}
- {fileID: 1899264901}
- {fileID: 1034588241}
- {fileID: 214845524}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!54 &1225567544
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1225567539}
serializedVersion: 4
m_Mass: 1
m_Drag: 0.01
m_AngularDrag: 0.05
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!1 &1234264506
GameObject:
m_ObjectHideFlags: 0
@ -1747,56 +1895,6 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1280493735
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1280493736}
- component: {fileID: 1280493737}
m_Layer: 0
m_Name: GameObject (1)
m_TagString: Untagged
m_Icon: {fileID: -5397416234189338067, guid: 0000000000000000d000000000000000, type: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1280493736
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1280493735}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.5, y: 0, z: 0.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1062632626}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1280493737
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1280493735}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ca68bc2df97bc4c43a817e4a07ea1814, type: 3}
m_Name:
m_EditorClassIdentifier:
rigidBody: {fileID: 1062632622}
depthBeforeSubmerged: 1
displacementAmount: 3
floaterCount: 4
waterDrag: 0.99
waterAngularDrag: 10
--- !u!1 &1341654434
GameObject:
m_ObjectHideFlags: 0
@ -7276,9 +7374,9 @@ GameObject:
- component: {fileID: 1560348101}
- component: {fileID: 1560348100}
- component: {fileID: 1560348099}
- component: {fileID: 1560348098}
- component: {fileID: 1560348103}
- component: {fileID: 1560348102}
- component: {fileID: 1560348105}
m_Layer: 4
m_Name: Water Object
m_TagString: Untagged
@ -7286,21 +7384,6 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1560348098
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1560348097}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 52480f6baf9b7b0428c75481cb3d5a6d, type: 3}
m_Name:
m_EditorClassIdentifier:
material: {fileID: 2100000, guid: 9b3e58c79fd0b4fefabd781bd9000960, type: 2}
meshFilter: {fileID: 1560348100}
meshRenderer: {fileID: 1560348099}
--- !u!23 &1560348099
MeshRenderer:
m_ObjectHideFlags: 0
@ -7321,7 +7404,7 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 9b3e58c79fd0b4fefabd781bd9000960, type: 2}
- {fileID: 2100000, guid: 6f699adcfa13e46909b0be2a19b8c536, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
@ -7373,7 +7456,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1560348097}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e030824537d64505a8560a4d8d344587, type: 3}
m_Name:
@ -7389,11 +7472,27 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1560348097}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 58d3123bba1e4be4813c40e9f26a7702, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1560348105
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1560348097}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e94b9d97c53ad44e28abbecc69e7d339, type: 3}
m_Name:
m_EditorClassIdentifier:
waveLength: 2
amplitude: 0.1
speed: 1
direction: {x: 1, y: 0}
--- !u!1001 &1646060060
PrefabInstance:
m_ObjectHideFlags: 0
@ -7498,7 +7597,7 @@ Transform:
m_GameObject: {fileID: 1689714492}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1, y: 0, z: 2}
m_LocalPosition: {x: 0.5, y: 0.2, z: 1.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -7652,7 +7751,7 @@ MonoBehaviour:
m_LightCookieSize: {x: 1, y: 1}
m_LightCookieOffset: {x: 0, y: 0}
m_SoftShadowQuality: 0
--- !u!1 &1919646493
--- !u!1 &1899264900
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -7660,48 +7759,48 @@ GameObject:
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1919646494}
- component: {fileID: 1919646495}
- component: {fileID: 1899264901}
- component: {fileID: 1899264902}
m_Layer: 0
m_Name: GameObject (2)
m_Name: GameObject (1)
m_TagString: Untagged
m_Icon: {fileID: -5397416234189338067, guid: 0000000000000000d000000000000000, type: 0}
m_Icon: {fileID: 8418204508859773708, guid: 0000000000000000d000000000000000, type: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1919646494
--- !u!4 &1899264901
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1919646493}
m_GameObject: {fileID: 1899264900}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.5, y: 0, z: -0.5}
m_LocalPosition: {x: 0.5, y: 0, z: -0.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1062632626}
m_Father: {fileID: 1225567543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1919646495
--- !u!114 &1899264902
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1919646493}
m_GameObject: {fileID: 1899264900}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ca68bc2df97bc4c43a817e4a07ea1814, type: 3}
m_Name:
m_EditorClassIdentifier:
rigidBody: {fileID: 1062632622}
rigidBody: {fileID: 1225567544}
depthBeforeSubmerged: 1
displacementAmount: 3
floaterCount: 4
waterDrag: 0.99
waterAngularDrag: 10
waterAngularDrag: 0.5
--- !u!1 &1957343710
GameObject:
m_ObjectHideFlags: 0
@ -7728,7 +7827,7 @@ Transform:
m_GameObject: {fileID: 1957343710}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -1, y: 0, z: -2}
m_LocalPosition: {x: -0.5, y: 0.2, z: -2.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -7752,6 +7851,56 @@ MonoBehaviour:
floaterCount: 4
waterDrag: 0.99
waterAngularDrag: 10
--- !u!1 &2026649842
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2026649843}
- component: {fileID: 2026649844}
m_Layer: 0
m_Name: GameObject
m_TagString: Untagged
m_Icon: {fileID: 8418204508859773708, guid: 0000000000000000d000000000000000, type: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2026649843
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2026649842}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.5, y: 0, z: 0.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1225567543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2026649844
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2026649842}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ca68bc2df97bc4c43a817e4a07ea1814, type: 3}
m_Name:
m_EditorClassIdentifier:
rigidBody: {fileID: 1225567544}
depthBeforeSubmerged: 1
displacementAmount: 3
floaterCount: 4
waterDrag: 0.99
waterAngularDrag: 0.5
--- !u!1001 &2031530112
PrefabInstance:
m_ObjectHideFlags: 0
@ -8036,7 +8185,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 242252084844255477}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
@ -8047,7 +8196,7 @@ Transform:
- {fileID: 1957343711}
- {fileID: 897152332}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
--- !u!1 &242252084844255477
GameObject:
m_ObjectHideFlags: 0
@ -8067,7 +8216,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!54 &242252084844255478
Rigidbody:
m_ObjectHideFlags: 0
@ -12764,5 +12913,6 @@ SceneRoots:
- {fileID: 840095406}
- {fileID: 1549546636}
- {fileID: 1560348101}
- {fileID: 1062632626}
- {fileID: 242252084844004957}
- {fileID: 1225567543}
- {fileID: 1181634882}

View File

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.6.1
// version 1.6.3
// from Assets/02.Scritps/BlueWater.inputactions
//
// Changes to this file may cause incorrect behavior and will be lost if
@ -22,9 +22,102 @@ public partial class @BlueWater: IInputActionCollection2, IDisposable
{
asset = InputActionAsset.FromJson(@"{
""name"": ""BlueWater"",
""maps"": [],
""controlSchemes"": []
""maps"": [
{
""name"": ""Player"",
""id"": ""9fe03cc1-5cd3-4b79-a95e-461613cb242e"",
""actions"": [
{
""name"": ""Move"",
""type"": ""Value"",
""id"": ""e46165d9-8066-4400-8950-9b7d4bb9ca75"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
}
],
""bindings"": [
{
""name"": ""2D Vector"",
""id"": ""4dc5b54c-0e59-461e-a12d-470900925a36"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""07083b18-8b38-4c90-ae78-28c2927a5f82"",
""path"": ""<Keyboard>/w"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard"",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""3b75699e-1063-4230-9ac3-95292c44d2bd"",
""path"": ""<Keyboard>/s"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard"",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""6bdc290d-3bc8-4e00-b868-1977d3f2267d"",
""path"": ""<Keyboard>/a"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard"",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""03206e08-b0b8-4a95-9bf8-a3e4fd10d4db"",
""path"": ""<Keyboard>/d"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard"",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
}
]
}
],
""controlSchemes"": [
{
""name"": ""Keyboard"",
""bindingGroup"": ""Keyboard"",
""devices"": [
{
""devicePath"": ""<Keyboard>"",
""isOptional"": false,
""isOR"": false
},
{
""devicePath"": ""<Mouse>"",
""isOptional"": false,
""isOR"": false
}
]
}
]
}");
// Player
m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true);
}
public void Dispose()
@ -82,4 +175,63 @@ public partial class @BlueWater: IInputActionCollection2, IDisposable
{
return asset.FindBinding(bindingMask, out action);
}
// Player
private readonly InputActionMap m_Player;
private List<IPlayerActions> m_PlayerActionsCallbackInterfaces = new List<IPlayerActions>();
private readonly InputAction m_Player_Move;
public struct PlayerActions
{
private @BlueWater m_Wrapper;
public PlayerActions(@BlueWater wrapper) { m_Wrapper = wrapper; }
public InputAction @Move => m_Wrapper.m_Player_Move;
public InputActionMap Get() { return m_Wrapper.m_Player; }
public void Enable() { Get().Enable(); }
public void Disable() { Get().Disable(); }
public bool enabled => Get().enabled;
public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); }
public void AddCallbacks(IPlayerActions instance)
{
if (instance == null || m_Wrapper.m_PlayerActionsCallbackInterfaces.Contains(instance)) return;
m_Wrapper.m_PlayerActionsCallbackInterfaces.Add(instance);
@Move.started += instance.OnMove;
@Move.performed += instance.OnMove;
@Move.canceled += instance.OnMove;
}
private void UnregisterCallbacks(IPlayerActions instance)
{
@Move.started -= instance.OnMove;
@Move.performed -= instance.OnMove;
@Move.canceled -= instance.OnMove;
}
public void RemoveCallbacks(IPlayerActions instance)
{
if (m_Wrapper.m_PlayerActionsCallbackInterfaces.Remove(instance))
UnregisterCallbacks(instance);
}
public void SetCallbacks(IPlayerActions instance)
{
foreach (var item in m_Wrapper.m_PlayerActionsCallbackInterfaces)
UnregisterCallbacks(item);
m_Wrapper.m_PlayerActionsCallbackInterfaces.Clear();
AddCallbacks(instance);
}
}
public PlayerActions @Player => new PlayerActions(this);
private int m_KeyboardSchemeIndex = -1;
public InputControlScheme KeyboardScheme
{
get
{
if (m_KeyboardSchemeIndex == -1) m_KeyboardSchemeIndex = asset.FindControlSchemeIndex("Keyboard");
return asset.controlSchemes[m_KeyboardSchemeIndex];
}
}
public interface IPlayerActions
{
void OnMove(InputAction.CallbackContext context);
}
}

View File

@ -1 +1,95 @@
{}
{
"name": "BlueWater",
"maps": [
{
"name": "Player",
"id": "9fe03cc1-5cd3-4b79-a95e-461613cb242e",
"actions": [
{
"name": "Move",
"type": "Value",
"id": "e46165d9-8066-4400-8950-9b7d4bb9ca75",
"expectedControlType": "Vector2",
"processors": "",
"interactions": "",
"initialStateCheck": true
}
],
"bindings": [
{
"name": "2D Vector",
"id": "4dc5b54c-0e59-461e-a12d-470900925a36",
"path": "2DVector",
"interactions": "",
"processors": "",
"groups": "",
"action": "Move",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "up",
"id": "07083b18-8b38-4c90-ae78-28c2927a5f82",
"path": "<Keyboard>/w",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "3b75699e-1063-4230-9ac3-95292c44d2bd",
"path": "<Keyboard>/s",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "6bdc290d-3bc8-4e00-b868-1977d3f2267d",
"path": "<Keyboard>/a",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "03206e08-b0b8-4a95-9bf8-a3e4fd10d4db",
"path": "<Keyboard>/d",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "Move",
"isComposite": false,
"isPartOfComposite": true
}
]
}
],
"controlSchemes": [
{
"name": "Keyboard",
"bindingGroup": "Keyboard",
"devices": [
{
"devicePath": "<Keyboard>",
"isOptional": false,
"isOR": false
},
{
"devicePath": "<Mouse>",
"isOptional": false,
"isOR": false
}
]
}
]
}

View File

@ -1,26 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Float : MonoBehaviour
{
public float waterLevel = 0.0f;
public float floatThreshold = 2.0f;
public float waterDensity = 0.125f;
public float downForce = 4.0f;
float forceFactor;
Vector3 floatForce;
void FixedUpdate()
{
forceFactor = 1.0f - ((transform.position.y - waterLevel) / floatThreshold);
if (forceFactor > 0.0f)
{
floatForce = -Physics.gravity * GetComponent<Rigidbody>().mass * (forceFactor - GetComponent<Rigidbody>().velocity.y * waterDensity);
floatForce += new Vector3(0.0f, -downForce * GetComponent<Rigidbody>().mass, 0.0f);
GetComponent<Rigidbody>().AddForceAtPosition(floatForce, transform.position);
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 0c3f92a3fa26b4b5e93b66ed7f2e75a5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,27 +0,0 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Floater : MonoBehaviour
{
public Rigidbody rigidBody;
public float depthBeforeSubmerged = 1f;
public float displacementAmount = 3f;
public int floaterCount = 1;
public float waterDrag = 0.99f;
public float waterAngularDrag = 0.5f;
private void FixedUpdate()
{
rigidBody.AddForceAtPosition(Physics.gravity / floaterCount, transform.position, ForceMode.Acceleration);
float waveHeight = WaveManager.Instance.GetWaveHeight(transform.position.x);
if (transform.position.y < waveHeight)
{
float displacementMultiplier = Mathf.Clamp01((waveHeight - transform.position.y) / depthBeforeSubmerged) * displacementAmount;
rigidBody.AddForceAtPosition(new Vector3(0f, Mathf.Abs(Physics.gravity.y) * displacementMultiplier, 0f), transform.position, ForceMode.Acceleration);
rigidBody.AddForce(displacementMultiplier * -rigidBody.velocity * waterDrag * Time.fixedDeltaTime, ForceMode.VelocityChange);
rigidBody.AddTorque(displacementMultiplier * -rigidBody.angularVelocity * waterAngularDrag * Time.fixedDeltaTime, ForceMode.VelocityChange);
}
}
}

View File

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

View File

@ -0,0 +1,37 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Floater : MonoBehaviour
{
public GerstnerWave waveGenerator;
public float boatOffset = 0.0f; // new variable
private Rigidbody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}
void Update()
{
float waveNumber = 2.0f * Mathf.PI / waveGenerator.waveLength;
float phaseConstant = waveGenerator.speed * waveNumber;
Vector3 position = rb.position;
float dotProduct = Vector2.Dot(new Vector2(position.x, position.z), waveGenerator.direction);
float wavePhase = waveNumber * dotProduct + phaseConstant * Time.time;
// Calculate the new height
float newY = waveGenerator.amplitude * Mathf.Sin(wavePhase) + boatOffset; // added offset here
position.y = newY;
rb.MovePosition(position);
// get wave's normal
Mesh mesh = waveGenerator.GetComponent<MeshFilter>().mesh;
Vector3 normal = mesh.normals[0];
Quaternion targetRotation = Quaternion.FromToRotation(transform.up, normal) * transform.rotation;
rb.MoveRotation(Quaternion.Slerp(transform.rotation, targetRotation, Time.deltaTime * waveGenerator.speed));
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ca68bc2df97bc4c43a817e4a07ea1814
guid: 616a7216aa8754444908b58052d4b644
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -0,0 +1,32 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GerstnerWave : MonoBehaviour
{
public float waveLength = 0.1f;
public float amplitude = 0.1f;
public float speed = 1f;
public Vector2 direction = new Vector2(1.0f, 0.0f);
void Update()
{
Mesh mesh = GetComponent<MeshFilter>().mesh;
Vector3[] vertices = mesh.vertices;
float waveNumber = 2.0f * Mathf.PI / waveLength;
float phaseConstant = speed * waveNumber;
for (int i = 0; i < vertices.Length; i++)
{
Vector3 vertex = vertices[i];
float dotProduct = Vector2.Dot(new Vector2(vertex.x, vertex.z), direction);
float wavePhase = waveNumber * dotProduct + phaseConstant * Time.time;
vertex.y = amplitude * Mathf.Sin(wavePhase);
vertices[i] = vertex;
}
mesh.vertices = vertices;
mesh.RecalculateNormals();
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: b6a64ba0b99cb4a9ba4f6236076fc5b3
guid: e94b9d97c53ad44e28abbecc69e7d339
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -1,29 +0,0 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
[RequireComponent(typeof(MeshFilter))]
[RequireComponent(typeof(MeshRenderer))]
public class WaterManager : MonoBehaviour
{
private MeshFilter meshFilter;
private void Awake()
{
meshFilter = GetComponent<MeshFilter>();
}
private void Update()
{
Vector3[] vertices = meshFilter.mesh.vertices;
for (int i = 0; i < vertices.Length; i++)
{
vertices[i].y = WaveManager.Instance.GetWaveHeight(transform.position.x + vertices[i].x);
}
meshFilter.mesh.vertices = vertices;
meshFilter.mesh.RecalculateNormals();
}
}

View File

@ -1,35 +0,0 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WaveManager : MonoBehaviour
{
public static WaveManager Instance { get; private set; }
public float amplitude = 1f;
public float length = 2f;
public float speed = 1f;
public float offset = 0f;
private void Awake()
{
if (Instance == null)
Instance = this;
else if (Instance != this)
{
Debug.LogWarning("인스턴스가 이미 존재합니다. 새로 생성된 인스턴스를 삭제합니다.");
Destroy(this);
}
}
private void Update()
{
offset += Time.deltaTime * speed;
}
public float GetWaveHeight(float x)
{
return amplitude * Mathf.Sin(x / length + offset);
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: e030824537d64505a8560a4d8d344587
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -0,0 +1,135 @@
%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: Toon Water Material 1
m_Shader: {fileID: -6465566751694194690, guid: b4a6b41e114133b4d8eb40ab1d879de6,
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: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- Texture2D_821B987A:
m_Texture: {fileID: 2800000, guid: ce0b76e65ef10314d9f55a9dd2284336, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- Boolean_2918AA79: 0
- Vector1_20DB7652: 0.158
- Vector1_24CAEF48: 1
- Vector1_301E02E2: 240
- Vector1_31894ABB: 0.0158
- Vector1_3632ABA2: 0
- Vector1_45F25267: 1.14
- Vector1_738B39CF: 0
- Vector1_854A7D8C: 0.51
- Vector1_9C73072A: 0.88
- Vector1_A524D234: 0
- Vector1_B9CC1720: 0.03
- Vector1_E4F66A0: 0.03
- Vector1_E71BB35E: 1.02
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueControl: -1
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_1139F668: {r: 0.22241013, g: 0.80931354, b: 0.9622642, a: 0.5254902}
- Color_198818EE: {r: 0, g: 0.37919012, b: 1.498, a: 1}
- Color_626750DD: {r: 2, g: 2, b: 2, a: 1}
- Color_77A2EDE9: {r: 31.626795, g: 31.626795, b: 31.626795, a: 1}
- Vector2_1E1B6943: {r: 1, g: 5, b: 0, a: 0}
- Vector2_D06E76BC: {r: 0.1, g: 0.05, b: 0, a: 0}
- Vector2_D26C9C89: {r: 1, g: 0, b: 0, a: 0}
- Vector2_F678228C: {r: 0.5, g: 0.5, b: 0, a: 0}
- _BaseColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &3896513066879331790
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: 7

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7bd9197176b024eaf97d4007e256f419
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,136 @@
%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: Toon Water Material 2
m_Shader: {fileID: -6465566751694194690, guid: b4a6b41e114133b4d8eb40ab1d879de6,
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: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- Texture2D_821B987A:
m_Texture: {fileID: 2800000, guid: ce0b76e65ef10314d9f55a9dd2284336, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- Boolean_2918AA79: 0
- Vector1_20DB7652: 0.045
- Vector1_24CAEF48: 1
- Vector1_301E02E2: 512
- Vector1_31894ABB: 0.0066
- Vector1_3632ABA2: 0.754
- Vector1_45F25267: 2.6
- Vector1_738B39CF: 0.018
- Vector1_854A7D8C: 0.56
- Vector1_9C73072A: 2.82
- Vector1_A524D234: 0.705
- Vector1_B9CC1720: 0.031
- Vector1_E4F66A0: 0.03
- Vector1_E53063CA: 0
- Vector1_E71BB35E: 1.16
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueControl: -1
- _QueueOffset: 0
- _ReceiveShadows: 0
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_1139F668: {r: 1, g: 1, b: 1, a: 0.21176471}
- Color_198818EE: {r: 0, g: 1.2057794, b: 1.498, a: 0.16470589}
- Color_626750DD: {r: 2, g: 2, b: 2, a: 1}
- Color_77A2EDE9: {r: 31.626795, g: 31.626795, b: 31.626795, a: 1}
- Vector2_1E1B6943: {r: 1, g: 5, b: 0, a: 0}
- Vector2_D06E76BC: {r: 0.1, g: 0.05, b: 0, a: 0}
- Vector2_D26C9C89: {r: 1, g: 0, b: 0, a: 0}
- Vector2_F678228C: {r: 0.5, g: 0.5, b: 0, a: 0}
- _BaseColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &3896513066879331790
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: 7

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cb277eb3bee9d44b1b2a96c20ce470e5
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,135 @@
%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: Toon Water Material 3
m_Shader: {fileID: -6465566751694194690, guid: b4a6b41e114133b4d8eb40ab1d879de6,
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: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- Texture2D_821B987A:
m_Texture: {fileID: 2800000, guid: ce0b76e65ef10314d9f55a9dd2284336, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- Boolean_2918AA79: 1
- Vector1_20DB7652: 0.261
- Vector1_24CAEF48: 1
- Vector1_301E02E2: 240
- Vector1_31894ABB: 0.009
- Vector1_3632ABA2: 0
- Vector1_45F25267: 1.14
- Vector1_738B39CF: 0
- Vector1_854A7D8C: 0.93
- Vector1_9C73072A: 0.97
- Vector1_A524D234: 0
- Vector1_B9CC1720: 0.03
- Vector1_E4F66A0: 0.03
- Vector1_E71BB35E: 1.02
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueControl: -1
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_1139F668: {r: 0.25143114, g: 1.7815307, b: 2.1828797, a: 1}
- Color_198818EE: {r: 0, g: 0.34509805, b: 1.4980392, a: 0.92156863}
- Color_626750DD: {r: 2, g: 2, b: 2, a: 1}
- Color_77A2EDE9: {r: 31.626795, g: 31.626795, b: 31.626795, a: 1}
- Vector2_1E1B6943: {r: 1, g: 5, b: 0, a: 0}
- Vector2_D06E76BC: {r: 0.1, g: 0.05, b: 0, a: 0}
- Vector2_D26C9C89: {r: 1, g: 0, b: 0, a: 0}
- Vector2_F678228C: {r: 0.5, g: 0.5, b: 0, a: 0}
- _BaseColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &3896513066879331790
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: 7

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 16389c65bfffc47ad8a950b00cf3642e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,144 @@
%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: Toon Water Mobile Fast
m_Shader: {fileID: -6465566751694194690, guid: 550017bf155e702489e4eee4d320ebeb,
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: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- Texture2D_662AC62F:
m_Texture: {fileID: 2800000, guid: e0e8561a19db1b841b346944d8b13461, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Texture2D_A0A6C9A8:
m_Texture: {fileID: 2800000, guid: e1301069de86bdd439c7a3182ed21c3c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Texture2D_CC12F70E:
m_Texture: {fileID: 2800000, guid: e1301069de86bdd439c7a3182ed21c3c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- BOOLEAN_537AC313: 0
- BOOLEAN_765B4C2: 0
- BOOLEAN_A060AF44: 0
- BOOLEAN_EC1EAD31: 0
- Boolean_2918AA79: 0
- Vector1_20DB7652: 0.157
- Vector1_301E02E2: 200
- Vector1_31894ABB: 0.0485
- Vector1_45F25267: 2.36
- Vector1_7AF1AC78: 0.964
- Vector1_854A7D8C: 0.9
- Vector1_9C73072A: 0
- Vector1_A524D234: 0.288
- Vector1_B9CC1720: 0.0319
- Vector1_E71BB35E: 1
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueControl: 0
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_1139F668: {r: 0, g: 0.5380234, b: 0.83, a: 0.5803922}
- Color_198818EE: {r: 0.35279235, g: 0.9320378, b: 0.95699996, a: 0.9490196}
- Color_626750DD: {r: 2, g: 2, b: 2, a: 1}
- Color_77A2EDE9: {r: 0.8947124, g: 0.8947124, b: 0.8947124, a: 1}
- Vector2_1E1B6943: {r: 0.1, g: 0.5, b: 0, a: 0}
- Vector2_D06E76BC: {r: 0.1, g: 0.05, b: 0, a: 0}
- Vector2_D26C9C89: {r: 0.03, g: 0, b: 0, a: 0}
- Vector2_F678228C: {r: 0.5, g: 0.5, b: 0, a: 0}
- _BaseColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &5467701122665808439
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: 7

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 29fa0c27fe8a743499f21102d679ba40
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,146 @@
%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: Toon Water Mobile
m_Shader: {fileID: -6465566751694194690, guid: 550017bf155e702489e4eee4d320ebeb,
type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- BOOLEAN_A060AF44_ON
- BOOLEAN_EC1EAD31_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- Texture2D_662AC62F:
m_Texture: {fileID: 2800000, guid: e0e8561a19db1b841b346944d8b13461, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Texture2D_A0A6C9A8:
m_Texture: {fileID: 2800000, guid: e1301069de86bdd439c7a3182ed21c3c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Texture2D_CC12F70E:
m_Texture: {fileID: 2800000, guid: e1301069de86bdd439c7a3182ed21c3c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- BOOLEAN_537AC313: 0
- BOOLEAN_765B4C2: 0
- BOOLEAN_A060AF44: 1
- BOOLEAN_EC1EAD31: 1
- Boolean_2918AA79: 0
- Vector1_20DB7652: 0.157
- Vector1_301E02E2: 200
- Vector1_31894ABB: 0.0485
- Vector1_45F25267: 1.87
- Vector1_7AF1AC78: 0.97
- Vector1_854A7D8C: 0.9
- Vector1_9C73072A: 0.04
- Vector1_A524D234: 0.288
- Vector1_B9CC1720: 0.0319
- Vector1_E71BB35E: 1
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueControl: 0
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_1139F668: {r: 0, g: 0.6439421, b: 0.9921569, a: 0.38431373}
- Color_198818EE: {r: 0.341151, g: 0.5477178, b: 0.9245283, a: 0.8862745}
- Color_626750DD: {r: 2, g: 2, b: 2, a: 1}
- Color_77A2EDE9: {r: 32, g: 32, b: 32, a: 1}
- Vector2_1E1B6943: {r: 0.1, g: 0.5, b: 0, a: 0}
- Vector2_D06E76BC: {r: 0.1, g: 0.05, b: 0, a: 0}
- Vector2_D26C9C89: {r: 0.03, g: 0, b: 0, a: 0}
- Vector2_F678228C: {r: 0.5, g: 0.5, b: 0, a: 0}
- _BaseColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &5467701122665808439
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: 7

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6f699adcfa13e46909b0be2a19b8c536
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9bb46846895637345958c596b7fb8919
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: dc628acba2140e545b4592b2a55e46fb
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,139 @@
fileFormatVersion: 2
guid: b4b744c8d03eaeb4396d1c100283c6ff
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 1
seamlessCubemap: 1
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 2
aniso: 0
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 2
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 100
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Windows Store Apps
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -0,0 +1,134 @@
%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: CubeMaterial
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _RECEIVE_SHADOWS_OFF
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2000
stringTagMap:
RenderType: Opaque
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _Parallax: 0.005
- _QueueOffset: 0
- _ReceiveShadows: 0
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &7539685410756901274
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: 7

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3185bfa416cb5494583fc75d07758f01
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: e329f0b7fde202f4f897c5a90e78e004
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: 1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 2
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Windows Store Apps
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,148 @@
using UnityEngine;
using UnityEditor;
using System;
public class ToonWaterInspector : ShaderGUI
{
private const string SHALLOW_WATER_COLOR_ID = "Color_1139F668";
private const string DEEP_WATER_COLOR_ID = "Color_198818EE";
private const string SPECULAR_COLOR_ID = "Color_77A2EDE9";
private const string FOAM_COLOR_ID = "Color_626750DD";
private const string SPECULAR_ID = "Vector1_301E02E2";
private const string WATER_DEPTH_ID = "Vector1_45F25267";
private const string REFRACTION_STRENGTH_ID = "Vector1_31894ABB";
private const string USE_REFRACTION_IN_DEPTH_BASED_WATER_COLOR = "Boolean_2918AA79";
private const string WAVE_DIRECTION_ID = "Vector2_D26C9C89";
private const string WAVE_SIZE_ID = "Vector2_1E1B6943";
private const string NORMALS_STRENGTH_ID = "Vector1_9C73072A";
private const string SPECULAR_CUTOFF_ID = "Vector1_20DB7652";
private const string FOAM_AMOUNT_ID = "Vector1_854A7D8C";
private const string FOAM_CUTOFF_ID = "Vector1_E71BB35E";
private const string FOAM_DIRECTION_ID = "Vector2_D06E76BC";
private const string FOAM_SCALE_ID = "Vector2_F678228C";
private const string FRESNEL_POWER_ID = "Vector1_A524D234";
private const string SPECULAR_EDGES_SMOOTHNESS_FACTOR_ID = "Vector1_B9CC1720";
private const string REFLECTION_VISIBILITY_ID = "Vector1_3632ABA2";
private const string REFLECTION_DISTORTION_STRENGHT = "Vector1_738B39CF";
private static bool colorsFoldout = true;
private static bool lightningFoldout = false;
private static bool fresnelFoldout = false;
private static bool refractionFoldout = false;
private static bool foamFoldout = false;
private static bool wavesFoldout = false;
private static bool reflectionFoldout = false;
public override void OnGUI(MaterialEditor editor, MaterialProperty[] properties)
{
GUILayout.BeginHorizontal();
GUILayout.Label(Resources.Load<Texture>("TOON_WATER_LOGO"), GUILayout.Width(308), GUILayout.Height(244));
GUILayout.EndHorizontal();
//WATER COLORS
colorsFoldout = EditorGUILayout.BeginFoldoutHeaderGroup(colorsFoldout, "Water Colors");
if(colorsFoldout)
{
MaterialProperty waterDepth = FindProperty(WATER_DEPTH_ID, properties);
editor.FloatProperty(waterDepth, "Water Depth");
MaterialProperty shallowColor = FindProperty(SHALLOW_WATER_COLOR_ID, properties);
editor.ColorProperty(shallowColor, "Shallow Water Color");
MaterialProperty deepColor = FindProperty(DEEP_WATER_COLOR_ID, properties);
editor.ColorProperty(deepColor, "Deep Water Color");
}
EditorGUILayout.EndFoldoutHeaderGroup();
//LIGHTNING
lightningFoldout = EditorGUILayout.BeginFoldoutHeaderGroup(lightningFoldout, "Light settings");
if(lightningFoldout)
{
MaterialProperty specularPower = FindProperty(SPECULAR_ID, properties);
editor.RangeProperty(specularPower, "Specular Power");
MaterialProperty specularCutoff = FindProperty(SPECULAR_CUTOFF_ID, properties);
editor.RangeProperty(specularCutoff, "Specular Cutoff");
MaterialProperty specularEdgesSmoothnessFactor = FindProperty(SPECULAR_EDGES_SMOOTHNESS_FACTOR_ID, properties);
editor.RangeProperty(specularEdgesSmoothnessFactor, "Specular Edges Smoothness Factor");
MaterialProperty specularColor = FindProperty(SPECULAR_COLOR_ID, properties);
editor.ColorProperty(specularColor, "Specular Color");
MaterialProperty normalsStrenght = FindProperty(NORMALS_STRENGTH_ID, properties);
editor.FloatProperty(normalsStrenght, "Normals Strength");
}
EditorGUILayout.EndFoldoutHeaderGroup();
//FRESNEL
fresnelFoldout = EditorGUILayout.BeginFoldoutHeaderGroup(fresnelFoldout, "Fresnel");
if(fresnelFoldout)
{
MaterialProperty fresnelPower = FindProperty(FRESNEL_POWER_ID, properties);
editor.RangeProperty(fresnelPower, "Fresnel Power");
if(fresnelPower.floatValue <= 0)
EditorGUILayout.HelpBox("When Fresnel Power is set to 0 effect is disabled and Planar Reflections will not be visible!", MessageType.Info);
}
EditorGUILayout.EndFoldoutHeaderGroup();
//REFRACTION
refractionFoldout = EditorGUILayout.BeginFoldoutHeaderGroup(refractionFoldout, "Refraction");
if(refractionFoldout)
{
MaterialProperty refractionStrenght = FindProperty(REFRACTION_STRENGTH_ID, properties);
editor.RangeProperty(refractionStrenght, "Refraction Strength");
MaterialProperty useRefraction = FindProperty(USE_REFRACTION_IN_DEPTH_BASED_WATER_COLOR, properties);
useRefraction.floatValue = EditorGUILayout.Toggle("Use Refraction In Depth Based Water Color", useRefraction.floatValue > 0) ? 1 : 0;
}
EditorGUILayout.EndFoldoutHeaderGroup();
//REFLECTION
reflectionFoldout = EditorGUILayout.BeginFoldoutHeaderGroup(reflectionFoldout, "Planar Reflections");
if(reflectionFoldout)
{
MaterialProperty reflectionVisiblity = FindProperty(REFLECTION_VISIBILITY_ID, properties);
editor.RangeProperty(reflectionVisiblity, "Reflection Visibility");
MaterialProperty reflectionDistortion = FindProperty(REFLECTION_DISTORTION_STRENGHT, properties);
editor.RangeProperty(reflectionDistortion, "Reflection Distortion Strenght");
}
EditorGUILayout.EndFoldoutHeaderGroup();
//FOAM
foamFoldout = EditorGUILayout.BeginFoldoutHeaderGroup(foamFoldout, "Foam");
if(foamFoldout)
{
MaterialProperty foamColor = FindProperty(FOAM_COLOR_ID, properties);
editor.ColorProperty(foamColor, "Foam Color");
MaterialProperty foamAmount = FindProperty(FOAM_AMOUNT_ID, properties);
editor.FloatProperty(foamAmount, "Foam Amount");
MaterialProperty foamCutoff = FindProperty(FOAM_CUTOFF_ID, properties);
editor.FloatProperty(foamCutoff, "Foam Cutoff");
MaterialProperty foamDirection = FindProperty(FOAM_DIRECTION_ID, properties);
editor.VectorProperty(foamDirection, "Foam Direction");
MaterialProperty foamScale = FindProperty(FOAM_SCALE_ID, properties);
editor.VectorProperty(foamScale, "Foam Scale");
}
EditorGUILayout.EndFoldoutHeaderGroup();
//WAVES
wavesFoldout = EditorGUILayout.BeginFoldoutHeaderGroup(wavesFoldout, "Waves");
if(wavesFoldout)
{
MaterialProperty waveDir = FindProperty(WAVE_DIRECTION_ID, properties);
editor.VectorProperty(waveDir, "Wave Direction");
MaterialProperty waveSize = FindProperty(WAVE_SIZE_ID, properties);
editor.VectorProperty(waveSize, "Wave Size");
}
EditorGUILayout.EndFoldoutHeaderGroup();
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 58d3123bba1e4be4813c40e9f26a7702
guid: a8ddd93389a23c348983dea8a49dde09
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

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

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 2ac45f310d4aca940b26abe201ad5c52
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: eec5c75e01ddea0418cc79facd8311a0
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}

View File

@ -0,0 +1,15 @@
void ClipValues_half(out half2 Out)
{
Out = half2(
UNITY_NEAR_CLIP_VALUE,
UNITY_RAW_FAR_CLIP_VALUE
);
}
void ClipValues_float(out half2 Out)
{
Out = half2(
UNITY_NEAR_CLIP_VALUE,
UNITY_RAW_FAR_CLIP_VALUE
);
}

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: b5b7013f241ef384889555f50e03d647
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,19 @@
void DirLight_half(float3 WorldPos, out half3 Direction, out half3 Color, out half Attenuation)
{
#if SHADERGRAPH_PREVIEW
Direction = half3(0.5, 0.5, 0);
Color = 1;
Attenuation = 1;
#else
#if SHADOWS_SCREEN
half4 clipPos = TransformWorldToHClip(WorldPos);
half4 shadowCoord = ComputeScreenPos(clipPos);
#else
half4 shadowCoord = TransformWorldToShadowCoord(WorldPos);
#endif
Light mainLight = GetMainLight(shadowCoord);
Direction = mainLight.direction;
Color = mainLight.color;
Attenuation = mainLight.distanceAttenuation * mainLight.shadowAttenuation;
#endif
}

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 268205336744f064d922e191ec6947d0
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,28 @@
void OtherLights_half(half4 SpecColor, half SpecularPower, half SpecularCutoff, half SpecularTolerance, half3 WorldPosition, half3 WorldNormal, half3 WorldView, out half3 Specular)
{
half3 specularColor = 0;
#ifndef SHADERGRAPH_PREVIEW
WorldNormal = normalize(WorldNormal);
WorldView = SafeNormalize(WorldView);
int pixelLightCount = GetAdditionalLightsCount();
for (int i = 0; i < pixelLightCount; i++)
{
Light light = GetAdditionalLight(i, WorldPosition);
half3 attenuatedLightColor = light.color * (light.distanceAttenuation * light.shadowAttenuation);
half3 dirView = normalize(light.direction + WorldView);
half NdotV = saturate(dot(WorldNormal, dirView));
NdotV = pow(NdotV, SpecularPower * 3);
NdotV = smoothstep(SpecularCutoff - SpecularTolerance, SpecularCutoff + SpecularTolerance, NdotV);
specularColor += NdotV * (SpecColor.rgb * attenuatedLightColor);
}
#endif
specularColor = lerp(half3(0, 0, 0), specularColor, SpecColor.a);
Specular = specularColor;
}

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: f01c1c57da365e5428a918b893fe3ff7
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

View File

@ -0,0 +1,139 @@
fileFormatVersion: 2
guid: e1301069de86bdd439c7a3182ed21c3c
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: 2
mipBias: -100
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Windows Store Apps
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 KiB

View File

@ -0,0 +1,152 @@
fileFormatVersion: 2
guid: e0e8561a19db1b841b346944d8b13461
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.112
normalMapFilter: 1
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: 2
mipBias: -100
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 1
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Windows Store Apps
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,146 @@
%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: Toon Water Mobile 1
m_Shader: {fileID: -6465566751694194690, guid: 550017bf155e702489e4eee4d320ebeb,
type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- BOOLEAN_A060AF44_ON
- BOOLEAN_EC1EAD31_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- Texture2D_662AC62F:
m_Texture: {fileID: 2800000, guid: e0e8561a19db1b841b346944d8b13461, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Texture2D_A0A6C9A8:
m_Texture: {fileID: 2800000, guid: e1301069de86bdd439c7a3182ed21c3c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Texture2D_CC12F70E:
m_Texture: {fileID: 2800000, guid: e1301069de86bdd439c7a3182ed21c3c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- BOOLEAN_537AC313: 0
- BOOLEAN_765B4C2: 0
- BOOLEAN_A060AF44: 1
- BOOLEAN_EC1EAD31: 1
- Boolean_2918AA79: 0
- Vector1_20DB7652: 0.157
- Vector1_301E02E2: 200
- Vector1_31894ABB: 0.0485
- Vector1_45F25267: 1.87
- Vector1_7AF1AC78: 0.97
- Vector1_854A7D8C: 0.9
- Vector1_9C73072A: 0.04
- Vector1_A524D234: 0.288
- Vector1_B9CC1720: 0.0319
- Vector1_E71BB35E: 1
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueControl: 0
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_1139F668: {r: 0, g: 0.6439421, b: 0.9921569, a: 0.38431373}
- Color_198818EE: {r: 0.341151, g: 0.5477178, b: 0.9245283, a: 0.8862745}
- Color_626750DD: {r: 2, g: 2, b: 2, a: 1}
- Color_77A2EDE9: {r: 32, g: 32, b: 32, a: 1}
- Vector2_1E1B6943: {r: 0.1, g: 0.5, b: 0, a: 0}
- Vector2_D06E76BC: {r: 0.1, g: 0.05, b: 0, a: 0}
- Vector2_D26C9C89: {r: 0.03, g: 0, b: 0, a: 0}
- Vector2_F678228C: {r: 0.5, g: 0.5, b: 0, a: 0}
- _BaseColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &5467701122665808439
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: 7

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fcb5c572ad55aa344a9c96c88125783d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,144 @@
%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: Toon Water Mobile Fast
m_Shader: {fileID: -6465566751694194690, guid: 550017bf155e702489e4eee4d320ebeb,
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: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- Texture2D_662AC62F:
m_Texture: {fileID: 2800000, guid: e0e8561a19db1b841b346944d8b13461, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Texture2D_A0A6C9A8:
m_Texture: {fileID: 2800000, guid: e1301069de86bdd439c7a3182ed21c3c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- Texture2D_CC12F70E:
m_Texture: {fileID: 2800000, guid: e1301069de86bdd439c7a3182ed21c3c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- BOOLEAN_537AC313: 0
- BOOLEAN_765B4C2: 0
- BOOLEAN_A060AF44: 0
- BOOLEAN_EC1EAD31: 0
- Boolean_2918AA79: 0
- Vector1_20DB7652: 0.157
- Vector1_301E02E2: 200
- Vector1_31894ABB: 0.0485
- Vector1_45F25267: 2.36
- Vector1_7AF1AC78: 0.964
- Vector1_854A7D8C: 0.9
- Vector1_9C73072A: 0
- Vector1_A524D234: 0.288
- Vector1_B9CC1720: 0.0319
- Vector1_E71BB35E: 1
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueControl: 0
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_1139F668: {r: 0, g: 0.5380234, b: 0.83, a: 0.5803922}
- Color_198818EE: {r: 0.35279235, g: 0.9320378, b: 0.95699996, a: 0.9490196}
- Color_626750DD: {r: 2, g: 2, b: 2, a: 1}
- Color_77A2EDE9: {r: 0.8947124, g: 0.8947124, b: 0.8947124, a: 1}
- Vector2_1E1B6943: {r: 0.1, g: 0.5, b: 0, a: 0}
- Vector2_D06E76BC: {r: 0.1, g: 0.05, b: 0, a: 0}
- Vector2_D26C9C89: {r: 0.03, g: 0, b: 0, a: 0}
- Vector2_F678228C: {r: 0.5, g: 0.5, b: 0, a: 0}
- _BaseColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &5467701122665808439
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: 7

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 55f390690595b254a8b3b62572a4b830
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 550017bf155e702489e4eee4d320ebeb
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

View File

@ -0,0 +1,71 @@
Hello, thank you for purchasing my asset!
If you have questions or problems please let me know at piotrtplaystore@gmail.com
If you like my asset don't forget to write a review it helps me and my future customers a lot :)!
Setup for mobile & normal version of the shader:
I) Make sure you have URP version at least 7.2.1 (it will work on older version but shadow problem can occur when using cascades) to do so:
1. Go to Package Manager
2. Search for Universal RP on the list
3. If your version if under 7.2.1:
- Click on Universal RP
- Click the arrow on the left side to show more options
- Click on the newer version number that just showed
- Click 'Update to <version_you_selected>' on the right side under description of package
II) Now we have to make sure that depth texture and opaque texture option (only if you use refraction) is enabled:
1. Go to your URP settings files (usually they should be in the folder called Settings folder in the Project inspector)
2. In every settings file (UniversalRP-HighQuality, UniversalRP-LowQuality, UniversalRP-MediumQuality)
make sure the option called Depth Texture and option called Opaque Texture is checked (you can leave the second setting disabled if don't want refractions)
3. When you enabled the Opaque Texture option you can see you can choose Opaque Downsampling option 4x Bilinear is the fastest but will result in pixelated refractions,
None is the slowest but will make refractions look the best. Setting this option is up to you and your performance preferences.
IIIA) If you want to use Planar Reflections:
1. Select your scene camera
2. Add script called "Planar Reflections Renderer" to the camera
3. Remember this effect is resources intense (this option renders again everything above water surface) play around with settings in Planar Reflections Renderer to get better performance
4. To make the reflection of the water visible Fresnel Power parameter must be above 0!
IIIB) If you don't want to use Planar Reflections:
1. MAKE SURE THE PARAMETER Reflection Visibility IN WATER MATERIAL YOU'RE USING IS SET TO 0 TO AVOID ARTIFACTS!
IV) Create material or apply premade by me Toon Water Material to surface that should be water in your scene!
V) Done I hope you will like my asset. Remember to write me an email if you have any problems.
When using ORTHOGRAPHIC CAMERA and mobile version of the shader be sure to check the option called Using Orthographic Camera in your material!!!!
When using the mobile version:
The Mobile version of the shader is designed to give you the ability to control what features of the shader are enabled/disabled here are available options:
-Stylized Specular Enabled - decide if you want to use stylized specular or unity build in, leaving this option disabled will give you a performance boost
-Refraction Enabled - performance heavy option if enabled, if this option is enabled you have to have opaque texture option enabled!!
-Using Orthographic Camera - to squeeze out every performance bit I could you have to switch from perspective to orthographic mode manually
-Use Normal Texture - performance heavy option if enabled, should surface of water be flat or have waves?
What mobile version lacks compared to normal:
-Support for stylized specular for point lights
-Procedurally generated foam & normals, mobile version uses textures
-Automatic switch from orthographic to perspective, in the mobile version you have to click the checkbox manually in material inspector
-Fresnel effect
-Planar reflections
Useful pieces of information:
- When Fresnel Power is set to 0 it means Fresnel effect and Planar Reflections are disabled
- To control the transparency of the water use alpha values of Shallow and Deep watercolor
- Specular Edges Smoothness Factor - is used to smooth out the edges of toon specular highlight however setting this value too big will make your highlight look not sharp
- Use Refraction In Depth Based Water Color - decide whether depth gradient should also wave or be static
How to setup postprocessing volume for simple underwater effects:
If you don't want to set up the volume from scratch please look up how it's done in the demo scene (you can find it here Pool 1 or Pool 2 -> Underwater Effect Post-process Volume), you can copy it and paste it into your scene and only adjust box volume dimensions and position.
I) Right mouse click on objects tree Volume -> Box Volume
II) Click on the newly created object and adjust its settings:
-Mode - Local
-Blend Distance - I would suggest 0.1 but you can try other values
-Weight - 1
-Priority - 2 or higher
-Profile - create your own profile or made premade one called "Underwater Effect Post-process Profile
III) Adjust position and size using scale tool of your Box volume created in point I) to be just under your water plane.
IV) Experiment with post-processing Profile effects to get the effect you're looking for.

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 125d04314ee3dd249980e5f70ea57b32
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -0,0 +1,302 @@
using System;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
[ExecuteAlways]
public class PlanarReflectionsRenderer : MonoBehaviour
{
/// <summary>
/// Global Vars
/// </summary>
[Tooltip("Select the resolution of reflection texture relative to screen resolution. Full means the best reflection quality but the worst performance. You should keep this setting set to Quarter or Third to get the best performance.")]
public ResolutionScales ResolutionScale = ResolutionScales.Half;
[Tooltip("Skip every n frame to gain performance. For example this setting set to EverySecondFrame will make refelction render with half the fps of your game. However setting to anything over NoSkipFrame creates effect where objects are a bit off their position when changing camera position/rotation.")]
public SkipFrames SkipEveryNFrame = SkipFrames.NoSkipFrame;
[Tooltip("Always make sure water layer is deselected (and your water plane is assigned to water layer)! Which layers of objects should we relfect? Usefull to skip in rendering f.e. small obejcts and make rendering reflections faster.")]
public LayerMask LayersToReflect = -1;
[Tooltip("Render objects in reflection texture with shadows? Usually you want to turn it off because it's hard to notice that there is lack of shadows in reflections.")]
public bool RenderWithShadows = false;
[Tooltip("Select to use occlusion culling when rendering objects to reflection texture. If you see some artifacts disable this option.")]
public bool RenderWithOcclusionCulling = true;
[Tooltip("Water plane")]
public GameObject WaterPlane;
[Tooltip("Offset reflection rendering to fix artifacts at geometry borders")]
public float ClipPlaneOffset = 0.03f;
[Tooltip("Which renderer should this script use to render reflections texture? If you are not using any custom post processing/rendering with render features you probably want to leave it set to 0.")]
public int CameraRendererIndex = 0;
[Serializable]
public enum ResolutionScales
{
Full,
Half,
Third,
Quarter
}
[Serializable]
public enum SkipFrames
{
NoSkipFrame,
EverySecondFrame,
EveryThirdFrame,
EveryFourthFrame
}
//local vars
private Camera reflectionCamera;
private RenderTexture reflectionTexture;
private int reflectionTextureId = Shader.PropertyToID("_WaterReflectionTexture");
//quality settings
private bool fogBeforeReflections;
private int maxLodBeforeReflections;
private float lodBiasBeforeReflections;
private int currentFrame = 0;
private void OnEnable()
{
RenderPipelineManager.beginCameraRendering += RenderReflections;
}
private void Cleanup()
{
RenderPipelineManager.beginCameraRendering -= RenderReflections;
if(reflectionCamera)
{
reflectionCamera.targetTexture = null;
if(Application.isEditor)
{
DestroyImmediate(reflectionCamera.gameObject);
} else
{
Destroy(reflectionCamera.gameObject);
}
}
if(reflectionTexture)
{
RenderTexture.ReleaseTemporary(reflectionTexture);
}
}
private void OnDisable()
{
Cleanup();
}
private void OnDestroy()
{
Cleanup();
}
private void UpdateCamera(Camera src, Camera dest)
{
if(dest == null)
return;
//copy normal camera settings
dest.CopyFrom(src);
//update occlusion culling and shadows rendering setting
dest.useOcclusionCulling = RenderWithOcclusionCulling;
UniversalAdditionalCameraData data = dest.gameObject.GetComponent<UniversalAdditionalCameraData>();
if(data != null)
{
data.renderShadows = RenderWithShadows;
}
}
private void UpdateReflectionCamera(Camera realCamera)
{
//check if we allready created reflection camera
if(reflectionCamera == null)
{
reflectionCamera = CreateReflectionCamera();
}
//get water plane informations
Vector3 planePosition = new Vector3(0, 0, 0);
Vector3 planeNormal = new Vector3(0, 1, 0);
if(WaterPlane != null)
{
planeNormal = WaterPlane.transform.up;
planePosition = WaterPlane.transform.position;
}
else
{
Debug.LogWarning("(Toon Water URP) Please attach water plane game object!");
}
UpdateCamera(realCamera, reflectionCamera);
float w = -Vector3.Dot(planeNormal, planePosition) - ClipPlaneOffset;
Vector4 reflectionPlane = new Vector4(planeNormal.x, planeNormal.y, planeNormal.z, w);
Matrix4x4 reflection = Matrix4x4.identity;
reflection *= Matrix4x4.Scale(new Vector3(1, -1, 1));
CalculateReflectionMatrix(ref reflection, reflectionPlane);
Vector3 oldPosition = realCamera.transform.position - new Vector3(0, planePosition.y * 2, 0);
Vector3 newPosition = new Vector3(oldPosition.x, -oldPosition.y, oldPosition.z);
reflectionCamera.transform.forward = Vector3.Scale(realCamera.transform.forward, new Vector3(1, -1, 1));
reflectionCamera.worldToCameraMatrix = realCamera.worldToCameraMatrix * reflection;
//calculate clip plane and projection matrix for reflection camera
Vector4 clipPlane = WorldToCameraSpacePlane(reflectionCamera, planePosition - Vector3.up * 0.1f, planeNormal, 1.0f);
Matrix4x4 projection = realCamera.CalculateObliqueMatrix(clipPlane);
reflectionCamera.projectionMatrix = projection;
reflectionCamera.cullingMask = LayersToReflect;
reflectionCamera.transform.position = newPosition;
}
private Camera CreateReflectionCamera()
{
GameObject go = new GameObject("Planar Reflections Camera", typeof(Camera));
UniversalAdditionalCameraData cameraData = go.AddComponent<UniversalAdditionalCameraData>();
cameraData.requiresColorOption = CameraOverrideOption.Off;
cameraData.requiresDepthOption = CameraOverrideOption.Off;
cameraData.SetRenderer(CameraRendererIndex);
Camera reflectionCamera = go.GetComponent<Camera>();
reflectionCamera.transform.SetPositionAndRotation(transform.position, transform.rotation);
reflectionCamera.depth = -5;
reflectionCamera.enabled = false;
go.hideFlags = HideFlags.HideAndDontSave;
return reflectionCamera;
}
private Vector4 WorldToCameraSpacePlane(Camera cam, Vector3 pos, Vector3 normal, float sideSign)
{
Vector3 offsetPos = pos + normal * ClipPlaneOffset;
Matrix4x4 m = cam.worldToCameraMatrix;
Vector3 cameraPosition = m.MultiplyPoint(offsetPos);
Vector3 cameraNormal = m.MultiplyVector(normal).normalized * sideSign;
return new Vector4(cameraNormal.x, cameraNormal.y, cameraNormal.z, -Vector3.Dot(cameraPosition, cameraNormal));
}
private void CreatePlanarReflectionTexture(Camera cam)
{
//check if user changed render texture resolution if so destroy the texture and immediately create new one wih proper properties
Vector2 textureRes = new Vector2((int) (cam.pixelWidth * UniversalRenderPipeline.asset.renderScale * GetScaleValue()), (int) (cam.pixelHeight * UniversalRenderPipeline.asset.renderScale * GetScaleValue()));
if(reflectionTexture != null && (reflectionTexture.width != textureRes.x || reflectionTexture.height != textureRes.y))
{
RenderTexture.ReleaseTemporary(reflectionTexture);
reflectionTexture = null;
}
if(reflectionTexture == null)
{
RenderTextureFormat format = RenderTextureFormat.DefaultHDR;
reflectionTexture = RenderTexture.GetTemporary((int) textureRes.x, (int) textureRes.y, 16, format);
}
reflectionCamera.targetTexture = reflectionTexture;
}
private void RenderReflections(ScriptableRenderContext context, Camera camera)
{
if(camera.cameraType == CameraType.Reflection || camera.cameraType == CameraType.Preview)
return;
currentFrame++;
if(currentFrame % GetSkipFrameValue() != 0)
return;
UpdateReflectionCamera(camera);
CreatePlanarReflectionTexture(camera);
//remember current quality settings
fogBeforeReflections = RenderSettings.fog;
maxLodBeforeReflections = QualitySettings.maximumLODLevel;
lodBiasBeforeReflections = QualitySettings.lodBias;
//change quality settings to lower
GL.invertCulling = true;
RenderSettings.fog = false;
QualitySettings.maximumLODLevel = 1;
QualitySettings.lodBias = lodBiasBeforeReflections * 0.5f;
//render
UniversalRenderPipeline.RenderSingleCamera(context, reflectionCamera);
//restore quality settings
GL.invertCulling = false;
RenderSettings.fog = fogBeforeReflections;
QualitySettings.maximumLODLevel = maxLodBeforeReflections;
QualitySettings.lodBias = lodBiasBeforeReflections;
//make reflection texture global and accessible in every shader
Shader.SetGlobalTexture(reflectionTextureId, reflectionTexture);
}
private static void CalculateReflectionMatrix(ref Matrix4x4 reflectionMat, Vector4 plane)
{
reflectionMat.m00 = (1F - 2F * plane[0] * plane[0]);
reflectionMat.m01 = (-2F * plane[0] * plane[1]);
reflectionMat.m02 = (-2F * plane[0] * plane[2]);
reflectionMat.m03 = (-2F * plane[3] * plane[0]);
reflectionMat.m10 = (-2F * plane[1] * plane[0]);
reflectionMat.m11 = (1F - 2F * plane[1] * plane[1]);
reflectionMat.m12 = (-2F * plane[1] * plane[2]);
reflectionMat.m13 = (-2F * plane[3] * plane[1]);
reflectionMat.m20 = (-2F * plane[2] * plane[0]);
reflectionMat.m21 = (-2F * plane[2] * plane[1]);
reflectionMat.m22 = (1F - 2F * plane[2] * plane[2]);
reflectionMat.m23 = (-2F * plane[3] * plane[2]);
reflectionMat.m30 = 0F;
reflectionMat.m31 = 0F;
reflectionMat.m32 = 0F;
reflectionMat.m33 = 1F;
}
private float GetScaleValue()
{
switch(ResolutionScale)
{
case ResolutionScales.Full:
return 1f;
case ResolutionScales.Half:
return 0.5f;
case ResolutionScales.Third:
return 0.33f;
case ResolutionScales.Quarter:
return 0.25f;
default:
return 0.5f;
}
}
private int GetSkipFrameValue()
{
switch(SkipEveryNFrame)
{
case SkipFrames.NoSkipFrame:
return 1;
case SkipFrames.EverySecondFrame:
return 2;
case SkipFrames.EveryThirdFrame:
return 3;
case SkipFrames.EveryFourthFrame:
return 4;
default:
return 1;
}
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: dfb71eb648aba474d9ba2aaf08329734
guid: 75a8021c471602c4192ef34d5585c2f6
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -0,0 +1,135 @@
%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: Toon Water Material 1
m_Shader: {fileID: -6465566751694194690, guid: b4a6b41e114133b4d8eb40ab1d879de6,
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: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- Texture2D_821B987A:
m_Texture: {fileID: 2800000, guid: ce0b76e65ef10314d9f55a9dd2284336, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- Boolean_2918AA79: 0
- Vector1_20DB7652: 0.158
- Vector1_24CAEF48: 1
- Vector1_301E02E2: 240
- Vector1_31894ABB: 0.0158
- Vector1_3632ABA2: 0
- Vector1_45F25267: 1.14
- Vector1_738B39CF: 0
- Vector1_854A7D8C: 0.51
- Vector1_9C73072A: 0.88
- Vector1_A524D234: 0
- Vector1_B9CC1720: 0.03
- Vector1_E4F66A0: 0.03
- Vector1_E71BB35E: 1.02
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueControl: -1
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_1139F668: {r: 0.22241013, g: 0.80931354, b: 0.9622642, a: 0.5254902}
- Color_198818EE: {r: 0, g: 0.37919012, b: 1.498, a: 1}
- Color_626750DD: {r: 2, g: 2, b: 2, a: 1}
- Color_77A2EDE9: {r: 31.626795, g: 31.626795, b: 31.626795, a: 1}
- Vector2_1E1B6943: {r: 1, g: 5, b: 0, a: 0}
- Vector2_D06E76BC: {r: 0.1, g: 0.05, b: 0, a: 0}
- Vector2_D26C9C89: {r: 1, g: 0, b: 0, a: 0}
- Vector2_F678228C: {r: 0.5, g: 0.5, b: 0, a: 0}
- _BaseColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &3896513066879331790
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: 7

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ef0bcc66005b5d94aab1eb245b58547d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,136 @@
%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: Toon Water Material 2
m_Shader: {fileID: -6465566751694194690, guid: b4a6b41e114133b4d8eb40ab1d879de6,
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: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- Texture2D_821B987A:
m_Texture: {fileID: 2800000, guid: ce0b76e65ef10314d9f55a9dd2284336, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- Boolean_2918AA79: 0
- Vector1_20DB7652: 0.045
- Vector1_24CAEF48: 1
- Vector1_301E02E2: 512
- Vector1_31894ABB: 0.0066
- Vector1_3632ABA2: 0.754
- Vector1_45F25267: 2.6
- Vector1_738B39CF: 0.018
- Vector1_854A7D8C: 0.56
- Vector1_9C73072A: 2.82
- Vector1_A524D234: 0.705
- Vector1_B9CC1720: 0.031
- Vector1_E4F66A0: 0.03
- Vector1_E53063CA: 0
- Vector1_E71BB35E: 1.16
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueControl: -1
- _QueueOffset: 0
- _ReceiveShadows: 0
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_1139F668: {r: 1, g: 1, b: 1, a: 0.21176471}
- Color_198818EE: {r: 0, g: 1.2057794, b: 1.498, a: 0.16470589}
- Color_626750DD: {r: 2, g: 2, b: 2, a: 1}
- Color_77A2EDE9: {r: 31.626795, g: 31.626795, b: 31.626795, a: 1}
- Vector2_1E1B6943: {r: 1, g: 5, b: 0, a: 0}
- Vector2_D06E76BC: {r: 0.1, g: 0.05, b: 0, a: 0}
- Vector2_D26C9C89: {r: 1, g: 0, b: 0, a: 0}
- Vector2_F678228C: {r: 0.5, g: 0.5, b: 0, a: 0}
- _BaseColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &3896513066879331790
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: 7

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c8e3b30ba3868c349abdbf4f99bd4bf2
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,135 @@
%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: Toon Water Material 3
m_Shader: {fileID: -6465566751694194690, guid: b4a6b41e114133b4d8eb40ab1d879de6,
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: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- Texture2D_821B987A:
m_Texture: {fileID: 2800000, guid: ce0b76e65ef10314d9f55a9dd2284336, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- Boolean_2918AA79: 1
- Vector1_20DB7652: 0.261
- Vector1_24CAEF48: 1
- Vector1_301E02E2: 240
- Vector1_31894ABB: 0.009
- Vector1_3632ABA2: 0
- Vector1_45F25267: 1.14
- Vector1_738B39CF: 0
- Vector1_854A7D8C: 0.93
- Vector1_9C73072A: 0.97
- Vector1_A524D234: 0
- Vector1_B9CC1720: 0.03
- Vector1_E4F66A0: 0.03
- Vector1_E71BB35E: 1.02
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueControl: -1
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_1139F668: {r: 0.25143114, g: 1.7815307, b: 2.1828797, a: 1}
- Color_198818EE: {r: 0, g: 0.34509805, b: 1.4980392, a: 0.92156863}
- Color_626750DD: {r: 2, g: 2, b: 2, a: 1}
- Color_77A2EDE9: {r: 31.626795, g: 31.626795, b: 31.626795, a: 1}
- Vector2_1E1B6943: {r: 1, g: 5, b: 0, a: 0}
- Vector2_D06E76BC: {r: 0.1, g: 0.05, b: 0, a: 0}
- Vector2_D26C9C89: {r: 1, g: 0, b: 0, a: 0}
- Vector2_F678228C: {r: 0.5, g: 0.5, b: 0, a: 0}
- _BaseColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &3896513066879331790
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: 7

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7b185aaf7e6e5b544938d7a57979d004
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: b4a6b41e114133b4d8eb40ab1d879de6
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

View File

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

View File

@ -0,0 +1,202 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-4927358332145770464
MonoBehaviour:
m_ObjectHideFlags: 3
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: 899c54efeace73346a0a16faa3afe726, type: 3}
m_Name: Vignette
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
color:
m_OverrideState: 1
m_Value: {r: 0, g: 0, b: 0, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 1
center:
m_OverrideState: 1
m_Value: {x: 0.5, y: 0.5}
intensity:
m_OverrideState: 1
m_Value: 0.469
min: 0
max: 1
smoothness:
m_OverrideState: 1
m_Value: 0.2
min: 0.01
max: 1
rounded:
m_OverrideState: 1
m_Value: 0
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3}
m_Name: Underwater Effect Post-process Volume Profile
m_EditorClassIdentifier:
components:
- {fileID: 537168572449233485}
- {fileID: 5919610972366018390}
- {fileID: 6169369685509007495}
- {fileID: -4927358332145770464}
--- !u!114 &537168572449233485
MonoBehaviour:
m_ObjectHideFlags: 3
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: 0b2db86121404754db890f4c8dfe81b2, type: 3}
m_Name: Bloom
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
threshold:
m_OverrideState: 1
m_Value: 0.66
min: 0
intensity:
m_OverrideState: 1
m_Value: 7.2
min: 0
scatter:
m_OverrideState: 1
m_Value: 0.879
min: 0
max: 1
clamp:
m_OverrideState: 0
m_Value: 65472
min: 0
tint:
m_OverrideState: 0
m_Value: {r: 1, g: 1, b: 1, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 1
highQualityFiltering:
m_OverrideState: 0
m_Value: 0
dirtTexture:
m_OverrideState: 0
m_Value: {fileID: 0}
dirtIntensity:
m_OverrideState: 0
m_Value: 0
min: 0
--- !u!114 &5919610972366018390
MonoBehaviour:
m_ObjectHideFlags: 3
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: 66f335fb1ffd8684294ad653bf1c7564, type: 3}
m_Name: ColorAdjustments
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
postExposure:
m_OverrideState: 0
m_Value: 0.11
contrast:
m_OverrideState: 1
m_Value: 0
min: -100
max: 100
colorFilter:
m_OverrideState: 1
m_Value: {r: 0.28515485, g: 0.6252603, b: 0.6792453, a: 1}
hdr: 1
showAlpha: 0
showEyeDropper: 1
hueShift:
m_OverrideState: 0
m_Value: -28
min: -180
max: 180
saturation:
m_OverrideState: 1
m_Value: -5.3
min: -100
max: 100
--- !u!114 &6169369685509007495
MonoBehaviour:
m_ObjectHideFlags: 3
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: c01700fd266d6914ababb731e09af2eb, type: 3}
m_Name: DepthOfField
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
mode:
m_OverrideState: 1
m_Value: 2
gaussianStart:
m_OverrideState: 1
m_Value: 6.17
min: 0
gaussianEnd:
m_OverrideState: 1
m_Value: 5.96
min: 0
gaussianMaxRadius:
m_OverrideState: 1
m_Value: 1.5
min: 0.5
max: 1.5
highQualitySampling:
m_OverrideState: 1
m_Value: 0
focusDistance:
m_OverrideState: 1
m_Value: 1.13
min: 0.1
aperture:
m_OverrideState: 1
m_Value: 1.55
min: 1
max: 32
focalLength:
m_OverrideState: 1
m_Value: 52.8
min: 1
max: 300
bladeCount:
m_OverrideState: 1
m_Value: 4
min: 3
max: 9
bladeCurvature:
m_OverrideState: 1
m_Value: 0.923
min: 0
max: 1
bladeRotation:
m_OverrideState: 1
m_Value: 12
min: -180
max: 180

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b0e106752d7e2a3478dca9512273649e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -8,7 +8,7 @@
"com.unity.ide.rider": "3.0.24",
"com.unity.ide.visualstudio": "2.0.18",
"com.unity.ide.vscode": "1.2.5",
"com.unity.inputsystem": "1.6.1",
"com.unity.inputsystem": "1.6.3",
"com.unity.postprocessing": "3.2.2",
"com.unity.render-pipelines.universal": "14.0.8",
"com.unity.test-framework": "1.1.33",

View File

@ -200,7 +200,7 @@
"url": "https://packages.unity.com"
},
"com.unity.inputsystem": {
"version": "1.6.1",
"version": "1.6.3",
"depth": 0,
"source": "registry",
"dependencies": {