├── .gitignore ├── 20190730_cutscreenshader.gif ├── Assets ├── JfranMora.meta └── JfranMora │ ├── CutScreen - Example.meta │ ├── CutScreen - Example │ ├── BBC-Test-Card-F.png │ ├── BBC-Test-Card-F.png.meta │ ├── CutFXTester.cs │ ├── CutFXTester.cs.meta │ ├── CutScreenExample.unity │ ├── CutScreenExample.unity.meta │ ├── CutScreenExample_Profiles.meta │ └── CutScreenExample_Profiles │ │ ├── CutScreenVolume Profile.asset │ │ └── CutScreenVolume Profile.asset.meta │ ├── CutScreen.meta │ └── CutScreen │ ├── Runtime.meta │ ├── Runtime │ ├── Effects.meta │ └── Effects │ │ ├── CutScreen.cs │ │ └── CutScreen.cs.meta │ ├── Scripts.meta │ ├── Scripts │ ├── CutScreenFX.cs │ └── CutScreenFX.cs.meta │ ├── Shaders.meta │ └── Shaders │ ├── CutScreen.shader │ └── CutScreen.shader.meta ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset └── XRSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Mm]emoryCaptures/ 12 | 13 | # Never ignore Asset meta data 14 | !/[Aa]ssets/**/*.meta 15 | 16 | # Uncomment this line if you wish to ignore the asset store tools plugin 17 | # /[Aa]ssets/AssetStoreTools* 18 | 19 | # TextMesh Pro files 20 | [Aa]ssets/TextMesh*Pro/ 21 | 22 | # Autogenerated Jetbrains Rider plugin 23 | [Aa]ssets/Plugins/Editor/JetBrains* 24 | 25 | # Visual Studio cache directory 26 | .vs/ 27 | 28 | # Gradle cache directory 29 | .gradle/ 30 | 31 | # Autogenerated VS/MD/Consulo solution and project files 32 | ExportedObj/ 33 | .consulo/ 34 | *.csproj 35 | *.unityproj 36 | *.sln 37 | *.suo 38 | *.tmp 39 | *.user 40 | *.userprefs 41 | *.pidb 42 | *.booproj 43 | *.svd 44 | *.pdb 45 | *.mdb 46 | *.opendb 47 | *.VC.db 48 | 49 | # Unity3D generated meta files 50 | *.pidb.meta 51 | *.pdb.meta 52 | *.mdb.meta 53 | 54 | # Unity3D generated file on crash reports 55 | sysinfo.txt 56 | 57 | # Builds 58 | *.apk 59 | *.unitypackage 60 | 61 | # Crashlytics generated file 62 | crashlytics-build.properties 63 | 64 | -------------------------------------------------------------------------------- /20190730_cutscreenshader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfranmora/unity-postprocessing-cut-screen-shader/12b5ea656ea0fde894634562c817f18a46b878cb/20190730_cutscreenshader.gif -------------------------------------------------------------------------------- /Assets/JfranMora.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cae6132bba0932d4a9a66bdd1fbd9048 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen - Example.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62fc3d56b48d48445a477afdf5d51362 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen - Example/BBC-Test-Card-F.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jfranmora/unity-postprocessing-cut-screen-shader/12b5ea656ea0fde894634562c817f18a46b878cb/Assets/JfranMora/CutScreen - Example/BBC-Test-Card-F.png -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen - Example/BBC-Test-Card-F.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b04cc081618f7554cb326a8b2471c7dd 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | spriteSheet: 84 | serializedVersion: 2 85 | sprites: [] 86 | outline: [] 87 | physicsShape: [] 88 | bones: [] 89 | spriteID: 90 | internalID: 0 91 | vertices: [] 92 | indices: 93 | edges: [] 94 | weights: [] 95 | secondaryTextures: [] 96 | spritePackingTag: 97 | pSDRemoveMatte: 0 98 | pSDShowRemoveMatteOption: 0 99 | userData: 100 | assetBundleName: 101 | assetBundleVariant: 102 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen - Example/CutFXTester.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace JfranMora 4 | { 5 | public class CutFXTester : MonoBehaviour 6 | { 7 | Vector2 lastMousePos; 8 | Vector2 lastScreenPos; 9 | 10 | void Update() 11 | { 12 | Vector2 screenPos = Camera.main.ScreenToViewportPoint(Input.mousePosition); 13 | var direction = (screenPos - lastScreenPos).normalized; 14 | 15 | if (Input.GetMouseButtonDown(0)) 16 | { 17 | FindObjectOfType().DoFX(screenPos, direction); 18 | } 19 | 20 | lastScreenPos = screenPos; 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen - Example/CutFXTester.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 522116dd30e1f1d4aac202eb43512344 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen - Example/CutScreenExample.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 705507994} 41 | m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 0 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &351091665 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 351091669} 132 | - component: {fileID: 351091668} 133 | - component: {fileID: 351091667} 134 | - component: {fileID: 351091666} 135 | m_Layer: 5 136 | m_Name: Canvas 137 | m_TagString: Untagged 138 | m_Icon: {fileID: 0} 139 | m_NavMeshLayer: 0 140 | m_StaticEditorFlags: 0 141 | m_IsActive: 1 142 | --- !u!114 &351091666 143 | MonoBehaviour: 144 | m_ObjectHideFlags: 0 145 | m_CorrespondingSourceObject: {fileID: 0} 146 | m_PrefabInstance: {fileID: 0} 147 | m_PrefabAsset: {fileID: 0} 148 | m_GameObject: {fileID: 351091665} 149 | m_Enabled: 1 150 | m_EditorHideFlags: 0 151 | m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} 152 | m_Name: 153 | m_EditorClassIdentifier: 154 | m_IgnoreReversedGraphics: 1 155 | m_BlockingObjects: 0 156 | m_BlockingMask: 157 | serializedVersion: 2 158 | m_Bits: 4294967295 159 | --- !u!114 &351091667 160 | MonoBehaviour: 161 | m_ObjectHideFlags: 0 162 | m_CorrespondingSourceObject: {fileID: 0} 163 | m_PrefabInstance: {fileID: 0} 164 | m_PrefabAsset: {fileID: 0} 165 | m_GameObject: {fileID: 351091665} 166 | m_Enabled: 1 167 | m_EditorHideFlags: 0 168 | m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} 169 | m_Name: 170 | m_EditorClassIdentifier: 171 | m_UiScaleMode: 0 172 | m_ReferencePixelsPerUnit: 100 173 | m_ScaleFactor: 1 174 | m_ReferenceResolution: {x: 800, y: 600} 175 | m_ScreenMatchMode: 0 176 | m_MatchWidthOrHeight: 0 177 | m_PhysicalUnit: 3 178 | m_FallbackScreenDPI: 96 179 | m_DefaultSpriteDPI: 96 180 | m_DynamicPixelsPerUnit: 1 181 | --- !u!223 &351091668 182 | Canvas: 183 | m_ObjectHideFlags: 0 184 | m_CorrespondingSourceObject: {fileID: 0} 185 | m_PrefabInstance: {fileID: 0} 186 | m_PrefabAsset: {fileID: 0} 187 | m_GameObject: {fileID: 351091665} 188 | m_Enabled: 1 189 | serializedVersion: 3 190 | m_RenderMode: 1 191 | m_Camera: {fileID: 963194227} 192 | m_PlaneDistance: 100 193 | m_PixelPerfect: 0 194 | m_ReceivesEvents: 1 195 | m_OverrideSorting: 0 196 | m_OverridePixelPerfect: 0 197 | m_SortingBucketNormalizedSize: 0 198 | m_AdditionalShaderChannelsFlag: 0 199 | m_SortingLayerID: 0 200 | m_SortingOrder: 0 201 | m_TargetDisplay: 0 202 | --- !u!224 &351091669 203 | RectTransform: 204 | m_ObjectHideFlags: 0 205 | m_CorrespondingSourceObject: {fileID: 0} 206 | m_PrefabInstance: {fileID: 0} 207 | m_PrefabAsset: {fileID: 0} 208 | m_GameObject: {fileID: 351091665} 209 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 210 | m_LocalPosition: {x: 0, y: 0, z: 0} 211 | m_LocalScale: {x: 0, y: 0, z: 0} 212 | m_Children: 213 | - {fileID: 1801929652} 214 | m_Father: {fileID: 0} 215 | m_RootOrder: 3 216 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 217 | m_AnchorMin: {x: 0, y: 0} 218 | m_AnchorMax: {x: 0, y: 0} 219 | m_AnchoredPosition: {x: 0, y: 0} 220 | m_SizeDelta: {x: 0, y: 0} 221 | m_Pivot: {x: 0, y: 0} 222 | --- !u!1 &574879225 223 | GameObject: 224 | m_ObjectHideFlags: 0 225 | m_CorrespondingSourceObject: {fileID: 0} 226 | m_PrefabInstance: {fileID: 0} 227 | m_PrefabAsset: {fileID: 0} 228 | serializedVersion: 6 229 | m_Component: 230 | - component: {fileID: 574879226} 231 | - component: {fileID: 574879228} 232 | - component: {fileID: 574879227} 233 | m_Layer: 31 234 | m_Name: CutScreenVolume 235 | m_TagString: Untagged 236 | m_Icon: {fileID: 0} 237 | m_NavMeshLayer: 0 238 | m_StaticEditorFlags: 0 239 | m_IsActive: 1 240 | --- !u!4 &574879226 241 | Transform: 242 | m_ObjectHideFlags: 0 243 | m_CorrespondingSourceObject: {fileID: 0} 244 | m_PrefabInstance: {fileID: 0} 245 | m_PrefabAsset: {fileID: 0} 246 | m_GameObject: {fileID: 574879225} 247 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 248 | m_LocalPosition: {x: 0, y: 0, z: 0} 249 | m_LocalScale: {x: 1, y: 1, z: 1} 250 | m_Children: [] 251 | m_Father: {fileID: 963194228} 252 | m_RootOrder: 0 253 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 254 | --- !u!114 &574879227 255 | MonoBehaviour: 256 | m_ObjectHideFlags: 0 257 | m_CorrespondingSourceObject: {fileID: 0} 258 | m_PrefabInstance: {fileID: 0} 259 | m_PrefabAsset: {fileID: 0} 260 | m_GameObject: {fileID: 574879225} 261 | m_Enabled: 1 262 | m_EditorHideFlags: 0 263 | m_Script: {fileID: 11500000, guid: 5d6177660a6f10e4f90501453b3d10f1, type: 3} 264 | m_Name: 265 | m_EditorClassIdentifier: 266 | curve: 267 | serializedVersion: 2 268 | m_Curve: 269 | - serializedVersion: 3 270 | time: -0.0025253296 271 | value: 1.0050659 272 | inSlope: 0 273 | outSlope: 0 274 | tangentMode: 0 275 | weightedMode: 0 276 | inWeight: 0.33333334 277 | outWeight: 0.33333334 278 | - serializedVersion: 3 279 | time: 0.19580542 280 | value: 0.9992057 281 | inSlope: 0.074041754 282 | outSlope: 0.074041754 283 | tangentMode: 0 284 | weightedMode: 0 285 | inWeight: 0.33333334 286 | outWeight: 0.33333334 287 | - serializedVersion: 3 288 | time: 0.37169954 289 | value: 1.0054554 290 | inSlope: 0.05722046 291 | outSlope: 0.05722046 292 | tangentMode: 0 293 | weightedMode: 0 294 | inWeight: 0.33333334 295 | outWeight: 0.33333334 296 | - serializedVersion: 3 297 | time: 0.6368797 298 | value: 1.0064046 299 | inSlope: -0.17656197 300 | outSlope: -0.17656197 301 | tangentMode: 0 302 | weightedMode: 0 303 | inWeight: 0.33333334 304 | outWeight: 0.33333334 305 | - serializedVersion: 3 306 | time: 0.9916687 307 | value: 0.006248474 308 | inSlope: 0 309 | outSlope: 0 310 | tangentMode: 0 311 | weightedMode: 0 312 | inWeight: 0.33333334 313 | outWeight: 0.33333334 314 | m_PreInfinity: 2 315 | m_PostInfinity: 2 316 | m_RotationOrder: 4 317 | fxDuration: 0.25 318 | volume: {fileID: 574879228} 319 | --- !u!114 &574879228 320 | MonoBehaviour: 321 | m_ObjectHideFlags: 0 322 | m_CorrespondingSourceObject: {fileID: 0} 323 | m_PrefabInstance: {fileID: 0} 324 | m_PrefabAsset: {fileID: 0} 325 | m_GameObject: {fileID: 574879225} 326 | m_Enabled: 1 327 | m_EditorHideFlags: 0 328 | m_Script: {fileID: 11500000, guid: 8b9a305e18de0c04dbd257a21cd47087, type: 3} 329 | m_Name: 330 | m_EditorClassIdentifier: 331 | sharedProfile: {fileID: 11400000, guid: 7346b3c0fa941c3499a7a019f3a03723, type: 2} 332 | isGlobal: 1 333 | blendDistance: 0 334 | weight: 1 335 | priority: 0 336 | --- !u!1 &705507993 337 | GameObject: 338 | m_ObjectHideFlags: 0 339 | m_CorrespondingSourceObject: {fileID: 0} 340 | m_PrefabInstance: {fileID: 0} 341 | m_PrefabAsset: {fileID: 0} 342 | serializedVersion: 6 343 | m_Component: 344 | - component: {fileID: 705507995} 345 | - component: {fileID: 705507994} 346 | m_Layer: 0 347 | m_Name: Directional Light 348 | m_TagString: Untagged 349 | m_Icon: {fileID: 0} 350 | m_NavMeshLayer: 0 351 | m_StaticEditorFlags: 0 352 | m_IsActive: 1 353 | --- !u!108 &705507994 354 | Light: 355 | m_ObjectHideFlags: 0 356 | m_CorrespondingSourceObject: {fileID: 0} 357 | m_PrefabInstance: {fileID: 0} 358 | m_PrefabAsset: {fileID: 0} 359 | m_GameObject: {fileID: 705507993} 360 | m_Enabled: 1 361 | serializedVersion: 9 362 | m_Type: 1 363 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 364 | m_Intensity: 1 365 | m_Range: 10 366 | m_SpotAngle: 30 367 | m_InnerSpotAngle: 21.80208 368 | m_CookieSize: 10 369 | m_Shadows: 370 | m_Type: 2 371 | m_Resolution: -1 372 | m_CustomResolution: -1 373 | m_Strength: 1 374 | m_Bias: 0.05 375 | m_NormalBias: 0.4 376 | m_NearPlane: 0.2 377 | m_CullingMatrixOverride: 378 | e00: 1 379 | e01: 0 380 | e02: 0 381 | e03: 0 382 | e10: 0 383 | e11: 1 384 | e12: 0 385 | e13: 0 386 | e20: 0 387 | e21: 0 388 | e22: 1 389 | e23: 0 390 | e30: 0 391 | e31: 0 392 | e32: 0 393 | e33: 1 394 | m_UseCullingMatrixOverride: 0 395 | m_Cookie: {fileID: 0} 396 | m_DrawHalo: 0 397 | m_Flare: {fileID: 0} 398 | m_RenderMode: 0 399 | m_CullingMask: 400 | serializedVersion: 2 401 | m_Bits: 4294967295 402 | m_RenderingLayerMask: 1 403 | m_Lightmapping: 1 404 | m_LightShadowCasterMode: 0 405 | m_AreaSize: {x: 1, y: 1} 406 | m_BounceIntensity: 1 407 | m_ColorTemperature: 6570 408 | m_UseColorTemperature: 0 409 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 410 | m_UseBoundingSphereOverride: 0 411 | m_ShadowRadius: 0 412 | m_ShadowAngle: 0 413 | --- !u!4 &705507995 414 | Transform: 415 | m_ObjectHideFlags: 0 416 | m_CorrespondingSourceObject: {fileID: 0} 417 | m_PrefabInstance: {fileID: 0} 418 | m_PrefabAsset: {fileID: 0} 419 | m_GameObject: {fileID: 705507993} 420 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 421 | m_LocalPosition: {x: 0, y: 3, z: 0} 422 | m_LocalScale: {x: 1, y: 1, z: 1} 423 | m_Children: [] 424 | m_Father: {fileID: 0} 425 | m_RootOrder: 1 426 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 427 | --- !u!1 &742019855 428 | GameObject: 429 | m_ObjectHideFlags: 0 430 | m_CorrespondingSourceObject: {fileID: 0} 431 | m_PrefabInstance: {fileID: 0} 432 | m_PrefabAsset: {fileID: 0} 433 | serializedVersion: 6 434 | m_Component: 435 | - component: {fileID: 742019858} 436 | - component: {fileID: 742019857} 437 | - component: {fileID: 742019856} 438 | m_Layer: 0 439 | m_Name: EventSystem 440 | m_TagString: Untagged 441 | m_Icon: {fileID: 0} 442 | m_NavMeshLayer: 0 443 | m_StaticEditorFlags: 0 444 | m_IsActive: 1 445 | --- !u!114 &742019856 446 | MonoBehaviour: 447 | m_ObjectHideFlags: 0 448 | m_CorrespondingSourceObject: {fileID: 0} 449 | m_PrefabInstance: {fileID: 0} 450 | m_PrefabAsset: {fileID: 0} 451 | m_GameObject: {fileID: 742019855} 452 | m_Enabled: 1 453 | m_EditorHideFlags: 0 454 | m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} 455 | m_Name: 456 | m_EditorClassIdentifier: 457 | m_HorizontalAxis: Horizontal 458 | m_VerticalAxis: Vertical 459 | m_SubmitButton: Submit 460 | m_CancelButton: Cancel 461 | m_InputActionsPerSecond: 10 462 | m_RepeatDelay: 0.5 463 | m_ForceModuleActive: 0 464 | --- !u!114 &742019857 465 | MonoBehaviour: 466 | m_ObjectHideFlags: 0 467 | m_CorrespondingSourceObject: {fileID: 0} 468 | m_PrefabInstance: {fileID: 0} 469 | m_PrefabAsset: {fileID: 0} 470 | m_GameObject: {fileID: 742019855} 471 | m_Enabled: 1 472 | m_EditorHideFlags: 0 473 | m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} 474 | m_Name: 475 | m_EditorClassIdentifier: 476 | m_FirstSelected: {fileID: 0} 477 | m_sendNavigationEvents: 1 478 | m_DragThreshold: 10 479 | --- !u!4 &742019858 480 | Transform: 481 | m_ObjectHideFlags: 0 482 | m_CorrespondingSourceObject: {fileID: 0} 483 | m_PrefabInstance: {fileID: 0} 484 | m_PrefabAsset: {fileID: 0} 485 | m_GameObject: {fileID: 742019855} 486 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 487 | m_LocalPosition: {x: 0, y: 0, z: 0} 488 | m_LocalScale: {x: 1, y: 1, z: 1} 489 | m_Children: [] 490 | m_Father: {fileID: 0} 491 | m_RootOrder: 4 492 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 493 | --- !u!1 &953810703 494 | GameObject: 495 | m_ObjectHideFlags: 0 496 | m_CorrespondingSourceObject: {fileID: 0} 497 | m_PrefabInstance: {fileID: 0} 498 | m_PrefabAsset: {fileID: 0} 499 | serializedVersion: 6 500 | m_Component: 501 | - component: {fileID: 953810705} 502 | - component: {fileID: 953810704} 503 | m_Layer: 0 504 | m_Name: Tester 505 | m_TagString: Untagged 506 | m_Icon: {fileID: 0} 507 | m_NavMeshLayer: 0 508 | m_StaticEditorFlags: 0 509 | m_IsActive: 1 510 | --- !u!114 &953810704 511 | MonoBehaviour: 512 | m_ObjectHideFlags: 0 513 | m_CorrespondingSourceObject: {fileID: 0} 514 | m_PrefabInstance: {fileID: 0} 515 | m_PrefabAsset: {fileID: 0} 516 | m_GameObject: {fileID: 953810703} 517 | m_Enabled: 1 518 | m_EditorHideFlags: 0 519 | m_Script: {fileID: 11500000, guid: 522116dd30e1f1d4aac202eb43512344, type: 3} 520 | m_Name: 521 | m_EditorClassIdentifier: 522 | --- !u!4 &953810705 523 | Transform: 524 | m_ObjectHideFlags: 0 525 | m_CorrespondingSourceObject: {fileID: 0} 526 | m_PrefabInstance: {fileID: 0} 527 | m_PrefabAsset: {fileID: 0} 528 | m_GameObject: {fileID: 953810703} 529 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 530 | m_LocalPosition: {x: 0, y: 0, z: 0} 531 | m_LocalScale: {x: 1, y: 1, z: 1} 532 | m_Children: [] 533 | m_Father: {fileID: 0} 534 | m_RootOrder: 2 535 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 536 | --- !u!1 &963194225 537 | GameObject: 538 | m_ObjectHideFlags: 0 539 | m_CorrespondingSourceObject: {fileID: 0} 540 | m_PrefabInstance: {fileID: 0} 541 | m_PrefabAsset: {fileID: 0} 542 | serializedVersion: 6 543 | m_Component: 544 | - component: {fileID: 963194228} 545 | - component: {fileID: 963194227} 546 | - component: {fileID: 963194226} 547 | - component: {fileID: 963194229} 548 | m_Layer: 0 549 | m_Name: Main Camera 550 | m_TagString: MainCamera 551 | m_Icon: {fileID: 0} 552 | m_NavMeshLayer: 0 553 | m_StaticEditorFlags: 0 554 | m_IsActive: 1 555 | --- !u!81 &963194226 556 | AudioListener: 557 | m_ObjectHideFlags: 0 558 | m_CorrespondingSourceObject: {fileID: 0} 559 | m_PrefabInstance: {fileID: 0} 560 | m_PrefabAsset: {fileID: 0} 561 | m_GameObject: {fileID: 963194225} 562 | m_Enabled: 1 563 | --- !u!20 &963194227 564 | Camera: 565 | m_ObjectHideFlags: 0 566 | m_CorrespondingSourceObject: {fileID: 0} 567 | m_PrefabInstance: {fileID: 0} 568 | m_PrefabAsset: {fileID: 0} 569 | m_GameObject: {fileID: 963194225} 570 | m_Enabled: 1 571 | serializedVersion: 2 572 | m_ClearFlags: 1 573 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 574 | m_projectionMatrixMode: 1 575 | m_GateFitMode: 2 576 | m_FOVAxisMode: 0 577 | m_SensorSize: {x: 36, y: 24} 578 | m_LensShift: {x: 0, y: 0} 579 | m_FocalLength: 50 580 | m_NormalizedViewPortRect: 581 | serializedVersion: 2 582 | x: 0 583 | y: 0 584 | width: 1 585 | height: 1 586 | near clip plane: 0.3 587 | far clip plane: 1000 588 | field of view: 60 589 | orthographic: 0 590 | orthographic size: 5 591 | m_Depth: -1 592 | m_CullingMask: 593 | serializedVersion: 2 594 | m_Bits: 4294967295 595 | m_RenderingPath: -1 596 | m_TargetTexture: {fileID: 0} 597 | m_TargetDisplay: 0 598 | m_TargetEye: 3 599 | m_HDR: 1 600 | m_AllowMSAA: 1 601 | m_AllowDynamicResolution: 0 602 | m_ForceIntoRT: 0 603 | m_OcclusionCulling: 1 604 | m_StereoConvergence: 10 605 | m_StereoSeparation: 0.022 606 | --- !u!4 &963194228 607 | Transform: 608 | m_ObjectHideFlags: 0 609 | m_CorrespondingSourceObject: {fileID: 0} 610 | m_PrefabInstance: {fileID: 0} 611 | m_PrefabAsset: {fileID: 0} 612 | m_GameObject: {fileID: 963194225} 613 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 614 | m_LocalPosition: {x: 0, y: 1, z: -10} 615 | m_LocalScale: {x: 1, y: 1, z: 1} 616 | m_Children: 617 | - {fileID: 574879226} 618 | m_Father: {fileID: 0} 619 | m_RootOrder: 0 620 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 621 | --- !u!114 &963194229 622 | MonoBehaviour: 623 | m_ObjectHideFlags: 0 624 | m_CorrespondingSourceObject: {fileID: 0} 625 | m_PrefabInstance: {fileID: 0} 626 | m_PrefabAsset: {fileID: 0} 627 | m_GameObject: {fileID: 963194225} 628 | m_Enabled: 1 629 | m_EditorHideFlags: 0 630 | m_Script: {fileID: 11500000, guid: 948f4100a11a5c24981795d21301da5c, type: 3} 631 | m_Name: 632 | m_EditorClassIdentifier: 633 | volumeTrigger: {fileID: 963194228} 634 | volumeLayer: 635 | serializedVersion: 2 636 | m_Bits: 2147483648 637 | stopNaNPropagation: 1 638 | finalBlitToCameraTarget: 0 639 | antialiasingMode: 0 640 | temporalAntialiasing: 641 | jitterSpread: 0.75 642 | sharpness: 0.25 643 | stationaryBlending: 0.95 644 | motionBlending: 0.85 645 | subpixelMorphologicalAntialiasing: 646 | quality: 2 647 | fastApproximateAntialiasing: 648 | fastMode: 0 649 | keepAlpha: 0 650 | fog: 651 | enabled: 1 652 | excludeSkybox: 1 653 | debugLayer: 654 | lightMeter: 655 | width: 512 656 | height: 256 657 | showCurves: 1 658 | histogram: 659 | width: 512 660 | height: 256 661 | channel: 3 662 | waveform: 663 | exposure: 0.12 664 | height: 256 665 | vectorscope: 666 | size: 256 667 | exposure: 0.12 668 | overlaySettings: 669 | linearDepth: 0 670 | motionColorIntensity: 4 671 | motionGridSize: 64 672 | colorBlindnessType: 0 673 | colorBlindnessStrength: 1 674 | m_Resources: {fileID: 11400000, guid: d82512f9c8e5d4a4d938b575d47f88d4, type: 2} 675 | m_ShowToolkit: 0 676 | m_ShowCustomSorter: 0 677 | breakBeforeColorGrading: 0 678 | m_BeforeTransparentBundles: [] 679 | m_BeforeStackBundles: [] 680 | m_AfterStackBundles: 681 | - assemblyQualifiedName: JfranMora.Rendering.PostProcessing.CutScreen, Assembly-CSharp, 682 | Version=0.0.0.0, Culture=neutral, PublicKeyToken=null 683 | --- !u!1 &1801929651 684 | GameObject: 685 | m_ObjectHideFlags: 0 686 | m_CorrespondingSourceObject: {fileID: 0} 687 | m_PrefabInstance: {fileID: 0} 688 | m_PrefabAsset: {fileID: 0} 689 | serializedVersion: 6 690 | m_Component: 691 | - component: {fileID: 1801929652} 692 | - component: {fileID: 1801929654} 693 | - component: {fileID: 1801929653} 694 | m_Layer: 5 695 | m_Name: Image 696 | m_TagString: Untagged 697 | m_Icon: {fileID: 0} 698 | m_NavMeshLayer: 0 699 | m_StaticEditorFlags: 0 700 | m_IsActive: 1 701 | --- !u!224 &1801929652 702 | RectTransform: 703 | m_ObjectHideFlags: 0 704 | m_CorrespondingSourceObject: {fileID: 0} 705 | m_PrefabInstance: {fileID: 0} 706 | m_PrefabAsset: {fileID: 0} 707 | m_GameObject: {fileID: 1801929651} 708 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 709 | m_LocalPosition: {x: 0, y: 0, z: 0} 710 | m_LocalScale: {x: 1, y: 1, z: 1} 711 | m_Children: [] 712 | m_Father: {fileID: 351091669} 713 | m_RootOrder: 0 714 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 715 | m_AnchorMin: {x: 0, y: 0} 716 | m_AnchorMax: {x: 1, y: 1} 717 | m_AnchoredPosition: {x: 0, y: 0} 718 | m_SizeDelta: {x: 0, y: 0} 719 | m_Pivot: {x: 0.5, y: 0.5} 720 | --- !u!114 &1801929653 721 | MonoBehaviour: 722 | m_ObjectHideFlags: 0 723 | m_CorrespondingSourceObject: {fileID: 0} 724 | m_PrefabInstance: {fileID: 0} 725 | m_PrefabAsset: {fileID: 0} 726 | m_GameObject: {fileID: 1801929651} 727 | m_Enabled: 1 728 | m_EditorHideFlags: 0 729 | m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} 730 | m_Name: 731 | m_EditorClassIdentifier: 732 | m_Material: {fileID: 0} 733 | m_Color: {r: 1, g: 1, b: 1, a: 1} 734 | m_RaycastTarget: 1 735 | m_OnCullStateChanged: 736 | m_PersistentCalls: 737 | m_Calls: [] 738 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 739 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 740 | m_Sprite: {fileID: 21300000, guid: b04cc081618f7554cb326a8b2471c7dd, type: 3} 741 | m_Type: 0 742 | m_PreserveAspect: 0 743 | m_FillCenter: 1 744 | m_FillMethod: 4 745 | m_FillAmount: 1 746 | m_FillClockwise: 1 747 | m_FillOrigin: 0 748 | m_UseSpriteMesh: 0 749 | --- !u!222 &1801929654 750 | CanvasRenderer: 751 | m_ObjectHideFlags: 0 752 | m_CorrespondingSourceObject: {fileID: 0} 753 | m_PrefabInstance: {fileID: 0} 754 | m_PrefabAsset: {fileID: 0} 755 | m_GameObject: {fileID: 1801929651} 756 | m_CullTransparentMesh: 0 757 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen - Example/CutScreenExample.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen - Example/CutScreenExample_Profiles.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94ab4839f1b6e1d4f9ae74979fdc0ee7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen - Example/CutScreenExample_Profiles/CutScreenVolume Profile.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &-6933796532443768674 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 3 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 6ec7c29b346c6d045ae544332cf01740, type: 3} 13 | m_Name: CutScreen 14 | m_EditorClassIdentifier: 15 | active: 1 16 | enabled: 17 | overrideState: 1 18 | value: 1 19 | intensity: 20 | overrideState: 1 21 | value: 0 22 | blending: 23 | overrideState: 1 24 | value: 0 25 | offset: 26 | overrideState: 1 27 | value: 0.05 28 | angle: 29 | overrideState: 1 30 | value: 0 31 | cutCenter: 32 | overrideState: 1 33 | value: {x: 0.5, y: 0.5} 34 | cutDirection: 35 | overrideState: 1 36 | value: {x: 0.5, y: 0} 37 | --- !u!114 &11400000 38 | MonoBehaviour: 39 | m_ObjectHideFlags: 0 40 | m_CorrespondingSourceObject: {fileID: 0} 41 | m_PrefabInstance: {fileID: 0} 42 | m_PrefabAsset: {fileID: 0} 43 | m_GameObject: {fileID: 0} 44 | m_Enabled: 1 45 | m_EditorHideFlags: 0 46 | m_Script: {fileID: 11500000, guid: 8e6292b2c06870d4495f009f912b9600, type: 3} 47 | m_Name: CutScreenVolume Profile 48 | m_EditorClassIdentifier: 49 | settings: 50 | - {fileID: -6933796532443768674} 51 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen - Example/CutScreenExample_Profiles/CutScreenVolume Profile.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7346b3c0fa941c3499a7a019f3a03723 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c209e0c109a879646bd1b5a323059008 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f04e868b7ba4a3443a5788f6311d04dd 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen/Runtime/Effects.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48590b0d124961a478349ea4301e78c0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen/Runtime/Effects/CutScreen.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.Rendering.PostProcessing; 4 | 5 | namespace JfranMora.Rendering.PostProcessing 6 | { 7 | [Serializable] 8 | [PostProcess(typeof(CutScreenRenderer), PostProcessEvent.AfterStack, "JfranMora/CutScreen")] 9 | public sealed class CutScreen : PostProcessEffectSettings 10 | { 11 | [Range(0f, 1f)] 12 | public FloatParameter intensity = new FloatParameter { value = 0f }; 13 | 14 | [Range(0f, 1f)] 15 | public FloatParameter blending = new FloatParameter { value = 0f }; 16 | 17 | [Range(0f, 1f)] 18 | public FloatParameter offset = new FloatParameter { value = 0f }; 19 | 20 | [Range(0f, 360f)] 21 | public FloatParameter angle = new FloatParameter { value = 0f }; 22 | 23 | public Vector2Parameter cutCenter = new Vector2Parameter { value = new Vector2(.5f, .5f) }; 24 | 25 | public Vector2Parameter cutDirection = new Vector2Parameter { value = new Vector2(.5f, 0) }; 26 | } 27 | 28 | public sealed class CutScreenRenderer : PostProcessEffectRenderer 29 | { 30 | public override void Render(PostProcessRenderContext context) 31 | { 32 | var sheet = context.propertySheets.Get(Shader.Find("Hidden/JfranMora/CutScreen")); 33 | 34 | // Configurar 35 | sheet.properties.SetFloat("_Intensity", settings.intensity); 36 | sheet.properties.SetFloat("_Blending", settings.blending); 37 | sheet.properties.SetFloat("_Offset", settings.offset); 38 | sheet.properties.SetFloat("_Angle", settings.angle); 39 | sheet.properties.SetVector("_CutCenter", settings.cutCenter); 40 | sheet.properties.SetVector("_CutDirection", settings.cutDirection); 41 | 42 | // Blit 43 | context.command.BlitFullscreenTriangle(context.source, context.destination, sheet, 0); 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen/Runtime/Effects/CutScreen.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ec7c29b346c6d045ae544332cf01740 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3887b845bdfb5bf4db5ba385b379ac2c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen/Scripts/CutScreenFX.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Rendering.PostProcessing; 3 | using System.Collections; 4 | using JfranMora.Rendering.PostProcessing; 5 | 6 | public class CutScreenFX : MonoBehaviour 7 | { 8 | public AnimationCurve curve; 9 | public float fxDuration = .25f; 10 | 11 | [Header("References")] 12 | public PostProcessVolume volume; 13 | 14 | private CutScreen _cutScreen; 15 | 16 | #region Unity events 17 | 18 | private void Awake() 19 | { 20 | volume.profile.TryGetSettings(out _cutScreen); 21 | } 22 | 23 | #endregion 24 | 25 | #region Public API 26 | 27 | public void DoFX(Vector2 screenPos, Vector2 direction) 28 | { 29 | _cutScreen.cutCenter.value = screenPos; 30 | _cutScreen.cutDirection.value = direction; 31 | _cutScreen.angle.value = Vector2.SignedAngle(Vector2.right, direction); 32 | 33 | StartCoroutine(DoFXRoutine(fxDuration)); 34 | } 35 | 36 | #endregion 37 | 38 | private IEnumerator DoFXRoutine(float duration) 39 | { 40 | float currentTime = 0; 41 | 42 | while (currentTime < duration) 43 | { 44 | _cutScreen.intensity.value = curve.Evaluate(currentTime / duration); 45 | 46 | currentTime += Time.deltaTime; 47 | yield return null; 48 | } 49 | 50 | _cutScreen.intensity.value = 0; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen/Scripts/CutScreenFX.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d6177660a6f10e4f90501453b3d10f1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d762093c7978da049a8a9c7d902e5ab1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen/Shaders/CutScreen.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/JfranMora/CutScreen" 2 | { 3 | HLSLINCLUDE 4 | 5 | #include "Packages/com.unity.postprocessing/PostProcessing/Shaders/StdLib.hlsl" 6 | 7 | TEXTURE2D_SAMPLER2D(_MainTex, sampler_MainTex); 8 | float _Offset; 9 | float _Intensity; 10 | float _Blending; 11 | float _Angle; 12 | float2 _CutCenter; 13 | float2 _CutDirection; 14 | 15 | float2 rotateUV(float2 uv, float2 center, float angle) 16 | { 17 | // [-.5, .5] 18 | uv.xy -= .5; 19 | uv.xy -= center - .5; 20 | 21 | float s, c; 22 | sincos(radians(angle), s, c); 23 | float2x2 rotationMatrix = float2x2(c, -s, s, c); 24 | uv = mul(uv, rotationMatrix); 25 | 26 | // [0, 1] 27 | uv += .5; 28 | 29 | return uv; 30 | } 31 | 32 | float4 Frag(VaryingsDefault i) : SV_Target 33 | { 34 | // Mask UV 35 | float2 maskUV = rotateUV(i.texcoord, _CutCenter, _Angle); 36 | float mask = smoothstep(.5 - _Blending, .5 + _Blending, maskUV.y); 37 | float maskN = mask * 2 - 1; 38 | 39 | // Cut direction 40 | float2 cutDirection = _CutDirection * _Intensity * maskN * _Offset; 41 | 42 | // Color 43 | float2 uv = i.texcoord + cutDirection; 44 | float4 color = SAMPLE_TEXTURE2D(_MainTex, sampler_MainTex, uv); 45 | return color; 46 | } 47 | 48 | ENDHLSL 49 | 50 | SubShader 51 | { 52 | Cull Off ZWrite Off ZTest Always 53 | 54 | Pass 55 | { 56 | HLSLPROGRAM 57 | 58 | #pragma vertex VertDefault 59 | #pragma fragment Frag 60 | 61 | ENDHLSL 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Assets/JfranMora/CutScreen/Shaders/CutScreen.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a16b83fa1416c004c876269198ce4d38 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.analytics": "3.3.2", 5 | "com.unity.collab-proxy": "1.2.16", 6 | "com.unity.package-manager-ui": "2.1.2", 7 | "com.unity.postprocessing": "2.1.7", 8 | "com.unity.purchasing": "2.0.6", 9 | "com.unity.textmeshpro": "2.0.1", 10 | "com.unity.timeline": "1.0.0", 11 | "com.unity.modules.ai": "1.0.0", 12 | "com.unity.modules.animation": "1.0.0", 13 | "com.unity.modules.assetbundle": "1.0.0", 14 | "com.unity.modules.audio": "1.0.0", 15 | "com.unity.modules.cloth": "1.0.0", 16 | "com.unity.modules.director": "1.0.0", 17 | "com.unity.modules.imageconversion": "1.0.0", 18 | "com.unity.modules.imgui": "1.0.0", 19 | "com.unity.modules.jsonserialize": "1.0.0", 20 | "com.unity.modules.particlesystem": "1.0.0", 21 | "com.unity.modules.physics": "1.0.0", 22 | "com.unity.modules.physics2d": "1.0.0", 23 | "com.unity.modules.screencapture": "1.0.0", 24 | "com.unity.modules.terrain": "1.0.0", 25 | "com.unity.modules.terrainphysics": "1.0.0", 26 | "com.unity.modules.tilemap": "1.0.0", 27 | "com.unity.modules.ui": "1.0.0", 28 | "com.unity.modules.uielements": "1.0.0", 29 | "com.unity.modules.umbra": "1.0.0", 30 | "com.unity.modules.unityanalytics": "1.0.0", 31 | "com.unity.modules.unitywebrequest": "1.0.0", 32 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 33 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 34 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 35 | "com.unity.modules.unitywebrequestwww": "1.0.0", 36 | "com.unity.modules.vehicles": "1.0.0", 37 | "com.unity.modules.video": "1.0.0", 38 | "com.unity.modules.vr": "1.0.0", 39 | "com.unity.modules.wind": "1.0.0", 40 | "com.unity.modules.xr": "1.0.0" 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 0 20 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 0 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ClothGravity: {x: 0, y: -9.81, z: 0} 26 | m_ContactPairsMode: 0 27 | m_BroadphaseType: 0 28 | m_WorldBounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 250, y: 250, z: 250} 31 | m_WorldSubdivisions: 8 32 | m_FrictionType: 0 33 | m_EnableEnhancedDeterminism: 0 34 | m_EnableUnifiedHeightmaps: 1 35 | m_DefaultMaxAngularSpeed: 50 36 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 39 | m_PreloadedShaders: [] 40 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 41 | type: 0} 42 | m_CustomRenderPipeline: {fileID: 0} 43 | m_TransparencySortMode: 0 44 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 45 | m_DefaultRenderingPath: 1 46 | m_DefaultMobileRenderingPath: 1 47 | m_TierSettings: [] 48 | m_LightmapStripping: 0 49 | m_FogStripping: 0 50 | m_InstancingStripping: 0 51 | m_LightmapKeepPlain: 1 52 | m_LightmapKeepDirCombined: 1 53 | m_LightmapKeepDynamicPlain: 1 54 | m_LightmapKeepDynamicDirCombined: 1 55 | m_LightmapKeepShadowMask: 1 56 | m_LightmapKeepSubtractive: 1 57 | m_FogKeepLinear: 1 58 | m_FogKeepExp: 1 59 | m_FogKeepExp2: 1 60 | m_AlbedoSwatchInfos: [] 61 | m_LightsUseLinearIntensity: 0 62 | m_LightsUseColorTemperature: 0 63 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 0 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 16 7 | productGUID: 3623c57c5fded9441acb8fddbba1fa5e 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: unity-postprocessing-cut-screen-shader 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | iosAppInBackgroundBehavior: 0 56 | displayResolutionDialog: 0 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidStartInFullscreen: 1 67 | androidRenderOutsideSafeArea: 1 68 | androidBlitType: 0 69 | defaultIsNativeResolution: 1 70 | macRetinaSupport: 1 71 | runInBackground: 0 72 | captureSingleScreen: 0 73 | muteOtherAudioSources: 0 74 | Prepare IOS For Recording: 0 75 | Force IOS Speakers When Recording: 0 76 | deferSystemGesturesMode: 0 77 | hideHomeButton: 0 78 | submitAnalytics: 1 79 | usePlayerLog: 1 80 | bakeCollisionMeshes: 0 81 | forceSingleInstance: 0 82 | useFlipModelSwapchain: 1 83 | resizableWindow: 0 84 | useMacAppStoreValidation: 0 85 | macAppStoreCategory: public.app-category.games 86 | gpuSkinning: 0 87 | graphicsJobs: 0 88 | xboxPIXTextureCapture: 0 89 | xboxEnableAvatar: 0 90 | xboxEnableKinect: 0 91 | xboxEnableKinectAutoTracking: 0 92 | xboxEnableFitness: 0 93 | visibleInBackground: 1 94 | allowFullscreenSwitch: 1 95 | graphicsJobMode: 0 96 | fullscreenMode: 1 97 | xboxSpeechDB: 0 98 | xboxEnableHeadOrientation: 0 99 | xboxEnableGuest: 0 100 | xboxEnablePIXSampling: 0 101 | metalFramebufferOnly: 0 102 | xboxOneResolution: 0 103 | xboxOneSResolution: 0 104 | xboxOneXResolution: 3 105 | xboxOneMonoLoggingLevel: 0 106 | xboxOneLoggingLevel: 1 107 | xboxOneDisableEsram: 0 108 | xboxOnePresentImmediateThreshold: 0 109 | switchQueueCommandMemory: 1048576 110 | switchQueueControlMemory: 16384 111 | switchQueueComputeMemory: 262144 112 | switchNVNShaderPoolsGranularity: 33554432 113 | switchNVNDefaultPoolsGranularity: 16777216 114 | switchNVNOtherPoolsGranularity: 16777216 115 | vulkanEnableSetSRGBWrite: 0 116 | m_SupportedAspectRatios: 117 | 4:3: 1 118 | 5:4: 1 119 | 16:10: 1 120 | 16:9: 1 121 | Others: 1 122 | bundleVersion: 1.0 123 | preloadedAssets: [] 124 | metroInputSource: 0 125 | wsaTransparentSwapchain: 0 126 | m_HolographicPauseOnTrackingLoss: 1 127 | xboxOneDisableKinectGpuReservation: 1 128 | xboxOneEnable7thCore: 1 129 | vrSettings: 130 | cardboard: 131 | depthFormat: 0 132 | enableTransitionView: 0 133 | daydream: 134 | depthFormat: 0 135 | useSustainedPerformanceMode: 0 136 | enableVideoLayer: 0 137 | useProtectedVideoMemory: 0 138 | minimumSupportedHeadTracking: 0 139 | maximumSupportedHeadTracking: 1 140 | hololens: 141 | depthFormat: 1 142 | depthBufferSharingEnabled: 1 143 | lumin: 144 | depthFormat: 0 145 | frameTiming: 2 146 | enableGLCache: 0 147 | glCacheMaxBlobSize: 524288 148 | glCacheMaxFileSize: 8388608 149 | oculus: 150 | sharedDepthBuffer: 1 151 | dashSupport: 1 152 | enable360StereoCapture: 0 153 | isWsaHolographicRemotingEnabled: 0 154 | protectGraphicsMemory: 0 155 | enableFrameTimingStats: 0 156 | useHDRDisplay: 0 157 | m_ColorGamuts: 00000000 158 | targetPixelDensity: 30 159 | resolutionScalingMode: 0 160 | androidSupportedAspectRatio: 1 161 | androidMaxAspectRatio: 2.1 162 | applicationIdentifier: {} 163 | buildNumber: {} 164 | AndroidBundleVersionCode: 1 165 | AndroidMinSdkVersion: 16 166 | AndroidTargetSdkVersion: 0 167 | AndroidPreferredInstallLocation: 1 168 | aotOptions: 169 | stripEngineCode: 1 170 | iPhoneStrippingLevel: 0 171 | iPhoneScriptCallOptimization: 0 172 | ForceInternetPermission: 0 173 | ForceSDCardPermission: 0 174 | CreateWallpaper: 0 175 | APKExpansionFiles: 0 176 | keepLoadedShadersAlive: 0 177 | StripUnusedMeshComponents: 0 178 | VertexChannelCompressionMask: 4054 179 | iPhoneSdkVersion: 988 180 | iOSTargetOSVersionString: 9.0 181 | tvOSSdkVersion: 0 182 | tvOSRequireExtendedGameController: 0 183 | tvOSTargetOSVersionString: 9.0 184 | uIPrerenderedIcon: 0 185 | uIRequiresPersistentWiFi: 0 186 | uIRequiresFullScreen: 1 187 | uIStatusBarHidden: 1 188 | uIExitOnSuspend: 0 189 | uIStatusBarStyle: 0 190 | iPhoneSplashScreen: {fileID: 0} 191 | iPhoneHighResSplashScreen: {fileID: 0} 192 | iPhoneTallHighResSplashScreen: {fileID: 0} 193 | iPhone47inSplashScreen: {fileID: 0} 194 | iPhone55inPortraitSplashScreen: {fileID: 0} 195 | iPhone55inLandscapeSplashScreen: {fileID: 0} 196 | iPhone58inPortraitSplashScreen: {fileID: 0} 197 | iPhone58inLandscapeSplashScreen: {fileID: 0} 198 | iPadPortraitSplashScreen: {fileID: 0} 199 | iPadHighResPortraitSplashScreen: {fileID: 0} 200 | iPadLandscapeSplashScreen: {fileID: 0} 201 | iPadHighResLandscapeSplashScreen: {fileID: 0} 202 | iPhone65inPortraitSplashScreen: {fileID: 0} 203 | iPhone65inLandscapeSplashScreen: {fileID: 0} 204 | iPhone61inPortraitSplashScreen: {fileID: 0} 205 | iPhone61inLandscapeSplashScreen: {fileID: 0} 206 | appleTVSplashScreen: {fileID: 0} 207 | appleTVSplashScreen2x: {fileID: 0} 208 | tvOSSmallIconLayers: [] 209 | tvOSSmallIconLayers2x: [] 210 | tvOSLargeIconLayers: [] 211 | tvOSLargeIconLayers2x: [] 212 | tvOSTopShelfImageLayers: [] 213 | tvOSTopShelfImageLayers2x: [] 214 | tvOSTopShelfImageWideLayers: [] 215 | tvOSTopShelfImageWideLayers2x: [] 216 | iOSLaunchScreenType: 0 217 | iOSLaunchScreenPortrait: {fileID: 0} 218 | iOSLaunchScreenLandscape: {fileID: 0} 219 | iOSLaunchScreenBackgroundColor: 220 | serializedVersion: 2 221 | rgba: 0 222 | iOSLaunchScreenFillPct: 100 223 | iOSLaunchScreenSize: 100 224 | iOSLaunchScreenCustomXibPath: 225 | iOSLaunchScreeniPadType: 0 226 | iOSLaunchScreeniPadImage: {fileID: 0} 227 | iOSLaunchScreeniPadBackgroundColor: 228 | serializedVersion: 2 229 | rgba: 0 230 | iOSLaunchScreeniPadFillPct: 100 231 | iOSLaunchScreeniPadSize: 100 232 | iOSLaunchScreeniPadCustomXibPath: 233 | iOSUseLaunchScreenStoryboard: 0 234 | iOSLaunchScreenCustomStoryboardPath: 235 | iOSDeviceRequirements: [] 236 | iOSURLSchemes: [] 237 | iOSBackgroundModes: 0 238 | iOSMetalForceHardShadows: 0 239 | metalEditorSupport: 1 240 | metalAPIValidation: 1 241 | iOSRenderExtraFrameOnPause: 0 242 | appleDeveloperTeamID: 243 | iOSManualSigningProvisioningProfileID: 244 | tvOSManualSigningProvisioningProfileID: 245 | iOSManualSigningProvisioningProfileType: 0 246 | tvOSManualSigningProvisioningProfileType: 0 247 | appleEnableAutomaticSigning: 0 248 | iOSRequireARKit: 0 249 | iOSAutomaticallyDetectAndAddCapabilities: 1 250 | appleEnableProMotion: 0 251 | clonedFromGUID: 00000000000000000000000000000000 252 | templatePackageId: 253 | templateDefaultScene: 254 | AndroidTargetArchitectures: 1 255 | AndroidSplashScreenScale: 0 256 | androidSplashScreen: {fileID: 0} 257 | AndroidKeystoreName: 258 | AndroidKeyaliasName: 259 | AndroidBuildApkPerCpuArchitecture: 0 260 | AndroidTVCompatibility: 0 261 | AndroidIsGame: 1 262 | AndroidEnableTango: 0 263 | androidEnableBanner: 1 264 | androidUseLowAccuracyLocation: 0 265 | androidUseCustomKeystore: 0 266 | m_AndroidBanners: 267 | - width: 320 268 | height: 180 269 | banner: {fileID: 0} 270 | androidGamepadSupportLevel: 0 271 | resolutionDialogBanner: {fileID: 0} 272 | m_BuildTargetIcons: [] 273 | m_BuildTargetPlatformIcons: [] 274 | m_BuildTargetBatching: [] 275 | m_BuildTargetGraphicsAPIs: [] 276 | m_BuildTargetVRSettings: [] 277 | m_BuildTargetEnableVuforiaSettings: [] 278 | openGLRequireES31: 0 279 | openGLRequireES31AEP: 0 280 | openGLRequireES32: 0 281 | m_TemplateCustomTags: {} 282 | mobileMTRendering: 283 | Android: 1 284 | iPhone: 1 285 | tvOS: 1 286 | m_BuildTargetGroupLightmapEncodingQuality: [] 287 | m_BuildTargetGroupLightmapSettings: [] 288 | playModeTestRunnerEnabled: 0 289 | runPlayModeTestAsEditModeTest: 0 290 | actionOnDotNetUnhandledException: 1 291 | enableInternalProfiler: 0 292 | logObjCUncaughtExceptions: 1 293 | enableCrashReportAPI: 0 294 | cameraUsageDescription: 295 | locationUsageDescription: 296 | microphoneUsageDescription: 297 | switchNetLibKey: 298 | switchSocketMemoryPoolSize: 6144 299 | switchSocketAllocatorPoolSize: 128 300 | switchSocketConcurrencyLimit: 14 301 | switchScreenResolutionBehavior: 2 302 | switchUseCPUProfiler: 0 303 | switchApplicationID: 0x01004b9000490000 304 | switchNSODependencies: 305 | switchTitleNames_0: 306 | switchTitleNames_1: 307 | switchTitleNames_2: 308 | switchTitleNames_3: 309 | switchTitleNames_4: 310 | switchTitleNames_5: 311 | switchTitleNames_6: 312 | switchTitleNames_7: 313 | switchTitleNames_8: 314 | switchTitleNames_9: 315 | switchTitleNames_10: 316 | switchTitleNames_11: 317 | switchTitleNames_12: 318 | switchTitleNames_13: 319 | switchTitleNames_14: 320 | switchPublisherNames_0: 321 | switchPublisherNames_1: 322 | switchPublisherNames_2: 323 | switchPublisherNames_3: 324 | switchPublisherNames_4: 325 | switchPublisherNames_5: 326 | switchPublisherNames_6: 327 | switchPublisherNames_7: 328 | switchPublisherNames_8: 329 | switchPublisherNames_9: 330 | switchPublisherNames_10: 331 | switchPublisherNames_11: 332 | switchPublisherNames_12: 333 | switchPublisherNames_13: 334 | switchPublisherNames_14: 335 | switchIcons_0: {fileID: 0} 336 | switchIcons_1: {fileID: 0} 337 | switchIcons_2: {fileID: 0} 338 | switchIcons_3: {fileID: 0} 339 | switchIcons_4: {fileID: 0} 340 | switchIcons_5: {fileID: 0} 341 | switchIcons_6: {fileID: 0} 342 | switchIcons_7: {fileID: 0} 343 | switchIcons_8: {fileID: 0} 344 | switchIcons_9: {fileID: 0} 345 | switchIcons_10: {fileID: 0} 346 | switchIcons_11: {fileID: 0} 347 | switchIcons_12: {fileID: 0} 348 | switchIcons_13: {fileID: 0} 349 | switchIcons_14: {fileID: 0} 350 | switchSmallIcons_0: {fileID: 0} 351 | switchSmallIcons_1: {fileID: 0} 352 | switchSmallIcons_2: {fileID: 0} 353 | switchSmallIcons_3: {fileID: 0} 354 | switchSmallIcons_4: {fileID: 0} 355 | switchSmallIcons_5: {fileID: 0} 356 | switchSmallIcons_6: {fileID: 0} 357 | switchSmallIcons_7: {fileID: 0} 358 | switchSmallIcons_8: {fileID: 0} 359 | switchSmallIcons_9: {fileID: 0} 360 | switchSmallIcons_10: {fileID: 0} 361 | switchSmallIcons_11: {fileID: 0} 362 | switchSmallIcons_12: {fileID: 0} 363 | switchSmallIcons_13: {fileID: 0} 364 | switchSmallIcons_14: {fileID: 0} 365 | switchManualHTML: 366 | switchAccessibleURLs: 367 | switchLegalInformation: 368 | switchMainThreadStackSize: 1048576 369 | switchPresenceGroupId: 370 | switchLogoHandling: 0 371 | switchReleaseVersion: 0 372 | switchDisplayVersion: 1.0.0 373 | switchStartupUserAccount: 0 374 | switchTouchScreenUsage: 0 375 | switchSupportedLanguagesMask: 0 376 | switchLogoType: 0 377 | switchApplicationErrorCodeCategory: 378 | switchUserAccountSaveDataSize: 0 379 | switchUserAccountSaveDataJournalSize: 0 380 | switchApplicationAttribute: 0 381 | switchCardSpecSize: -1 382 | switchCardSpecClock: -1 383 | switchRatingsMask: 0 384 | switchRatingsInt_0: 0 385 | switchRatingsInt_1: 0 386 | switchRatingsInt_2: 0 387 | switchRatingsInt_3: 0 388 | switchRatingsInt_4: 0 389 | switchRatingsInt_5: 0 390 | switchRatingsInt_6: 0 391 | switchRatingsInt_7: 0 392 | switchRatingsInt_8: 0 393 | switchRatingsInt_9: 0 394 | switchRatingsInt_10: 0 395 | switchRatingsInt_11: 0 396 | switchLocalCommunicationIds_0: 397 | switchLocalCommunicationIds_1: 398 | switchLocalCommunicationIds_2: 399 | switchLocalCommunicationIds_3: 400 | switchLocalCommunicationIds_4: 401 | switchLocalCommunicationIds_5: 402 | switchLocalCommunicationIds_6: 403 | switchLocalCommunicationIds_7: 404 | switchParentalControl: 0 405 | switchAllowsScreenshot: 1 406 | switchAllowsVideoCapturing: 1 407 | switchAllowsRuntimeAddOnContentInstall: 0 408 | switchDataLossConfirmation: 0 409 | switchUserAccountLockEnabled: 0 410 | switchSystemResourceMemory: 16777216 411 | switchSupportedNpadStyles: 6 412 | switchNativeFsCacheSize: 32 413 | switchIsHoldTypeHorizontal: 0 414 | switchSupportedNpadCount: 8 415 | switchSocketConfigEnabled: 0 416 | switchTcpInitialSendBufferSize: 32 417 | switchTcpInitialReceiveBufferSize: 64 418 | switchTcpAutoSendBufferSizeMax: 256 419 | switchTcpAutoReceiveBufferSizeMax: 256 420 | switchUdpSendBufferSize: 9 421 | switchUdpReceiveBufferSize: 42 422 | switchSocketBufferEfficiency: 4 423 | switchSocketInitializeEnabled: 1 424 | switchNetworkInterfaceManagerInitializeEnabled: 1 425 | switchPlayerConnectionEnabled: 1 426 | ps4NPAgeRating: 12 427 | ps4NPTitleSecret: 428 | ps4NPTrophyPackPath: 429 | ps4ParentalLevel: 11 430 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 431 | ps4Category: 0 432 | ps4MasterVersion: 01.00 433 | ps4AppVersion: 01.00 434 | ps4AppType: 0 435 | ps4ParamSfxPath: 436 | ps4VideoOutPixelFormat: 0 437 | ps4VideoOutInitialWidth: 1920 438 | ps4VideoOutBaseModeInitialWidth: 1920 439 | ps4VideoOutReprojectionRate: 60 440 | ps4PronunciationXMLPath: 441 | ps4PronunciationSIGPath: 442 | ps4BackgroundImagePath: 443 | ps4StartupImagePath: 444 | ps4StartupImagesFolder: 445 | ps4IconImagesFolder: 446 | ps4SaveDataImagePath: 447 | ps4SdkOverride: 448 | ps4BGMPath: 449 | ps4ShareFilePath: 450 | ps4ShareOverlayImagePath: 451 | ps4PrivacyGuardImagePath: 452 | ps4NPtitleDatPath: 453 | ps4RemotePlayKeyAssignment: -1 454 | ps4RemotePlayKeyMappingDir: 455 | ps4PlayTogetherPlayerCount: 0 456 | ps4EnterButtonAssignment: 2 457 | ps4ApplicationParam1: 0 458 | ps4ApplicationParam2: 0 459 | ps4ApplicationParam3: 0 460 | ps4ApplicationParam4: 0 461 | ps4DownloadDataSize: 0 462 | ps4GarlicHeapSize: 2048 463 | ps4ProGarlicHeapSize: 2560 464 | playerPrefsMaxSize: 32768 465 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 466 | ps4pnSessions: 1 467 | ps4pnPresence: 1 468 | ps4pnFriends: 1 469 | ps4pnGameCustomData: 1 470 | playerPrefsSupport: 0 471 | enableApplicationExit: 0 472 | resetTempFolder: 1 473 | restrictedAudioUsageRights: 0 474 | ps4UseResolutionFallback: 0 475 | ps4ReprojectionSupport: 0 476 | ps4UseAudio3dBackend: 0 477 | ps4SocialScreenEnabled: 0 478 | ps4ScriptOptimizationLevel: 2 479 | ps4Audio3dVirtualSpeakerCount: 14 480 | ps4attribCpuUsage: 0 481 | ps4PatchPkgPath: 482 | ps4PatchLatestPkgPath: 483 | ps4PatchChangeinfoPath: 484 | ps4PatchDayOne: 0 485 | ps4attribUserManagement: 0 486 | ps4attribMoveSupport: 0 487 | ps4attrib3DSupport: 0 488 | ps4attribShareSupport: 0 489 | ps4attribExclusiveVR: 0 490 | ps4disableAutoHideSplash: 0 491 | ps4videoRecordingFeaturesUsed: 0 492 | ps4contentSearchFeaturesUsed: 0 493 | ps4attribEyeToEyeDistanceSettingVR: 0 494 | ps4IncludedModules: [] 495 | monoEnv: 496 | splashScreenBackgroundSourceLandscape: {fileID: 0} 497 | splashScreenBackgroundSourcePortrait: {fileID: 0} 498 | spritePackerPolicy: 499 | webGLMemorySize: 32 500 | webGLExceptionSupport: 1 501 | webGLNameFilesAsHashes: 0 502 | webGLDataCaching: 1 503 | webGLDebugSymbols: 0 504 | webGLEmscriptenArgs: 505 | webGLModulesDirectory: 506 | webGLTemplate: APPLICATION:Default 507 | webGLAnalyzeBuildSize: 0 508 | webGLUseEmbeddedResources: 0 509 | webGLCompressionFormat: 0 510 | webGLLinkerTarget: 1 511 | webGLThreadsSupport: 0 512 | webGLWasmStreaming: 0 513 | scriptingDefineSymbols: {} 514 | platformArchitecture: {} 515 | scriptingBackend: {} 516 | il2cppCompilerConfiguration: {} 517 | managedStrippingLevel: {} 518 | incrementalIl2cppBuild: {} 519 | allowUnsafeCode: 0 520 | additionalIl2CppArgs: 521 | scriptingRuntimeVersion: 1 522 | gcIncremental: 0 523 | gcWBarrierValidation: 0 524 | apiCompatibilityLevelPerPlatform: {} 525 | m_RenderingPath: 1 526 | m_MobileRenderingPath: 1 527 | metroPackageName: unity-postprocessing-cut-screen-shader 528 | metroPackageVersion: 529 | metroCertificatePath: 530 | metroCertificatePassword: 531 | metroCertificateSubject: 532 | metroCertificateIssuer: 533 | metroCertificateNotAfter: 0000000000000000 534 | metroApplicationDescription: unity-postprocessing-cut-screen-shader 535 | wsaImages: {} 536 | metroTileShortName: 537 | metroTileShowName: 0 538 | metroMediumTileShowName: 0 539 | metroLargeTileShowName: 0 540 | metroWideTileShowName: 0 541 | metroSupportStreamingInstall: 0 542 | metroLastRequiredScene: 0 543 | metroDefaultTileSize: 1 544 | metroTileForegroundText: 2 545 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 546 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 547 | a: 1} 548 | metroSplashScreenUseBackgroundColor: 0 549 | platformCapabilities: {} 550 | metroTargetDeviceFamilies: {} 551 | metroFTAName: 552 | metroFTAFileTypes: [] 553 | metroProtocolName: 554 | XboxOneProductId: 555 | XboxOneUpdateKey: 556 | XboxOneSandboxId: 557 | XboxOneContentId: 558 | XboxOneTitleId: 559 | XboxOneSCId: 560 | XboxOneGameOsOverridePath: 561 | XboxOnePackagingOverridePath: 562 | XboxOneAppManifestOverridePath: 563 | XboxOneVersion: 1.0.0.0 564 | XboxOnePackageEncryption: 0 565 | XboxOnePackageUpdateGranularity: 2 566 | XboxOneDescription: 567 | XboxOneLanguage: 568 | - enus 569 | XboxOneCapability: [] 570 | XboxOneGameRating: {} 571 | XboxOneIsContentPackage: 0 572 | XboxOneEnableGPUVariability: 1 573 | XboxOneSockets: {} 574 | XboxOneSplashScreen: {fileID: 0} 575 | XboxOneAllowedProductIds: [] 576 | XboxOnePersistentLocalStorageSize: 0 577 | XboxOneXTitleMemory: 8 578 | xboxOneScriptCompiler: 1 579 | XboxOneOverrideIdentityName: 580 | vrEditorSettings: 581 | daydream: 582 | daydreamIconForeground: {fileID: 0} 583 | daydreamIconBackground: {fileID: 0} 584 | cloudServicesEnabled: {} 585 | luminIcon: 586 | m_Name: 587 | m_ModelFolderPath: 588 | m_PortalFolderPath: 589 | luminCert: 590 | m_CertPath: 591 | m_SignPackage: 1 592 | luminIsChannelApp: 0 593 | luminVersion: 594 | m_VersionCode: 1 595 | m_VersionName: 596 | facebookSdkVersion: 597 | facebookAppId: 598 | facebookCookies: 1 599 | facebookLogging: 1 600 | facebookStatus: 1 601 | facebookXfbml: 0 602 | facebookFrictionlessRequests: 1 603 | apiCompatibilityLevel: 6 604 | cloudProjectId: 605 | framebufferDepthMemorylessMode: 0 606 | projectName: 607 | organizationId: 608 | cloudEnabled: 0 609 | enableNativePlatformBackendsForNewInputSystem: 0 610 | disableOldInputManagerSupport: 0 611 | legacyClampBlendShapeWeights: 0 612 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.1.11f1 2 | m_EditorVersionWithRevision: 2019.1.11f1 (9b001d489a54) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | skinWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | excludedTargetPlatforms: [] 44 | - serializedVersion: 2 45 | name: Low 46 | pixelLightCount: 0 47 | shadows: 0 48 | shadowResolution: 0 49 | shadowProjection: 1 50 | shadowCascades: 1 51 | shadowDistance: 20 52 | shadowNearPlaneOffset: 3 53 | shadowCascade2Split: 0.33333334 54 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 55 | shadowmaskMode: 0 56 | skinWeights: 2 57 | textureQuality: 0 58 | anisotropicTextures: 0 59 | antiAliasing: 0 60 | softParticles: 0 61 | softVegetation: 0 62 | realtimeReflectionProbes: 0 63 | billboardsFaceCameraPosition: 0 64 | vSyncCount: 0 65 | lodBias: 0.4 66 | maximumLODLevel: 0 67 | streamingMipmapsActive: 0 68 | streamingMipmapsAddAllCameras: 1 69 | streamingMipmapsMemoryBudget: 512 70 | streamingMipmapsRenderersPerFrame: 512 71 | streamingMipmapsMaxLevelReduction: 2 72 | streamingMipmapsMaxFileIORequests: 1024 73 | particleRaycastBudget: 16 74 | asyncUploadTimeSlice: 2 75 | asyncUploadBufferSize: 16 76 | asyncUploadPersistentBuffer: 1 77 | resolutionScalingFixedDPIFactor: 1 78 | excludedTargetPlatforms: [] 79 | - serializedVersion: 2 80 | name: Medium 81 | pixelLightCount: 1 82 | shadows: 1 83 | shadowResolution: 0 84 | shadowProjection: 1 85 | shadowCascades: 1 86 | shadowDistance: 20 87 | shadowNearPlaneOffset: 3 88 | shadowCascade2Split: 0.33333334 89 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 90 | shadowmaskMode: 0 91 | skinWeights: 2 92 | textureQuality: 0 93 | anisotropicTextures: 1 94 | antiAliasing: 0 95 | softParticles: 0 96 | softVegetation: 0 97 | realtimeReflectionProbes: 0 98 | billboardsFaceCameraPosition: 0 99 | vSyncCount: 1 100 | lodBias: 0.7 101 | maximumLODLevel: 0 102 | streamingMipmapsActive: 0 103 | streamingMipmapsAddAllCameras: 1 104 | streamingMipmapsMemoryBudget: 512 105 | streamingMipmapsRenderersPerFrame: 512 106 | streamingMipmapsMaxLevelReduction: 2 107 | streamingMipmapsMaxFileIORequests: 1024 108 | particleRaycastBudget: 64 109 | asyncUploadTimeSlice: 2 110 | asyncUploadBufferSize: 16 111 | asyncUploadPersistentBuffer: 1 112 | resolutionScalingFixedDPIFactor: 1 113 | excludedTargetPlatforms: [] 114 | - serializedVersion: 2 115 | name: High 116 | pixelLightCount: 2 117 | shadows: 2 118 | shadowResolution: 1 119 | shadowProjection: 1 120 | shadowCascades: 2 121 | shadowDistance: 40 122 | shadowNearPlaneOffset: 3 123 | shadowCascade2Split: 0.33333334 124 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 125 | shadowmaskMode: 1 126 | skinWeights: 2 127 | textureQuality: 0 128 | anisotropicTextures: 1 129 | antiAliasing: 0 130 | softParticles: 0 131 | softVegetation: 1 132 | realtimeReflectionProbes: 1 133 | billboardsFaceCameraPosition: 1 134 | vSyncCount: 1 135 | lodBias: 1 136 | maximumLODLevel: 0 137 | streamingMipmapsActive: 0 138 | streamingMipmapsAddAllCameras: 1 139 | streamingMipmapsMemoryBudget: 512 140 | streamingMipmapsRenderersPerFrame: 512 141 | streamingMipmapsMaxLevelReduction: 2 142 | streamingMipmapsMaxFileIORequests: 1024 143 | particleRaycastBudget: 256 144 | asyncUploadTimeSlice: 2 145 | asyncUploadBufferSize: 16 146 | asyncUploadPersistentBuffer: 1 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Very High 151 | pixelLightCount: 3 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 2 156 | shadowDistance: 70 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | skinWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 1.5 171 | maximumLODLevel: 0 172 | streamingMipmapsActive: 0 173 | streamingMipmapsAddAllCameras: 1 174 | streamingMipmapsMemoryBudget: 512 175 | streamingMipmapsRenderersPerFrame: 512 176 | streamingMipmapsMaxLevelReduction: 2 177 | streamingMipmapsMaxFileIORequests: 1024 178 | particleRaycastBudget: 1024 179 | asyncUploadTimeSlice: 2 180 | asyncUploadBufferSize: 16 181 | asyncUploadPersistentBuffer: 1 182 | resolutionScalingFixedDPIFactor: 1 183 | excludedTargetPlatforms: [] 184 | - serializedVersion: 2 185 | name: Ultra 186 | pixelLightCount: 4 187 | shadows: 2 188 | shadowResolution: 2 189 | shadowProjection: 1 190 | shadowCascades: 4 191 | shadowDistance: 150 192 | shadowNearPlaneOffset: 3 193 | shadowCascade2Split: 0.33333334 194 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 195 | shadowmaskMode: 1 196 | skinWeights: 255 197 | textureQuality: 0 198 | anisotropicTextures: 2 199 | antiAliasing: 2 200 | softParticles: 1 201 | softVegetation: 1 202 | realtimeReflectionProbes: 1 203 | billboardsFaceCameraPosition: 1 204 | vSyncCount: 1 205 | lodBias: 2 206 | maximumLODLevel: 0 207 | streamingMipmapsActive: 0 208 | streamingMipmapsAddAllCameras: 1 209 | streamingMipmapsMemoryBudget: 512 210 | streamingMipmapsRenderersPerFrame: 512 211 | streamingMipmapsMaxLevelReduction: 2 212 | streamingMipmapsMaxFileIORequests: 1024 213 | particleRaycastBudget: 4096 214 | asyncUploadTimeSlice: 2 215 | asyncUploadBufferSize: 16 216 | asyncUploadPersistentBuffer: 1 217 | resolutionScalingFixedDPIFactor: 1 218 | excludedTargetPlatforms: [] 219 | m_PerPlatformDefaultQuality: 220 | Android: 2 221 | Lumin: 5 222 | Nintendo Switch: 5 223 | PS4: 5 224 | Standalone: 5 225 | WebGL: 3 226 | Windows Store Apps: 5 227 | XboxOne: 5 228 | iPhone: 2 229 | tvOS: 2 230 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [Unity] Cut Screen Shader - Post Processing Stack V2 2 | Camera effect for PostProcessingStackV2 3 | 4 | ![](20190730_cutscreenshader.gif) 5 | 6 | # How to use 7 | 1. Install PostProcessingStackV2 in your Unity Project. 8 | 2. Add the folder "JfranMora" under Assets from this repository. 9 | 3. The camera effect is in JfranMora/CutScreen. 10 | 4. Enjoy! 11 | --------------------------------------------------------------------------------