diff --git a/.gitattributes b/.gitattributes index 8faa363..21d3263 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9,10 +9,4 @@ *.meta text eol=lf *.h text eol=lf -*.cpp text eol=lf -*.cc text eol=lf *.c text eol=lf - -*.sln text eol=crlf -*.vcxproj text eol=crlf -*.vcxproj.filters text eol=crlf diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..95dbb01 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,16 @@ +name: UPM on npsjs.com +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + registry-url: 'https://registry.npmjs.org' + - run: npm publish + working-directory: Packages/jp.keijiro.klak.spout + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/.gitignore b/.gitignore index db4db30..5967192 100644 --- a/.gitignore +++ b/.gitignore @@ -16,9 +16,11 @@ Desktop.ini # Unity /Library /Logs +/Recordings +/UserSettings /Temp # Plugin -/Plugin/build -/Plugin/build32 -/Plugin/build64 +/Plugin/*.o +/Plugin/*/*.o +/Plugin/*.dll diff --git a/Assets/Benchmark.unity b/Assets/Benchmark.unity new file mode 100644 index 0000000..9fd3fd0 --- /dev/null +++ b/Assets/Benchmark.unity @@ -0,0 +1,404 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074014, b: 0.3587274, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &230620106 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 230620107} + - component: {fileID: 230620109} + - component: {fileID: 230620108} + m_Layer: 0 + m_Name: Quad + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &230620107 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 230620106} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 1} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1114794565} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &230620108 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 230620106} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: c01d1eeee63acea418bafad09e507872, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &230620109 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 230620106} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &1114794563 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1114794565} + - component: {fileID: 1114794564} + m_Layer: 0 + m_Name: Senders + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1114794564 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1114794563} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d4da07adb0d7d9c4f83c62c2bca0bbd5, type: 3} + m_Name: + m_EditorClassIdentifier: + _resources: {fileID: 11400000, guid: f449ebbe2051c2e4d993eaa773a410de, type: 2} +--- !u!4 &1114794565 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1114794563} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1000, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 230620107} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1489483197 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1489483201} + - component: {fileID: 1489483200} + - component: {fileID: 1489483198} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1489483198 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1489483197} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_RenderShadows: 1 + m_RequiresDepthTextureOption: 2 + m_RequiresOpaqueTextureOption: 2 + m_CameraType: 0 + m_Cameras: [] + m_RendererIndex: -1 + m_VolumeLayerMask: + serializedVersion: 2 + m_Bits: 1 + m_VolumeTrigger: {fileID: 0} + m_RenderPostProcessing: 0 + m_Antialiasing: 0 + m_AntialiasingQuality: 2 + m_StopNaN: 0 + m_Dithering: 0 + m_ClearDepth: 1 + m_AllowXRRendering: 1 + m_RequiresDepthTexture: 0 + m_RequiresColorTexture: 0 + m_Version: 2 +--- !u!20 &1489483200 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1489483197} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: 0.059778087, g: 0.08422497, b: 0.122641504, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 1 + orthographic size: 0.5 + m_Depth: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 0 + m_AllowMSAA: 0 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 0 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1489483201 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1489483197} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -1} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1868758158 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1868758160} + - component: {fileID: 1868758159} + m_Layer: 0 + m_Name: Receivers + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1868758159 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1868758158} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4708590fedf20d04eb3da3b108de12ab, type: 3} + m_Name: + m_EditorClassIdentifier: + _mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} + _material: {fileID: 2100000, guid: 7d717d2aa323e5c469963ea9c0a6cbe9, type: 2} + _resources: {fileID: 11400000, guid: f449ebbe2051c2e4d993eaa773a410de, type: 2} +--- !u!4 &1868758160 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1868758158} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/Stress.unity.meta b/Assets/Benchmark.unity.meta similarity index 74% rename from Assets/Stress.unity.meta rename to Assets/Benchmark.unity.meta index 3badc11..d75ac0d 100644 --- a/Assets/Stress.unity.meta +++ b/Assets/Benchmark.unity.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7b522f2feebfbc049b1711f4c5f20e92 +guid: 58dcdb08bb9105547ba4115762d0ef21 DefaultImporter: externalObjects: {} userData: diff --git a/Packages/jp.keijiro.klak.spout/Plugin/x86_64.meta b/Assets/Buffer.meta similarity index 77% rename from Packages/jp.keijiro.klak.spout/Plugin/x86_64.meta rename to Assets/Buffer.meta index 379abd1..4e758e5 100644 --- a/Packages/jp.keijiro.klak.spout/Plugin/x86_64.meta +++ b/Assets/Buffer.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 402f60a0a041c0f45b17081110dc344f +guid: 71805b9365934684388c193b256c41a9 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/RenderTextures/Alpha.renderTexture b/Assets/Buffer/Alpha.renderTexture similarity index 75% rename from Assets/RenderTextures/Alpha.renderTexture rename to Assets/Buffer/Alpha.renderTexture index da87085..02ebcb8 100644 --- a/Assets/RenderTextures/Alpha.renderTexture +++ b/Assets/Buffer/Alpha.renderTexture @@ -4,23 +4,28 @@ RenderTexture: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_Name: Alpha m_ImageContentsHash: serializedVersion: 2 Hash: 00000000000000000000000000000000 m_ForcedFallbackFormat: 4 m_DownscaleFallback: 0 + m_IsAlphaChannelOptional: 0 + serializedVersion: 3 m_Width: 1280 m_Height: 720 - m_AntiAliasing: 8 + m_AntiAliasing: 1 + m_MipCount: -1 m_DepthFormat: 2 - m_ColorFormat: 0 + m_ColorFormat: 8 m_MipMap: 0 m_GenerateMips: 1 m_SRGB: 0 m_UseDynamicScale: 0 m_BindMS: 0 + m_EnableCompatibleFormat: 1 m_TextureSettings: serializedVersion: 2 m_FilterMode: 1 diff --git a/Assets/RenderTextures/Alpha.renderTexture.meta b/Assets/Buffer/Alpha.renderTexture.meta similarity index 79% rename from Assets/RenderTextures/Alpha.renderTexture.meta rename to Assets/Buffer/Alpha.renderTexture.meta index 4d0492b..39d56b2 100644 --- a/Assets/RenderTextures/Alpha.renderTexture.meta +++ b/Assets/Buffer/Alpha.renderTexture.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f40bbf24f16734245aa8829c1fd755a2 +guid: ff94f91c62216aa4b8b027f13fe15303 NativeFormatImporter: externalObjects: {} mainObjectFileID: 8400000 diff --git a/Assets/RenderTextures/Receiver.renderTexture b/Assets/Buffer/Gradient.renderTexture similarity index 75% rename from Assets/RenderTextures/Receiver.renderTexture rename to Assets/Buffer/Gradient.renderTexture index 530155f..43927af 100644 --- a/Assets/RenderTextures/Receiver.renderTexture +++ b/Assets/Buffer/Gradient.renderTexture @@ -4,23 +4,28 @@ RenderTexture: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: Receiver + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Gradient m_ImageContentsHash: serializedVersion: 2 Hash: 00000000000000000000000000000000 m_ForcedFallbackFormat: 4 m_DownscaleFallback: 0 + m_IsAlphaChannelOptional: 0 + serializedVersion: 3 m_Width: 1280 m_Height: 720 m_AntiAliasing: 1 + m_MipCount: -1 m_DepthFormat: 2 - m_ColorFormat: 0 + m_ColorFormat: 8 m_MipMap: 0 m_GenerateMips: 1 m_SRGB: 0 m_UseDynamicScale: 0 m_BindMS: 0 + m_EnableCompatibleFormat: 1 m_TextureSettings: serializedVersion: 2 m_FilterMode: 1 diff --git a/Assets/RenderTextures/Color.renderTexture.meta b/Assets/Buffer/Gradient.renderTexture.meta similarity index 79% rename from Assets/RenderTextures/Color.renderTexture.meta rename to Assets/Buffer/Gradient.renderTexture.meta index 1691a95..a23bb00 100644 --- a/Assets/RenderTextures/Color.renderTexture.meta +++ b/Assets/Buffer/Gradient.renderTexture.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 32afc7900213c854ba8ebc1c05648972 +guid: 73e8dcdfe3f22594693dc569656418c6 NativeFormatImporter: externalObjects: {} mainObjectFileID: 8400000 diff --git a/Assets/RenderTextures/Shutter.renderTexture b/Assets/Buffer/Timecode.renderTexture similarity index 75% rename from Assets/RenderTextures/Shutter.renderTexture rename to Assets/Buffer/Timecode.renderTexture index 4c1aa68..a247c5a 100644 --- a/Assets/RenderTextures/Shutter.renderTexture +++ b/Assets/Buffer/Timecode.renderTexture @@ -4,23 +4,28 @@ RenderTexture: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: Shutter + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Timecode m_ImageContentsHash: serializedVersion: 2 Hash: 00000000000000000000000000000000 m_ForcedFallbackFormat: 4 m_DownscaleFallback: 0 + m_IsAlphaChannelOptional: 0 + serializedVersion: 3 m_Width: 1280 m_Height: 720 m_AntiAliasing: 1 + m_MipCount: -1 m_DepthFormat: 2 - m_ColorFormat: 0 + m_ColorFormat: 8 m_MipMap: 0 m_GenerateMips: 1 m_SRGB: 0 m_UseDynamicScale: 0 m_BindMS: 0 + m_EnableCompatibleFormat: 1 m_TextureSettings: serializedVersion: 2 m_FilterMode: 1 diff --git a/Assets/RenderTextures/Shutter.renderTexture.meta b/Assets/Buffer/Timecode.renderTexture.meta similarity index 79% rename from Assets/RenderTextures/Shutter.renderTexture.meta rename to Assets/Buffer/Timecode.renderTexture.meta index f109e47..d7d8033 100644 --- a/Assets/RenderTextures/Shutter.renderTexture.meta +++ b/Assets/Buffer/Timecode.renderTexture.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 35c93f0d33b8ff74bbbd1a5786965543 +guid: 9ea82f700d9e65841ae79a62180986d5 NativeFormatImporter: externalObjects: {} mainObjectFileID: 8400000 diff --git a/Assets/Quad.unity b/Assets/Quad.unity deleted file mode 100644 index 13a9162..0000000 --- a/Assets/Quad.unity +++ /dev/null @@ -1,6907 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.18028583, g: 0.22571579, b: 0.3069232, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &115123631 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 115123632} - m_Layer: 0 - m_Name: Senders - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &115123632 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 115123631} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 238155384} - - {fileID: 1187249423} - - {fileID: 1842315563} - - {fileID: 817111957} - m_Father: {fileID: 0} - m_RootOrder: 6 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &139088880 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 139088881} - m_Layer: 5 - m_Name: Alpha - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &139088881 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 139088880} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1845268783} - - {fileID: 1904679014} - m_Father: {fileID: 241361479} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -4, y: -4} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &180353426 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 180353427} - - component: {fileID: 180353429} - - component: {fileID: 180353428} - m_Layer: 5 - m_Name: Item Background - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &180353427 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 180353426} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 201173784} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &180353428 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 180353426} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 ---- !u!222 &180353429 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 180353426} - m_CullTransparentMesh: 0 ---- !u!1 &201173783 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 201173784} - - component: {fileID: 201173785} - m_Layer: 5 - m_Name: Item - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &201173784 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 201173783} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 180353427} - - {fileID: 731124111} - - {fileID: 1675726405} - m_Father: {fileID: 1677821827} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5} - m_AnchorMax: {x: 1, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &201173785 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 201173783} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 2109663825, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 180353428} - toggleTransition: 1 - graphic: {fileID: 731124112} - m_Group: {fileID: 0} - onValueChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.Toggle+ToggleEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null - m_IsOn: 1 ---- !u!1 &230785090 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 230785091} - - component: {fileID: 230785094} - - component: {fileID: 230785093} - - component: {fileID: 230785092} - m_Layer: 5 - m_Name: Scrollbar - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &230785091 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230785090} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 343322506} - m_Father: {fileID: 437581285} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 0} - m_Pivot: {x: 1, y: 1} ---- !u!114 &230785092 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230785090} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -2061169968, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 592277018} - m_HandleRect: {fileID: 592277017} - m_Direction: 2 - m_Value: 0 - m_Size: 0.2 - m_NumberOfSteps: 0 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.Scrollbar+ScrollEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null ---- !u!114 &230785093 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230785090} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 ---- !u!222 &230785094 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230785090} - m_CullTransparentMesh: 0 ---- !u!1 &238155383 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 238155384} - - component: {fileID: 238155385} - m_Layer: 0 - m_Name: KlakSpout (Alpha) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &238155384 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 238155383} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 115123632} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &238155385 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 238155383} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 8400000, guid: f40bbf24f16734245aa8829c1fd755a2, type: 2} - _alphaSupport: 1 ---- !u!1 &241361475 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 241361479} - - component: {fileID: 241361478} - - component: {fileID: 241361477} - - component: {fileID: 241361476} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &241361476 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 241361475} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &241361477 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 241361475} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &241361478 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 241361475} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 817111956} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &241361479 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 241361475} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 139088881} - - {fileID: 435379184} - - {fileID: 647156382} - - {fileID: 1419381661} - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!1 &266595429 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 266595432} - - component: {fileID: 266595431} - - component: {fileID: 266595430} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &266595430 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 266595429} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &266595431 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 266595429} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &266595432 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 266595429} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &287557696 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 287557699} - - component: {fileID: 287557698} - - component: {fileID: 287557697} - m_Layer: 0 - m_Name: Shutter - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &287557697 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 287557696} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 09e531f25570e604d8fb78aee77125a9, type: 3} - m_Name: - m_EditorClassIdentifier: - _mode: 4 - _color: {r: 0.5, g: 0.5, b: 0.5, a: 1} - _scale: 4 - _shader: {fileID: 4800000, guid: bc6a0edaa182a35449d12a1445ba38db, type: 3} ---- !u!20 &287557698 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 287557696} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 1, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 100 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &287557699 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 287557696} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 5 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &335734061 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 335734062} - - component: {fileID: 335734064} - - component: {fileID: 335734063} - m_Layer: 5 - m_Name: Label - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &335734062 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 335734061} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1820321995} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: -7.5, y: -0.5} - m_SizeDelta: {x: -35, y: -13} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &335734063 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 335734061} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 3 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Source Name ---- !u!222 &335734064 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 335734061} - m_CullTransparentMesh: 0 ---- !u!1 &343322505 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 343322506} - m_Layer: 5 - m_Name: Sliding Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &343322506 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 343322505} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 592277017} - m_Father: {fileID: 230785091} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &358741779 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 358741782} - - component: {fileID: 358741781} - - component: {fileID: 358741780} - m_Layer: 0 - m_Name: Color - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &358741780 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 358741779} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 09e531f25570e604d8fb78aee77125a9, type: 3} - m_Name: - m_EditorClassIdentifier: - _mode: 3 - _color: {r: 0.5, g: 0.5, b: 0.5, a: 1} - _scale: 4 - _shader: {fileID: 4800000, guid: bc6a0edaa182a35449d12a1445ba38db, type: 3} ---- !u!20 &358741781 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 358741779} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 1, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 100 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 32afc7900213c854ba8ebc1c05648972, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &358741782 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 358741779} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &374274675 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 374274677} - - component: {fileID: 374274676} - m_Layer: 0 - m_Name: Alpha - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!20 &374274676 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 374274675} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0.5019608, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 100 - field of view: 30 - orthographic: 0 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: f40bbf24f16734245aa8829c1fd755a2, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &374274677 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 374274675} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1135562394} - - {fileID: 1279393434} - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &435379183 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 435379184} - - component: {fileID: 435379186} - - component: {fileID: 435379185} - m_Layer: 5 - m_Name: Color - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &435379184 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 435379183} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 241361479} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -4, y: -4} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &435379185 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 435379183} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 32afc7900213c854ba8ebc1c05648972, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &435379186 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 435379183} - m_CullTransparentMesh: 0 ---- !u!1 &437581284 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 437581285} - - component: {fileID: 437581288} - - component: {fileID: 437581287} - - component: {fileID: 437581286} - m_Layer: 5 - m_Name: Template - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &437581285 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 437581284} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1871897326} - - {fileID: 230785091} - m_Father: {fileID: 1820321995} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: 0, y: 2} - m_SizeDelta: {x: 0, y: 150} - m_Pivot: {x: 0.5, y: 1} ---- !u!114 &437581286 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 437581284} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1367256648, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Content: {fileID: 1677821827} - m_Horizontal: 0 - m_Vertical: 1 - m_MovementType: 2 - m_Elasticity: 0.1 - m_Inertia: 1 - m_DecelerationRate: 0.135 - m_ScrollSensitivity: 1 - m_Viewport: {fileID: 1871897326} - m_HorizontalScrollbar: {fileID: 0} - m_VerticalScrollbar: {fileID: 230785092} - m_HorizontalScrollbarVisibility: 0 - m_VerticalScrollbarVisibility: 2 - m_HorizontalScrollbarSpacing: 0 - m_VerticalScrollbarSpacing: -3 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.ScrollRect+ScrollRectEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null ---- !u!114 &437581287 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 437581284} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 ---- !u!222 &437581288 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 437581284} - m_CullTransparentMesh: 0 ---- !u!1 &592277016 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 592277017} - - component: {fileID: 592277019} - - component: {fileID: 592277018} - m_Layer: 5 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &592277017 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 592277016} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 343322506} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 0.2} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &592277018 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 592277016} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 ---- !u!222 &592277019 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 592277016} - m_CullTransparentMesh: 0 ---- !u!1 &647156381 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 647156382} - - component: {fileID: 647156384} - - component: {fileID: 647156383} - m_Layer: 5 - m_Name: Receiver - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &647156382 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 647156381} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1820321995} - m_Father: {fileID: 241361479} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -4, y: -4} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &647156383 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 647156381} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: df6e7f57031575449b1f885f026026a6, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &647156384 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 647156381} - m_CullTransparentMesh: 0 ---- !u!1 &731124110 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 731124111} - - component: {fileID: 731124113} - - component: {fileID: 731124112} - m_Layer: 5 - m_Name: Item Checkmark - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &731124111 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 731124110} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 201173784} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5} - m_AnchorMax: {x: 0, y: 0.5} - m_AnchoredPosition: {x: 10, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &731124112 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 731124110} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 ---- !u!222 &731124113 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 731124110} - m_CullTransparentMesh: 0 ---- !u!1 &817111954 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 817111957} - - component: {fileID: 817111956} - - component: {fileID: 817111955} - m_Layer: 0 - m_Name: KlakSpout (Quad View) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &817111955 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 817111954} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &817111956 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 817111954} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &817111957 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 817111954} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 115123632} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1135562393 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1135562394} - - component: {fileID: 1135562396} - - component: {fileID: 1135562395} - m_Layer: 0 - m_Name: Particle System - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1135562394 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1135562393} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 374274677} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!199 &1135562395 -ParticleSystemRenderer: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1135562393} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 0 - m_ReflectionProbeUsage: 0 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_RenderMode: 4 - m_SortMode: 0 - m_MinParticleSize: 0 - m_MaxParticleSize: 0.5 - m_CameraVelocityScale: 0 - m_VelocityScale: 0 - m_LengthScale: 2 - m_SortingFudge: 0 - m_NormalDirection: 1 - m_RenderAlignment: 1 - m_Pivot: {x: 0, y: 0, z: 0} - m_UseCustomVertexStreams: 0 - m_EnableGPUInstancing: 1 - m_ApplyActiveColorSpace: 0 - m_VertexStreams: 00010304 - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} - m_Mesh1: {fileID: 0} - m_Mesh2: {fileID: 0} - m_Mesh3: {fileID: 0} - m_MaskInteraction: 0 ---- !u!198 &1135562396 -ParticleSystem: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1135562393} - serializedVersion: 5 - lengthInSec: 5 - simulationSpeed: 1 - stopAction: 0 - looping: 1 - prewarm: 0 - playOnAwake: 1 - useUnscaledTime: 0 - autoRandomSeed: 1 - useRigidbodyForVelocity: 1 - startDelay: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - moveWithTransform: 1 - moveWithCustomTransform: {fileID: 0} - scalingMode: 1 - randomSeed: 0 - InitialModule: - serializedVersion: 3 - enabled: 1 - startLifetime: - serializedVersion: 2 - minMaxState: 3 - scalar: 5 - minScalar: 4 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - startSpeed: - serializedVersion: 2 - minMaxState: 3 - scalar: 0.4 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - startColor: - serializedVersion: 2 - minMaxState: 0 - minColor: {r: 1, g: 1, b: 1, a: 1} - maxColor: {r: 1, g: 1, b: 1, a: 1} - maxGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - minGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - startSize: - serializedVersion: 2 - minMaxState: 3 - scalar: 0.5 - minScalar: 0.1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - startSizeY: - serializedVersion: 2 - minMaxState: 3 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - startSizeZ: - serializedVersion: 2 - minMaxState: 3 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - startRotationX: - serializedVersion: 2 - minMaxState: 3 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - startRotationY: - serializedVersion: 2 - minMaxState: 3 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - startRotation: - serializedVersion: 2 - minMaxState: 3 - scalar: 3.1415925 - minScalar: -3.1415925 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - randomizeRotationDirection: 0 - maxNumParticles: 1000 - size3D: 0 - rotation3D: 0 - gravityModifier: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - ShapeModule: - serializedVersion: 5 - enabled: 1 - type: 0 - angle: 25 - length: 5 - boxThickness: {x: 0, y: 0, z: 0} - radiusThickness: 1 - donutRadius: 0.2 - m_Position: {x: 0, y: 0, z: 0} - m_Rotation: {x: 0, y: 0, z: 0} - m_Scale: {x: 1, y: 1, z: 1} - placementMode: 0 - m_MeshMaterialIndex: 0 - m_MeshNormalOffset: 0 - m_Mesh: {fileID: 0} - m_MeshRenderer: {fileID: 0} - m_SkinnedMeshRenderer: {fileID: 0} - m_Sprite: {fileID: 0} - m_SpriteRenderer: {fileID: 0} - m_UseMeshMaterialIndex: 0 - m_UseMeshColors: 1 - alignToDirection: 0 - m_Texture: {fileID: 0} - m_TextureClipChannel: 3 - m_TextureClipThreshold: 0 - m_TextureUVChannel: 0 - m_TextureColorAffectsParticles: 1 - m_TextureAlphaAffectsParticles: 1 - m_TextureBilinearFiltering: 0 - randomDirectionAmount: 1 - sphericalDirectionAmount: 0 - randomPositionAmount: 0 - radius: - value: 10 - mode: 0 - spread: 0 - speed: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - arc: - value: 360 - mode: 0 - spread: 0 - speed: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - EmissionModule: - enabled: 1 - serializedVersion: 4 - rateOverTime: - serializedVersion: 2 - minMaxState: 0 - scalar: 100 - minScalar: 10 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - rateOverDistance: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - m_BurstCount: 0 - m_Bursts: [] - SizeModule: - enabled: 1 - curve: - serializedVersion: 2 - minMaxState: 1 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 12.480291 - outSlope: 12.480291 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.3144125 - - serializedVersion: 3 - time: 0.1622655 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 0.80636746 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: -11.219741 - outSlope: -11.219741 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.1553774 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - y: - serializedVersion: 2 - minMaxState: 1 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 1 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - z: - serializedVersion: 2 - minMaxState: 1 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 1 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - separateAxes: 0 - RotationModule: - enabled: 1 - x: - serializedVersion: 2 - minMaxState: 3 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - y: - serializedVersion: 2 - minMaxState: 3 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - curve: - serializedVersion: 2 - minMaxState: 3 - scalar: 0.5235988 - minScalar: -0.5235988 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - separateAxes: 0 - ColorModule: - enabled: 0 - gradient: - serializedVersion: 2 - minMaxState: 1 - minColor: {r: 1, g: 1, b: 1, a: 1} - maxColor: {r: 1, g: 1, b: 1, a: 1} - maxGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - minGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - UVModule: - enabled: 0 - mode: 0 - frameOverTime: - serializedVersion: 2 - minMaxState: 1 - scalar: 0.9999 - minScalar: 0.9999 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 1 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - startFrame: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - tilesX: 1 - tilesY: 1 - animationType: 0 - rowIndex: 0 - cycles: 1 - uvChannelMask: -1 - flipU: 0 - flipV: 0 - randomRow: 1 - sprites: - - sprite: {fileID: 0} - VelocityModule: - enabled: 0 - x: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - y: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - z: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - orbitalX: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - orbitalY: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - orbitalZ: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - orbitalOffsetX: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - orbitalOffsetY: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - orbitalOffsetZ: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - radial: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - speedModifier: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - inWorldSpace: 0 - InheritVelocityModule: - enabled: 0 - m_Mode: 0 - m_Curve: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - ForceModule: - enabled: 0 - x: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - y: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - z: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - inWorldSpace: 0 - randomizePerFrame: 0 - ExternalForcesModule: - enabled: 0 - multiplier: 1 - ClampVelocityModule: - enabled: 0 - x: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - y: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - z: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - magnitude: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - separateAxis: 0 - inWorldSpace: 0 - multiplyDragByParticleSize: 1 - multiplyDragByParticleVelocity: 1 - dampen: 0 - drag: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - NoiseModule: - enabled: 0 - strength: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - strengthY: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - strengthZ: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - separateAxes: 0 - frequency: 0.5 - damping: 1 - octaves: 1 - octaveMultiplier: 0.5 - octaveScale: 2 - quality: 2 - scrollSpeed: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - remap: - serializedVersion: 2 - minMaxState: 1 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 1 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - remapY: - serializedVersion: 2 - minMaxState: 1 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 1 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - remapZ: - serializedVersion: 2 - minMaxState: 1 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 1 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - remapEnabled: 0 - positionAmount: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - rotationAmount: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - sizeAmount: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - SizeBySpeedModule: - enabled: 0 - curve: - serializedVersion: 2 - minMaxState: 1 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 1 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - y: - serializedVersion: 2 - minMaxState: 1 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 1 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - z: - serializedVersion: 2 - minMaxState: 1 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 1 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - range: {x: 0, y: 1} - separateAxes: 0 - RotationBySpeedModule: - enabled: 0 - x: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - y: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - curve: - serializedVersion: 2 - minMaxState: 0 - scalar: 0.7853982 - minScalar: 0.7853982 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - separateAxes: 0 - range: {x: 0, y: 1} - ColorBySpeedModule: - enabled: 0 - gradient: - serializedVersion: 2 - minMaxState: 1 - minColor: {r: 1, g: 1, b: 1, a: 1} - maxColor: {r: 1, g: 1, b: 1, a: 1} - maxGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - minGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - range: {x: 0, y: 1} - CollisionModule: - enabled: 0 - serializedVersion: 3 - type: 0 - collisionMode: 0 - colliderForce: 0 - multiplyColliderForceByParticleSize: 0 - multiplyColliderForceByParticleSpeed: 0 - multiplyColliderForceByCollisionAngle: 1 - plane0: {fileID: 0} - plane1: {fileID: 0} - plane2: {fileID: 0} - plane3: {fileID: 0} - plane4: {fileID: 0} - plane5: {fileID: 0} - m_Dampen: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - m_Bounce: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - m_EnergyLossOnCollision: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minKillSpeed: 0 - maxKillSpeed: 10000 - radiusScale: 1 - collidesWith: - serializedVersion: 2 - m_Bits: 4294967295 - maxCollisionShapes: 256 - quality: 0 - voxelSize: 0.5 - collisionMessages: 0 - collidesWithDynamic: 1 - interiorCollisions: 0 - TriggerModule: - enabled: 0 - collisionShape0: {fileID: 0} - collisionShape1: {fileID: 0} - collisionShape2: {fileID: 0} - collisionShape3: {fileID: 0} - collisionShape4: {fileID: 0} - collisionShape5: {fileID: 0} - inside: 1 - outside: 0 - enter: 0 - exit: 0 - radiusScale: 1 - SubModule: - serializedVersion: 2 - enabled: 0 - subEmitters: - - serializedVersion: 2 - emitter: {fileID: 0} - type: 0 - properties: 0 - LightsModule: - enabled: 0 - ratio: 0 - light: {fileID: 0} - randomDistribution: 1 - color: 1 - range: 1 - intensity: 1 - rangeCurve: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - intensityCurve: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - maxLights: 20 - TrailModule: - enabled: 0 - mode: 0 - ratio: 1 - lifetime: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minVertexDistance: 0.2 - textureMode: 0 - ribbonCount: 1 - worldSpace: 0 - dieWithParticles: 1 - sizeAffectsWidth: 1 - sizeAffectsLifetime: 0 - inheritParticleColor: 1 - generateLightingData: 0 - splitSubEmitterRibbons: 0 - colorOverLifetime: - serializedVersion: 2 - minMaxState: 0 - minColor: {r: 1, g: 1, b: 1, a: 1} - maxColor: {r: 1, g: 1, b: 1, a: 1} - maxGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - minGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - widthOverTrail: - serializedVersion: 2 - minMaxState: 0 - scalar: 1 - minScalar: 1 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - colorOverTrail: - serializedVersion: 2 - minMaxState: 0 - minColor: {r: 1, g: 1, b: 1, a: 1} - maxColor: {r: 1, g: 1, b: 1, a: 1} - maxGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - minGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - CustomDataModule: - enabled: 0 - mode0: 0 - vectorComponentCount0: 4 - color0: - serializedVersion: 2 - minMaxState: 0 - minColor: {r: 1, g: 1, b: 1, a: 1} - maxColor: {r: 1, g: 1, b: 1, a: 1} - maxGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - minGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - colorLabel0: Color - vector0_0: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - vectorLabel0_0: X - vector0_1: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - vectorLabel0_1: Y - vector0_2: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - vectorLabel0_2: Z - vector0_3: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - vectorLabel0_3: W - mode1: 0 - vectorComponentCount1: 4 - color1: - serializedVersion: 2 - minMaxState: 0 - minColor: {r: 1, g: 1, b: 1, a: 1} - maxColor: {r: 1, g: 1, b: 1, a: 1} - maxGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - minGradient: - serializedVersion: 2 - key0: {r: 1, g: 1, b: 1, a: 1} - key1: {r: 1, g: 1, b: 1, a: 1} - key2: {r: 0, g: 0, b: 0, a: 0} - key3: {r: 0, g: 0, b: 0, a: 0} - key4: {r: 0, g: 0, b: 0, a: 0} - key5: {r: 0, g: 0, b: 0, a: 0} - key6: {r: 0, g: 0, b: 0, a: 0} - key7: {r: 0, g: 0, b: 0, a: 0} - ctime0: 0 - ctime1: 65535 - ctime2: 0 - ctime3: 0 - ctime4: 0 - ctime5: 0 - ctime6: 0 - ctime7: 0 - atime0: 0 - atime1: 65535 - atime2: 0 - atime3: 0 - atime4: 0 - atime5: 0 - atime6: 0 - atime7: 0 - m_Mode: 0 - m_NumColorKeys: 2 - m_NumAlphaKeys: 2 - colorLabel1: Color - vector1_0: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - vectorLabel1_0: X - vector1_1: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - vectorLabel1_1: Y - vector1_2: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - vectorLabel1_2: Z - vector1_3: - serializedVersion: 2 - minMaxState: 0 - scalar: 0 - minScalar: 0 - maxCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - minCurve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - vectorLabel1_3: W ---- !u!1 &1187249422 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1187249423} - - component: {fileID: 1187249424} - m_Layer: 0 - m_Name: KlakSpout (Color) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1187249423 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1187249422} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 115123632} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1187249424 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1187249422} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 8400000, guid: 32afc7900213c854ba8ebc1c05648972, type: 2} - _alphaSupport: 0 ---- !u!1 &1279393433 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1279393434} - - component: {fileID: 1279393435} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1279393434 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1279393433} - m_LocalRotation: {x: 0.34618863, y: 0.5198367, z: -0.24240384, w: 0.742404} - m_LocalPosition: {x: 0, y: 0, z: 10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 374274677} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: 70, z: 0} ---- !u!108 &1279393435 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1279393433} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_Intensity: 0.76 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 0 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!1 &1419381660 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1419381661} - - component: {fileID: 1419381663} - - component: {fileID: 1419381662} - m_Layer: 5 - m_Name: Shutter - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1419381661 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1419381660} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 241361479} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0} - m_AnchorMax: {x: 1, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -4, y: -4} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1419381662 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1419381660} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1419381663 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1419381660} - m_CullTransparentMesh: 0 ---- !u!1 &1675726404 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1675726405} - - component: {fileID: 1675726407} - - component: {fileID: 1675726406} - m_Layer: 5 - m_Name: Item Label - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1675726405 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1675726404} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 201173784} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 5, y: -0.5} - m_SizeDelta: {x: -30, y: -3} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1675726406 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1675726404} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 3 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Option A ---- !u!222 &1675726407 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1675726404} - m_CullTransparentMesh: 0 ---- !u!1 &1677821826 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1677821827} - m_Layer: 5 - m_Name: Content - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1677821827 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1677821826} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 201173784} - m_Father: {fileID: 1871897326} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 28} - m_Pivot: {x: 0.5, y: 1} ---- !u!1 &1725766073 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1725766075} - - component: {fileID: 1725766074} - - component: {fileID: 1725766076} - m_Layer: 0 - m_Name: Receiver - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1725766074 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1725766073} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Spout Sender - _targetTexture: {fileID: 8400000, guid: df6e7f57031575449b1f885f026026a6, type: 2} - _targetRenderer: {fileID: 0} - _targetMaterialProperty: ---- !u!4 &1725766075 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1725766073} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 4 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1725766076 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1725766073} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: db99d431bbbd927408de456fbee2d7ea, type: 3} - m_Name: - m_EditorClassIdentifier: - _dropdown: {fileID: 1820321997} ---- !u!1 &1820321994 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1820321995} - - component: {fileID: 1820321999} - - component: {fileID: 1820321998} - - component: {fileID: 1820321997} - m_Layer: 5 - m_Name: Dropdown - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1820321995 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1820321994} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 335734062} - - {fileID: 2094485667} - - {fileID: 437581285} - m_Father: {fileID: 647156382} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 102, y: -17} - m_SizeDelta: {x: 200, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1820321997 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1820321994} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 853051423, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 1820321998} - m_Template: {fileID: 437581285} - m_CaptionText: {fileID: 335734063} - m_CaptionImage: {fileID: 0} - m_ItemText: {fileID: 1675726406} - m_ItemImage: {fileID: 0} - m_Value: 0 - m_Options: - m_Options: - - m_Text: Source Name - m_Image: {fileID: 0} - m_OnValueChanged: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 1725766076} - m_MethodName: OnChangeValue - m_Mode: 0 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 - m_TypeName: UnityEngine.UI.Dropdown+DropdownEvent, UnityEngine.UI, Version=1.0.0.0, - Culture=neutral, PublicKeyToken=null ---- !u!114 &1820321998 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1820321994} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 ---- !u!222 &1820321999 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1820321994} - m_CullTransparentMesh: 0 ---- !u!1 &1842315562 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1842315563} - - component: {fileID: 1842315564} - m_Layer: 0 - m_Name: KlakSpout (Shutter) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1842315563 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1842315562} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 115123632} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1842315564 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1842315562} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - _alphaSupport: 0 ---- !u!1 &1845268782 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1845268783} - - component: {fileID: 1845268785} - - component: {fileID: 1845268784} - m_Layer: 5 - m_Name: Matte - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1845268783 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1845268782} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 139088881} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1845268784 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1845268782} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.5019608, b: 0, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 0} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1845268785 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1845268782} - m_CullTransparentMesh: 0 ---- !u!1 &1871897325 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1871897326} - - component: {fileID: 1871897329} - - component: {fileID: 1871897328} - - component: {fileID: 1871897327} - m_Layer: 5 - m_Name: Viewport - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1871897326 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1871897325} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1677821827} - m_Father: {fileID: 437581285} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -18, y: 0} - m_Pivot: {x: 0, y: 1} ---- !u!114 &1871897327 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1871897325} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 ---- !u!222 &1871897328 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1871897325} - m_CullTransparentMesh: 0 ---- !u!114 &1871897329 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1871897325} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -1200242548, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_ShowMaskGraphic: 0 ---- !u!1 &1904679013 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1904679014} - - component: {fileID: 1904679016} - - component: {fileID: 1904679015} - m_Layer: 5 - m_Name: Image - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1904679014 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1904679013} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 139088881} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1904679015 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1904679013} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: f40bbf24f16734245aa8829c1fd755a2, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1904679016 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1904679013} - m_CullTransparentMesh: 0 ---- !u!1 &2094485666 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2094485667} - - component: {fileID: 2094485669} - - component: {fileID: 2094485668} - m_Layer: 5 - m_Name: Arrow - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2094485667 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2094485666} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1820321995} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 0.5} - m_AnchorMax: {x: 1, y: 0.5} - m_AnchoredPosition: {x: -15, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2094485668 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2094485666} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10915, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 ---- !u!222 &2094485669 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2094485666} - m_CullTransparentMesh: 0 diff --git a/Assets/Quad.unity.meta b/Assets/Quad.unity.meta deleted file mode 100644 index 16b5aeb..0000000 --- a/Assets/Quad.unity.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c102c4b7108b0844f89cbc73fd8a8fb6 -timeCreated: 1491794038 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/RenderTextures/Color.renderTexture b/Assets/RenderTextures/Color.renderTexture deleted file mode 100644 index 4f3d86f..0000000 --- a/Assets/RenderTextures/Color.renderTexture +++ /dev/null @@ -1,33 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!84 &8400000 -RenderTexture: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: Color - m_ImageContentsHash: - serializedVersion: 2 - Hash: 00000000000000000000000000000000 - m_ForcedFallbackFormat: 4 - m_DownscaleFallback: 0 - m_Width: 1280 - m_Height: 720 - m_AntiAliasing: 1 - m_DepthFormat: 2 - m_ColorFormat: 0 - m_MipMap: 0 - m_GenerateMips: 1 - m_SRGB: 0 - m_UseDynamicScale: 0 - m_BindMS: 0 - m_TextureSettings: - serializedVersion: 2 - m_FilterMode: 1 - m_Aniso: 0 - m_MipBias: 0 - m_WrapU: 1 - m_WrapV: 1 - m_WrapW: 1 - m_Dimension: 2 - m_VolumeDepth: 1 diff --git a/Assets/RenderTextures/Receiver.renderTexture.meta b/Assets/RenderTextures/Receiver.renderTexture.meta deleted file mode 100644 index 2d72ca9..0000000 --- a/Assets/RenderTextures/Receiver.renderTexture.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: df6e7f57031575449b1f885f026026a6 -timeCreated: 1491923017 -licenseType: Pro -NativeFormatImporter: - mainObjectFileID: 8400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/RenderTextures/Small.renderTexture b/Assets/RenderTextures/Small.renderTexture deleted file mode 100644 index 9540818..0000000 --- a/Assets/RenderTextures/Small.renderTexture +++ /dev/null @@ -1,33 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!84 &8400000 -RenderTexture: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: Small - m_ImageContentsHash: - serializedVersion: 2 - Hash: 00000000000000000000000000000000 - m_ForcedFallbackFormat: 4 - m_DownscaleFallback: 0 - m_Width: 640 - m_Height: 360 - m_AntiAliasing: 1 - m_DepthFormat: 2 - m_ColorFormat: 0 - m_MipMap: 0 - m_GenerateMips: 1 - m_SRGB: 0 - m_UseDynamicScale: 0 - m_BindMS: 0 - m_TextureSettings: - serializedVersion: 2 - m_FilterMode: 1 - m_Aniso: 0 - m_MipBias: 0 - m_WrapU: 1 - m_WrapV: 1 - m_WrapW: 1 - m_Dimension: 2 - m_VolumeDepth: 1 diff --git a/Assets/Script.meta b/Assets/Script.meta index f858bdc..5353a1c 100644 --- a/Assets/Script.meta +++ b/Assets/Script.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 71121c4752056344da0f1984fd4b9eb9 +guid: 5bacb3f46bf57c54385422a1cd07711b folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Script/Randomizer.cs b/Assets/Script/Randomizer.cs deleted file mode 100644 index db867ea..0000000 --- a/Assets/Script/Randomizer.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; -using UnityEngine.SceneManagement; -using System.Collections; - -public class Randomizer : MonoBehaviour -{ - [SerializeField] GameObject[] _objects = null; - - IEnumerator Start() - { - yield return new WaitForSeconds(3); - SceneManager.LoadScene("Stress"); - } - - void Update() - { - var count = Random.Range(1, 4); - for (var i = 0; i < count; i++) - { - var index = Random.Range(0, _objects.Length); - _objects[index].SetActive(!_objects[index].activeSelf); - } - } -} diff --git a/Assets/Script/ReceiverBenchmark.cs b/Assets/Script/ReceiverBenchmark.cs new file mode 100644 index 0000000..073e10f --- /dev/null +++ b/Assets/Script/ReceiverBenchmark.cs @@ -0,0 +1,65 @@ +using UnityEngine; +using Klak.Spout; + +class ReceiverBenchmark : MonoBehaviour +{ + [SerializeField] Mesh _mesh = null; + [SerializeField] Material _material = null; + [SerializeField] SpoutResources _resources = null; + + GameObject[] _instances = new GameObject[16]; + + System.Collections.IEnumerator Start() + { + for (var index = 0; index < 16; index++) + _instances[index] = CreateInstance(index); + + var interval = new WaitForSeconds(0.3f); + + while (true) + { + var index = Random.Range(0, 15); + + if (_instances[index] == null) + { + _instances[index] = CreateInstance(index); + } + else + { + Destroy(_instances[index]); + _instances[index] = null; + } + + yield return interval; + } + } + + GameObject CreateInstance(int index) + { + var components = new [] + { typeof(MeshFilter), typeof(MeshRenderer), typeof(SpoutReceiver) }; + + var go = new GameObject($"Receiver {index}", components); + + var x = (index % 4 + 0.5f) / 4 - 0.5f; + var y = (index / 4 + 0.5f) / 4 - 0.5f; + + go.transform.parent = transform; + go.transform.localPosition = new Vector3(x, y, 0); + go.transform.localScale = Vector3.one / 4; + + var mf = go.GetComponent(); + mf.sharedMesh = _mesh; + + var mr = go.GetComponent(); + mr.sharedMaterial = _material; + + var receiver = go.GetComponent(); + receiver.SetResources(_resources); + receiver.sourceName = $"Sender {index}"; + receiver.targetRenderer = mr; + receiver.targetMaterialProperty = "_MainTex"; + + return go; + } +} diff --git a/Assets/Script/Randomizer.cs.meta b/Assets/Script/ReceiverBenchmark.cs.meta similarity index 83% rename from Assets/Script/Randomizer.cs.meta rename to Assets/Script/ReceiverBenchmark.cs.meta index 59dfa6a..20ead74 100644 --- a/Assets/Script/Randomizer.cs.meta +++ b/Assets/Script/ReceiverBenchmark.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6518127bfe3cc36408250c95735192be +guid: 4708590fedf20d04eb3da3b108de12ab MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Script/SenderBenchmark.cs b/Assets/Script/SenderBenchmark.cs new file mode 100644 index 0000000..7dc71f5 --- /dev/null +++ b/Assets/Script/SenderBenchmark.cs @@ -0,0 +1,64 @@ +using UnityEngine; +using Klak.Spout; + +class SenderBenchmark : MonoBehaviour +{ + [SerializeField] SpoutResources _resources = null; + + RenderTexture _targetRT; + GameObject[] _instances = new GameObject[16]; + + System.Collections.IEnumerator Start() + { + _targetRT = new RenderTexture(256, 256, 32); + + for (var index = 0; index < 16; index++) + _instances[index] = CreateInstance(index); + + var interval = new WaitForSeconds(0.3f); + + while (true) + { + var index = Random.Range(0, 15); + + if (_instances[index] == null) + { + _instances[index] = CreateInstance(index); + } + else + { + Destroy(_instances[index]); + _instances[index] = null; + } + + yield return interval; + } + } + + GameObject CreateInstance(int index) + { + var components = new [] { typeof(Camera), typeof(SpoutSender) }; + + var go = new GameObject($"Sender {index}", components); + + var x = (index % 4 + 0.5f) / 4 - 0.5f; + var y = (index / 4 + 0.5f) / 4 - 0.5f; + + go.transform.parent = transform; + go.transform.localPosition = new Vector3(x, y, -10); + + var camera = go.GetComponent(); + camera.orthographic = true; + camera.orthographicSize = 0.5f / 4; + camera.targetTexture = _targetRT; + + var sender = go.GetComponent(); + sender.SetResources(_resources); + sender.spoutName = go.name; + sender.keepAlpha = true; + sender.captureMethod = CaptureMethod.Camera; + sender.sourceCamera = camera; + + return go; + } +} diff --git a/Packages/jp.keijiro.klak.spout/Runtime/AssemblyInfo.cs.meta b/Assets/Script/SenderBenchmark.cs.meta similarity index 83% rename from Packages/jp.keijiro.klak.spout/Runtime/AssemblyInfo.cs.meta rename to Assets/Script/SenderBenchmark.cs.meta index 20abc2c..b277f2a 100644 --- a/Packages/jp.keijiro.klak.spout/Runtime/AssemblyInfo.cs.meta +++ b/Assets/Script/SenderBenchmark.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: cada99cc6cefc624b907b462cfd1e79e +guid: d4da07adb0d7d9c4f83c62c2bca0bbd5 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Script/SourceSelector.cs b/Assets/Script/SourceSelector.cs index 199b7a2..3275811 100644 --- a/Assets/Script/SourceSelector.cs +++ b/Assets/Script/SourceSelector.cs @@ -1,9 +1,7 @@ -// KlakSpout - Spout video frame sharing plugin for Unity -// https://github.com/keijiro/KlakSpout - using UnityEngine; using UnityEngine.UI; using System.Collections.Generic; +using System.Linq; using Klak.Spout; public class SourceSelector : MonoBehaviour @@ -11,43 +9,43 @@ public class SourceSelector : MonoBehaviour [SerializeField] Dropdown _dropdown = null; SpoutReceiver _receiver; - - List _sourceNames = new List(); + List _sourceNames; bool _disableCallback; - void Start() - { - _receiver = GetComponent(); - } + // HACK: Assuming that the dropdown has more than + // three child objects only while it's opened. + bool IsOpened => _dropdown.transform.childCount > 3; + + void Start() => _receiver = GetComponent(); void Update() { - // HACK: Assuming that the dropdown would have more than three child - // objects while the menu is opened. Stop updating it while visible. - if (_dropdown.transform.childCount > 3) return; + // Do nothing if the menu is opened. + if (IsOpened) return; - // Retrieve the Spout source names. - SpoutManager.GetSourceNames(_sourceNames); + // Spout source name retrieval + _sourceNames = SpoutManager.GetSourceNames().ToList(); - // Update the current selection. + // Currect selection var index = _sourceNames.IndexOf(_receiver.sourceName); + + // Append the current name to the list if it's not found. if (index < 0) { - // Append the current name to the list when it's not found. index = _sourceNames.Count; _sourceNames.Add(_receiver.sourceName); } - // We don't like to receive callback while editing options. + // Disable the callback while updating the menu options. _disableCallback = true; - // Update the menu options. + // Menu option update _dropdown.ClearOptions(); _dropdown.AddOptions(_sourceNames); _dropdown.value = index; _dropdown.RefreshShownValue(); - // Resume receiving callback. + // Resume the callback. _disableCallback = false; } diff --git a/Assets/Script/SourceSelector.cs.meta b/Assets/Script/SourceSelector.cs.meta index 5cbeadd..6b9ce3b 100644 --- a/Assets/Script/SourceSelector.cs.meta +++ b/Assets/Script/SourceSelector.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: db99d431bbbd927408de456fbee2d7ea +guid: ae07b03851b241b438588e43455fa256 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Script/Timecode.cs b/Assets/Script/Timecode.cs new file mode 100644 index 0000000..c7531d6 --- /dev/null +++ b/Assets/Script/Timecode.cs @@ -0,0 +1,24 @@ +using UnityEngine; +using UI = UnityEngine.UI; + +sealed class Timecode : MonoBehaviour +{ + [SerializeField] UI.Text _label = null; + [SerializeField] Camera _camera = null; + + Color _bgColor; + + void Start() + => _bgColor = _camera.backgroundColor; + + void Update() + { + var t = Time.time; + + var frame = (int)(t * 60 % 60); + _label.text = $"{(int)(t / 60):00}:{(int)(t % 60):00}:{frame:00}"; + + var flash = (int)t != (int)(t - Time.deltaTime); + _camera.backgroundColor = flash ? Color.white : _bgColor; + } +} diff --git a/Assets/TestCards/Editor/TestOverlayEditor.cs.meta b/Assets/Script/Timecode.cs.meta similarity index 69% rename from Assets/TestCards/Editor/TestOverlayEditor.cs.meta rename to Assets/Script/Timecode.cs.meta index c92c89d..7956ba8 100644 --- a/Assets/TestCards/Editor/TestOverlayEditor.cs.meta +++ b/Assets/Script/Timecode.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 5a0964021fc3f424f855812e3a78111c -timeCreated: 1490423409 -licenseType: Pro +guid: a02ae1586c13b694b9fa87df91f5434d MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 diff --git a/Assets/TestCards/Runtime.meta b/Assets/Shader.meta similarity index 77% rename from Assets/TestCards/Runtime.meta rename to Assets/Shader.meta index 4f7a9f9..4cb4051 100644 --- a/Assets/TestCards/Runtime.meta +++ b/Assets/Shader.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a353fdc1e133fc146901baa58fe8056b +guid: cfc6022db3d37ce41bc7da04c5895c55 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Shader/Alpha.mat b/Assets/Shader/Alpha.mat new file mode 100644 index 0000000..9e15009 --- /dev/null +++ b/Assets/Shader/Alpha.mat @@ -0,0 +1,36 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Alpha + m_Shader: {fileID: -6465566751694194690, guid: 9386c075d234d814581e1bd28d42496f, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: [] + m_Colors: [] + m_BuildTextureStacks: [] diff --git a/Assets/RenderTextures/Small.renderTexture.meta b/Assets/Shader/Alpha.mat.meta similarity index 64% rename from Assets/RenderTextures/Small.renderTexture.meta rename to Assets/Shader/Alpha.mat.meta index 3ea8e22..c5eaf25 100644 --- a/Assets/RenderTextures/Small.renderTexture.meta +++ b/Assets/Shader/Alpha.mat.meta @@ -1,8 +1,8 @@ fileFormatVersion: 2 -guid: 165a6f902d78e484c83b6bb18a33029e +guid: 2e159dec22cd1174d99e5c2f70f07e74 NativeFormatImporter: externalObjects: {} - mainObjectFileID: 8400000 + mainObjectFileID: 2100000 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Shader/Alpha.shadergraph b/Assets/Shader/Alpha.shadergraph new file mode 100644 index 0000000..c6fc011 --- /dev/null +++ b/Assets/Shader/Alpha.shadergraph @@ -0,0 +1,2267 @@ +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "7a5514d23b98436db1a8e1d1ce20dd3a", + "m_Properties": [], + "m_Keywords": [], + "m_Nodes": [ + { + "m_Id": "1cc52af88def48a1ac5ee0b22d08aa99" + }, + { + "m_Id": "f230614854244cbcb7996af14a4955ef" + }, + { + "m_Id": "775f317cc27341f1b3b7251c4336475f" + }, + { + "m_Id": "2902e50421a04edbae5aa1673d517002" + }, + { + "m_Id": "7de4ab482bd04fd6b9369a62a0fcbb8d" + }, + { + "m_Id": "0eb9a18439d04ddb81b15c47ff1059d4" + }, + { + "m_Id": "f2f58c55dad44f45abd752be7c9a606d" + }, + { + "m_Id": "6b86c060927448f4bf8dc21976260c9a" + }, + { + "m_Id": "025cee24e79f496aaee19e24fb9ea840" + }, + { + "m_Id": "612b28cf828e48ff9c23f17fda229e01" + }, + { + "m_Id": "bff811f8ee8f4d6ab0b450ffdd24e019" + }, + { + "m_Id": "d2a20836cf89469e9faa08b3210c1217" + }, + { + "m_Id": "f46c0894eab045f487eabd9a44697824" + }, + { + "m_Id": "9605a67795e04e63a69e17437db54329" + }, + { + "m_Id": "8151015a6647401aba952a241974407c" + }, + { + "m_Id": "9bc57a1c8af94367be6b35aec0489d3a" + }, + { + "m_Id": "a6c62bd3d14d4ee3a87171d55480072e" + }, + { + "m_Id": "d1243130b34c4df3a2daa296a1137cda" + }, + { + "m_Id": "06b925eb43a842e4b45545889c816807" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "06b925eb43a842e4b45545889c816807" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a6c62bd3d14d4ee3a87171d55480072e" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0eb9a18439d04ddb81b15c47ff1059d4" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "025cee24e79f496aaee19e24fb9ea840" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6b86c060927448f4bf8dc21976260c9a" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0eb9a18439d04ddb81b15c47ff1059d4" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7de4ab482bd04fd6b9369a62a0fcbb8d" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6b86c060927448f4bf8dc21976260c9a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8151015a6647401aba952a241974407c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f46c0894eab045f487eabd9a44697824" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9605a67795e04e63a69e17437db54329" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9bc57a1c8af94367be6b35aec0489d3a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9bc57a1c8af94367be6b35aec0489d3a" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a6c62bd3d14d4ee3a87171d55480072e" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a6c62bd3d14d4ee3a87171d55480072e" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8151015a6647401aba952a241974407c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bff811f8ee8f4d6ab0b450ffdd24e019" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d2a20836cf89469e9faa08b3210c1217" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d1243130b34c4df3a2daa296a1137cda" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "06b925eb43a842e4b45545889c816807" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d2a20836cf89469e9faa08b3210c1217" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6b86c060927448f4bf8dc21976260c9a" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f2f58c55dad44f45abd752be7c9a606d" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d2a20836cf89469e9faa08b3210c1217" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f46c0894eab045f487eabd9a44697824" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2902e50421a04edbae5aa1673d517002" + }, + "m_SlotId": 0 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "1cc52af88def48a1ac5ee0b22d08aa99" + }, + { + "m_Id": "f230614854244cbcb7996af14a4955ef" + }, + { + "m_Id": "775f317cc27341f1b3b7251c4336475f" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "2902e50421a04edbae5aa1673d517002" + }, + { + "m_Id": "025cee24e79f496aaee19e24fb9ea840" + }, + { + "m_Id": "612b28cf828e48ff9c23f17fda229e01" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"fileID\":10210,\"guid\":\"0000000000000000e000000000000000\",\"type\":0}}", + "m_Guid": "" + } + }, + "m_Path": "Shader Graphs", + "m_ConcretePrecision": 0, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_ActiveTargets": [ + { + "m_Id": "d3efd9852638413f99168f74c8b0b9eb" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0049ba8c2468475db8b2348d7bba0fd2", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "00bdf18790254ca29e6e2f49bb6d25db", + "m_Id": 1, + "m_DisplayName": "Scale", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Scale", + "m_StageCapability": 3, + "m_Value": 2.0, + "m_DefaultValue": 10.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "025cee24e79f496aaee19e24fb9ea840", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "0049ba8c2468475db8b2348d7bba0fd2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "03307a8f92934695ab5d43300bad5b33", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "06b925eb43a842e4b45545889c816807", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1099.33349609375, + "y": 270.6666259765625, + "width": 126.00006866455078, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "ee979aa848054332a39ca1ef644cfaa3" + }, + { + "m_Id": "a3808445afe84c1aba4fa355829307d6" + }, + { + "m_Id": "3709fe5dba694828875385e5b8bf5c55" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GradientNoiseNode", + "m_ObjectId": "0eb9a18439d04ddb81b15c47ff1059d4", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Gradient Noise", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -577.3333129882813, + "y": 659.3333129882813, + "width": 207.99996948242188, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "80a9b2bdd37546589929b31d2a9070c8" + }, + { + "m_Id": "00bdf18790254ca29e6e2f49bb6d25db" + }, + { + "m_Id": "e83ef378252d4dd09f5ac024efea8398" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "13174e266e6245ca8d5bffae9c148ea0", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "158a1284fd9244c3910b703f8c109621", + "m_Id": 1, + "m_DisplayName": "Offset", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Offset", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "159dd6a1039d4d3480b3bf058c69eec0", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "1895f721e7764104afc94bd147d3b368", + "m_Id": 1, + "m_DisplayName": "Center", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Center", + "m_StageCapability": 3, + "m_Value": { + "x": 0.5, + "y": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "19ef7aa93ea7400ca59fa6251d3bd0c8", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "1cc52af88def48a1ac5ee0b22d08aa99", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "d3c554adb9984722b133c7b41215e104" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2185a17048444f04894e5063b4a0ea63", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "23360d92aaa84385a8e3ddd2e1c9e485", + "m_Id": 4, + "m_DisplayName": "Smooth Delta", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Smooth Delta", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "25bba8157ecc4538971e2f4e93121ece", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "2902e50421a04edbae5aa1673d517002", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "94f2a599b3ca447ab7747b78bd7f1702" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "3709fe5dba694828875385e5b8bf5c55", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3b146ccc666346e8afb038cc90f20424", + "m_Id": 2, + "m_DisplayName": "Radial Scale", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "RadialScale", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "40987cf22e62478b852926beb8256000", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4c08f423125442d59159df4f9e1c09d3", + "m_Id": 3, + "m_DisplayName": "Delta Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Delta Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "4f1eb1df827d4ef6bfdf793b61cbd84f", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "50e78d49d13d42b58791f1b44347612c", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5c113998f2064e73b096af12c641dbbc", + "m_Id": 1, + "m_DisplayName": "Sine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Sine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "5e87492640074805a0f45a25bee8a746", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "612b28cf828e48ff9c23f17fda229e01", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "25bba8157ecc4538971e2f4e93121ece" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "64f2cfcb0b1b491d8393cb865d010758", + "m_Id": 3, + "m_DisplayName": "Delta Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Delta Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "6763b79430784f35b7f8d384d7b469c6", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "69f10b97ccef4cb7ab05482c73c883aa", + "m_Id": 0, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "6b86c060927448f4bf8dc21976260c9a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -862.6666870117188, + "y": 638.6665649414063, + "width": 130.66668701171876, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "a6f2c5135a444bcfb5e98940647ede0d" + }, + { + "m_Id": "ce14e5458e78407d80224ded152ce7e5" + }, + { + "m_Id": "e5b039a7b55b44608db57ad44455edbd" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "6b8cded9897547568d37582ae86f517b" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "6ca452071e0849b6a459a12f0a33d0c9", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "6dbde154716e49ceab5bc66eecec9f53", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "70ac356cb63b482882e33f95ed4ba18e", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.21299999952316285, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "775f317cc27341f1b3b7251c4336475f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "6763b79430784f35b7f8d384d7b469c6" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7a695952a6ec4aa1a82efb0c254508a1", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "7c2ba8dbf47d4a2582ec093523013783", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVNode", + "m_ObjectId": "7de4ab482bd04fd6b9369a62a0fcbb8d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "UV", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1049.3333740234375, + "y": 575.333251953125, + "width": 145.3333740234375, + "height": 128.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "40987cf22e62478b852926beb8256000" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_OutputChannel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "80a9b2bdd37546589929b31d2a9070c8", + "m_Id": 0, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "8151015a6647401aba952a241974407c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -718.6666870117188, + "y": 203.33331298828126, + "width": 126.00000762939453, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "7c2ba8dbf47d4a2582ec093523013783" + }, + { + "m_Id": "d988d4898d674486b16cceef33d96a84" + }, + { + "m_Id": "e8a9c5d792044415bc2630d36a07790d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "83b7b37b67974b139205f3f1e63a1a04", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "846412d6149a4ae4abbe999ed4cf1d31", + "m_Id": 3, + "m_DisplayName": "Length Scale", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "LengthScale", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "855ebd0239204ad6b682c5e4c8d6782d", + "m_Id": 2, + "m_DisplayName": "Cosine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Cosine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "94f2a599b3ca447ab7747b78bd7f1702", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PolarCoordinatesNode", + "m_ObjectId": "9605a67795e04e63a69e17437db54329", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Polar Coordinates", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -1288.0001220703125, + "y": 161.99990844726563, + "width": 150.6666259765625, + "height": 93.99999237060547 + } + }, + "m_Slots": [ + { + "m_Id": "69f10b97ccef4cb7ab05482c73c883aa" + }, + { + "m_Id": "1895f721e7764104afc94bd147d3b368" + }, + { + "m_Id": "3b146ccc666346e8afb038cc90f20424" + }, + { + "m_Id": "846412d6149a4ae4abbe999ed4cf1d31" + }, + { + "m_Id": "bf95acdfb61e437887f683051d236479" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "9bc57a1c8af94367be6b35aec0489d3a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -1096.6666259765625, + "y": 167.3333282470703, + "width": 119.33331298828125, + "height": 76.66666412353516 + } + }, + "m_Slots": [ + { + "m_Id": "03307a8f92934695ab5d43300bad5b33" + }, + { + "m_Id": "83b7b37b67974b139205f3f1e63a1a04" + }, + { + "m_Id": "50e78d49d13d42b58791f1b44347612c" + }, + { + "m_Id": "13174e266e6245ca8d5bffae9c148ea0" + }, + { + "m_Id": "7a695952a6ec4aa1a82efb0c254508a1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9e83d2546de14126ab74aaecc4f357ae", + "m_Id": 2, + "m_DisplayName": "Cosine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Cosine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9ea1d8d667794e13b6001c4de24e587c", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.41200000047683718, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "a3808445afe84c1aba4fa355829307d6", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 1.600000023841858, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "a6c62bd3d14d4ee3a87171d55480072e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -934.0000610351563, + "y": 202.6666717529297, + "width": 126.00000762939453, + "height": 118.0000228881836 + } + }, + "m_Slots": [ + { + "m_Id": "19ef7aa93ea7400ca59fa6251d3bd0c8" + }, + { + "m_Id": "2185a17048444f04894e5063b4a0ea63" + }, + { + "m_Id": "159dd6a1039d4d3480b3bf058c69eec0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "a6f2c5135a444bcfb5e98940647ede0d", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "adb56edfe6fb4e2e9f15adc7f92e2a5b", + "m_Id": 1, + "m_DisplayName": "Sine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Sine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "bf95acdfb61e437887f683051d236479", + "m_Id": 4, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2Node", + "m_ObjectId": "bff811f8ee8f4d6ab0b450ffdd24e019", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 2", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1239.3333740234375, + "y": 672.6666259765625, + "width": 128.666748046875, + "height": 100.66669464111328 + } + }, + "m_Slots": [ + { + "m_Id": "70ac356cb63b482882e33f95ed4ba18e" + }, + { + "m_Id": "9ea1d8d667794e13b6001c4de24e587c" + }, + { + "m_Id": "c184bda45659400b96719ffd47fb4bc1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "c184bda45659400b96719ffd47fb4bc1", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ce14e5458e78407d80224ded152ce7e5", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TimeNode", + "m_ObjectId": "d1243130b34c4df3a2daa296a1137cda", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Time", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -1280.0, + "y": 269.3333435058594, + "width": 80.6666259765625, + "height": 76.66666412353516 + } + }, + "m_Slots": [ + { + "m_Id": "da8db2d38cca4fa1a06a551357c069e6" + }, + { + "m_Id": "5c113998f2064e73b096af12c641dbbc" + }, + { + "m_Id": "9e83d2546de14126ab74aaecc4f357ae" + }, + { + "m_Id": "64f2cfcb0b1b491d8393cb865d010758" + }, + { + "m_Id": "f2d577852e03405bbca85b57f1c091d1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "d2a20836cf89469e9faa08b3210c1217", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1040.6666259765625, + "y": 712.6665649414063, + "width": 130.6666259765625, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "e1d6a93f4508405691bbbbfe7e978e36" + }, + { + "m_Id": "4f1eb1df827d4ef6bfdf793b61cbd84f" + }, + { + "m_Id": "f71f3401fc344282856037973282538d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "d3c554adb9984722b133c7b41215e104", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "d3efd9852638413f99168f74c8b0b9eb", + "m_ActiveSubTarget": { + "m_Id": "6b8cded9897547568d37582ae86f517b" + }, + "m_SurfaceType": 0, + "m_AlphaMode": 0, + "m_TwoSided": false, + "m_AlphaClip": true, + "m_CustomEditorGUI": "" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "d988d4898d674486b16cceef33d96a84", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.10000000149011612, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "da8db2d38cca4fa1a06a551357c069e6", + "m_Id": 0, + "m_DisplayName": "Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "e1d6a93f4508405691bbbbfe7e978e36", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e5b039a7b55b44608db57ad44455edbd", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e6c47af399d84c9faac187ebae073c12", + "m_Id": 0, + "m_DisplayName": "Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e83ef378252d4dd09f5ac024efea8398", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "e8a9c5d792044415bc2630d36a07790d", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ee979aa848054332a39ca1ef644cfaa3", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "f230614854244cbcb7996af14a4955ef", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "6ca452071e0849b6a459a12f0a33d0c9" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f2d577852e03405bbca85b57f1c091d1", + "m_Id": 4, + "m_DisplayName": "Smooth Delta", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Smooth Delta", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TimeNode", + "m_ObjectId": "f2f58c55dad44f45abd752be7c9a606d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Time", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -1194.6666259765625, + "y": 787.3333740234375, + "width": 80.6666259765625, + "height": 76.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "e6c47af399d84c9faac187ebae073c12" + }, + { + "m_Id": "adb56edfe6fb4e2e9f15adc7f92e2a5b" + }, + { + "m_Id": "855ebd0239204ad6b682c5e4c8d6782d" + }, + { + "m_Id": "4c08f423125442d59159df4f9e1c09d3" + }, + { + "m_Id": "23360d92aaa84385a8e3ddd2e1c9e485" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.HueNode", + "m_ObjectId": "f46c0894eab045f487eabd9a44697824", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Hue", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -487.3333740234375, + "y": 73.33332061767578, + "width": 208.0, + "height": 336.6666564941406 + } + }, + "m_Slots": [ + { + "m_Id": "6dbde154716e49ceab5bc66eecec9f53" + }, + { + "m_Id": "158a1284fd9244c3910b703f8c109621" + }, + { + "m_Id": "5e87492640074805a0f45a25bee8a746" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_HueMode": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "f71f3401fc344282856037973282538d", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + diff --git a/Assets/Shader/Alpha.shadergraph.meta b/Assets/Shader/Alpha.shadergraph.meta new file mode 100644 index 0000000..9e78f53 --- /dev/null +++ b/Assets/Shader/Alpha.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 9386c075d234d814581e1bd28d42496f +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/Shader/Gradient.mat b/Assets/Shader/Gradient.mat new file mode 100644 index 0000000..645f555 --- /dev/null +++ b/Assets/Shader/Gradient.mat @@ -0,0 +1,123 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-543972445948358089 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 4 +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Gradient + m_Shader: {fileID: -6465566751694194690, guid: a8c703759a113434f8b6a1568791b99b, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _AlphaClip: 0 + - _Blend: 0 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _Surface: 0 + - _WorkflowMode: 1 + - _ZWrite: 1 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/Shader/Gradient.mat.meta b/Assets/Shader/Gradient.mat.meta new file mode 100644 index 0000000..223204f --- /dev/null +++ b/Assets/Shader/Gradient.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c01d1eeee63acea418bafad09e507872 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Shader/Gradient.shadergraph b/Assets/Shader/Gradient.shadergraph new file mode 100644 index 0000000..6c02ab0 --- /dev/null +++ b/Assets/Shader/Gradient.shadergraph @@ -0,0 +1,654 @@ +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "84d6850bffdb48648c62741c28efaf3f", + "m_Properties": [], + "m_Keywords": [], + "m_Nodes": [ + { + "m_Id": "478dc938ec264cae804256188dcf5e09" + }, + { + "m_Id": "592e5407cb3e46beb1cff7a85c63568e" + }, + { + "m_Id": "6332032714f94c149d1663e2b567403f" + }, + { + "m_Id": "a6f1e3d1535c481ab471118d1c78b11b" + }, + { + "m_Id": "ea8fc7617d5345be972d2e07152da218" + }, + { + "m_Id": "8b3f5887d5604984846525942d251cbd" + }, + { + "m_Id": "a21adcea524a4644837b6b1e3064f047" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8b3f5887d5604984846525942d251cbd" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a21adcea524a4644837b6b1e3064f047" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a21adcea524a4644837b6b1e3064f047" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a6f1e3d1535c481ab471118d1c78b11b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ea8fc7617d5345be972d2e07152da218" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a21adcea524a4644837b6b1e3064f047" + }, + "m_SlotId": 0 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "478dc938ec264cae804256188dcf5e09" + }, + { + "m_Id": "592e5407cb3e46beb1cff7a85c63568e" + }, + { + "m_Id": "6332032714f94c149d1663e2b567403f" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "a6f1e3d1535c481ab471118d1c78b11b" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + } + }, + "m_Path": "Shader Graphs", + "m_ConcretePrecision": 0, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_ActiveTargets": [ + { + "m_Id": "9d124483768e47919d67ba86bd80e58e" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0b3b154d5f6f454a8c5441ed35bf60fb", + "m_Id": 1, + "m_DisplayName": "Sine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Sine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "0c29401b00c6408fa9276422db195ea4", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "1953146e4d4a4d57b8dd3cb82e81da63", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "36bcc6024f1b4542aa5c61e5757ebc46", + "m_Id": 1, + "m_DisplayName": "Time", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3e520065d0b84051ab79f5f04587fd3e", + "m_Id": 4, + "m_DisplayName": "Smooth Delta", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Smooth Delta", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "478dc938ec264cae804256188dcf5e09", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "fffd817d55364e63ac93ca91df2d0900" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5122130e43ab4dcea9283e8a2f28ace9", + "m_Id": 2, + "m_DisplayName": "Cosine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Cosine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "592e5407cb3e46beb1cff7a85c63568e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "1953146e4d4a4d57b8dd3cb82e81da63" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5b8f635e75a24267a1bb0e153899dc23", + "m_Id": 3, + "m_DisplayName": "Delta Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Delta Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "6332032714f94c149d1663e2b567403f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "a831797138fe45a595f7f42304cb8d40" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6d6c30a9e9fc43ceba86ec4c5734b992", + "m_Id": 0, + "m_DisplayName": "Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "8684206e43394a9aaad7031b5a6df41e" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TimeNode", + "m_ObjectId": "8b3f5887d5604984846525942d251cbd", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Time", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -456.6666564941406, + "y": 241.33331298828126, + "width": 80.66665649414063, + "height": 76.0 + } + }, + "m_Slots": [ + { + "m_Id": "6d6c30a9e9fc43ceba86ec4c5734b992" + }, + { + "m_Id": "0b3b154d5f6f454a8c5441ed35bf60fb" + }, + { + "m_Id": "5122130e43ab4dcea9283e8a2f28ace9" + }, + { + "m_Id": "5b8f635e75a24267a1bb0e153899dc23" + }, + { + "m_Id": "3e520065d0b84051ab79f5f04587fd3e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "8b807d34b11b4678b47c2cc607c30688", + "m_Id": 2, + "m_DisplayName": "Color", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Color", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "9cf783e1268c46d08370fb17d9b90204", + "m_Id": 0, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "9d124483768e47919d67ba86bd80e58e", + "m_ActiveSubTarget": { + "m_Id": "8684206e43394a9aaad7031b5a6df41e" + }, + "m_SurfaceType": 0, + "m_AlphaMode": 0, + "m_TwoSided": false, + "m_AlphaClip": false, + "m_CustomEditorGUI": "" +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode", + "m_ObjectId": "a21adcea524a4644837b6b1e3064f047", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Aura (Custom Function)", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -326.6666564941406, + "y": 157.3333282470703, + "width": 208.0, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "9cf783e1268c46d08370fb17d9b90204" + }, + { + "m_Id": "36bcc6024f1b4542aa5c61e5757ebc46" + }, + { + "m_Id": "8b807d34b11b4678b47c2cc607c30688" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SourceType": 1, + "m_FunctionName": "Aura", + "m_FunctionSource": "", + "m_FunctionBody": "float3 x = UV.x;\nx *= sin(Time * float3(1.71, 1.88, 2.23));\nx += Time * float3(0.21, 0.34, 0.13);\n\nfloat3 y = UV.y;\ny *= sin(Time * float3(1.12, 1.43, 1.73));\ny += Time * float3(0.33, 0.27, 0.31);\n\nColor = sin((x + sin(y)) * 4.45) * 0.5 + 0.5;" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "a6f1e3d1535c481ab471118d1c78b11b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "bcd0ddc18e3c4e7f9d3c83c0d5ef8929" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "a831797138fe45a595f7f42304cb8d40", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "bcd0ddc18e3c4e7f9d3c83c0d5ef8929", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVNode", + "m_ObjectId": "ea8fc7617d5345be972d2e07152da218", + "m_Group": { + "m_Id": "" + }, + "m_Name": "UV", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -521.333251953125, + "y": 103.33331298828125, + "width": 144.66665649414063, + "height": 129.33334350585938 + } + }, + "m_Slots": [ + { + "m_Id": "0c29401b00c6408fa9276422db195ea4" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_OutputChannel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "fffd817d55364e63ac93ca91df2d0900", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + diff --git a/Assets/Shader/Gradient.shadergraph.meta b/Assets/Shader/Gradient.shadergraph.meta new file mode 100644 index 0000000..9c7505e --- /dev/null +++ b/Assets/Shader/Gradient.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: a8c703759a113434f8b6a1568791b99b +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/Shader/Receiver.mat b/Assets/Shader/Receiver.mat new file mode 100644 index 0000000..fb3a1be --- /dev/null +++ b/Assets/Shader/Receiver.mat @@ -0,0 +1,123 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-1086850596210098573 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 4 +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Receiver + m_Shader: {fileID: -6465566751694194690, guid: 6e59dd6be419cbb4b87375f34221f6ac, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _AlphaClip: 0 + - _Blend: 0 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _Surface: 0 + - _WorkflowMode: 1 + - _ZWrite: 1 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/Shader/Receiver.mat.meta b/Assets/Shader/Receiver.mat.meta new file mode 100644 index 0000000..e0ac419 --- /dev/null +++ b/Assets/Shader/Receiver.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7d717d2aa323e5c469963ea9c0a6cbe9 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Shader/Receiver.shadergraph b/Assets/Shader/Receiver.shadergraph new file mode 100644 index 0000000..206a141 --- /dev/null +++ b/Assets/Shader/Receiver.shadergraph @@ -0,0 +1,982 @@ +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "760d960d62824969a9451eae2e02dded", + "m_Properties": [ + { + "m_Id": "92686e1f849a4a47b5c3414db4a0dba0" + } + ], + "m_Keywords": [], + "m_Nodes": [ + { + "m_Id": "b47cf7e96cd84198928bc7d44cda3549" + }, + { + "m_Id": "7d0aab17101344339a59751e7e342dc1" + }, + { + "m_Id": "9b1846c15ca34c33b0ef208380d92732" + }, + { + "m_Id": "9ff0f1499a8349c9b9fa8da7de87da4e" + }, + { + "m_Id": "46cdec2bd49248b6ba4993b0dcb7e9ea" + }, + { + "m_Id": "e0ee1b91f376427f9e5b8caa3a79d96b" + }, + { + "m_Id": "ad5438fed037479eb29c56d8b83af2a9" + }, + { + "m_Id": "d27a9878d6c649f4af5989332dc01b31" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "46cdec2bd49248b6ba4993b0dcb7e9ea" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e0ee1b91f376427f9e5b8caa3a79d96b" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ad5438fed037479eb29c56d8b83af2a9" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d27a9878d6c649f4af5989332dc01b31" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d27a9878d6c649f4af5989332dc01b31" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9ff0f1499a8349c9b9fa8da7de87da4e" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e0ee1b91f376427f9e5b8caa3a79d96b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d27a9878d6c649f4af5989332dc01b31" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e0ee1b91f376427f9e5b8caa3a79d96b" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d27a9878d6c649f4af5989332dc01b31" + }, + "m_SlotId": 2 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "b47cf7e96cd84198928bc7d44cda3549" + }, + { + "m_Id": "7d0aab17101344339a59751e7e342dc1" + }, + { + "m_Id": "9b1846c15ca34c33b0ef208380d92732" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "9ff0f1499a8349c9b9fa8da7de87da4e" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + } + }, + "m_Path": "Shader Graphs", + "m_ConcretePrecision": 0, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_ActiveTargets": [ + { + "m_Id": "bbff7507243a44deb835a7c7728d6d6a" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "0483b939ad1a4615a9ccd4cc89b44239", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "058913945a18461fad7713efbedbe0e2", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "09d35c315ea146ca834814d29667975b", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "1730e959dece468396a5117caab1b4a5", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "31760f9e9fdf44e49754ef0155f74b92", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "3d7bd61e2c1f4a2382a8ad489c805599", + "m_Id": 0, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "46cdec2bd49248b6ba4993b0dcb7e9ea", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -682.6666259765625, + "y": 279.3333435058594, + "width": 124.66668701171875, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "d59e4d3668c84650a17d1acfef487461" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "92686e1f849a4a47b5c3414db4a0dba0" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "585e36eb2d374308bb08fba07d5d6622", + "m_Id": 3, + "m_DisplayName": "Frequency", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Frequency", + "m_StageCapability": 3, + "m_Value": { + "x": 17.777780532836915, + "y": 10.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "5a64807050f34ec99f5cf230c1d230b1", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5b5abd2438694c6ab9202e165000ed62", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "7d0aab17101344339a59751e7e342dc1", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "a50f796f6de04811b611aae5a405ad92" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "82519af5b9c3482e8b69e8fa4f0f2c20", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "91b8abe806484da1ba60c607629933bc", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "92686e1f849a4a47b5c3414db4a0dba0", + "m_Guid": { + "m_GuidSerialized": "fd036923-54ad-486d-825f-a92dcadb7adc" + }, + "m_Name": "Texture", + "m_DefaultReferenceName": "Texture2D_92686e1f849a4a47b5c3414db4a0dba0", + "m_OverrideReferenceName": "_MainTex", + "m_GeneratePropertyBlock": true, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "93eec6f5a6fb48c191ac80d0a359de6e", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "948c9df725e94ec2911222a2c930a848", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "9b1846c15ca34c33b0ef208380d92732", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "82519af5b9c3482e8b69e8fa4f0f2c20" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "9ff0f1499a8349c9b9fa8da7de87da4e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "93eec6f5a6fb48c191ac80d0a359de6e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "a50f796f6de04811b611aae5a405ad92", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CheckerboardNode", + "m_ObjectId": "ad5438fed037479eb29c56d8b83af2a9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Checkerboard", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -471.9999694824219, + "y": 96.66665649414063, + "width": 176.66664123535157, + "height": 166.00001525878907 + } + }, + "m_Slots": [ + { + "m_Id": "3d7bd61e2c1f4a2382a8ad489c805599" + }, + { + "m_Id": "d8849d92ad3d45d6bcdf65701179126f" + }, + { + "m_Id": "d4302db25c2746beb7715faf9043d3cd" + }, + { + "m_Id": "585e36eb2d374308bb08fba07d5d6622" + }, + { + "m_Id": "c8e6685a9da9406ea183a796a3cf2f83" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ad9f33bf743546a2b4906b9ac69d6470", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "afab11951f934565b91235f40bb86c3c", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "b47cf7e96cd84198928bc7d44cda3549", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "5a64807050f34ec99f5cf230c1d230b1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "bbff7507243a44deb835a7c7728d6d6a", + "m_ActiveSubTarget": { + "m_Id": "efb56a1b03eb411aa2215f88052f19ce" + }, + "m_SurfaceType": 0, + "m_AlphaMode": 0, + "m_TwoSided": false, + "m_AlphaClip": false, + "m_CustomEditorGUI": "" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "c8e6685a9da9406ea183a796a3cf2f83", + "m_Id": 4, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.LerpNode", + "m_ObjectId": "d27a9878d6c649f4af5989332dc01b31", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -205.33331298828126, + "y": 195.99998474121095, + "width": 130.66664123535157, + "height": 141.99998474121095 + } + }, + "m_Slots": [ + { + "m_Id": "5b5abd2438694c6ab9202e165000ed62" + }, + { + "m_Id": "d5b23a50cbce40469e7b2a8b4f98136b" + }, + { + "m_Id": "afab11951f934565b91235f40bb86c3c" + }, + { + "m_Id": "948c9df725e94ec2911222a2c930a848" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "d4302db25c2746beb7715faf9043d3cd", + "m_Id": 2, + "m_DisplayName": "Color B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "ColorB", + "m_StageCapability": 3, + "m_Value": { + "x": 0.699999988079071, + "y": 0.699999988079071, + "z": 0.699999988079071 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.699999988079071, + "g": 0.699999988079071, + "b": 0.699999988079071, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "d59e4d3668c84650a17d1acfef487461", + "m_Id": 0, + "m_DisplayName": "Texture", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d5b23a50cbce40469e7b2a8b4f98136b", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "d8849d92ad3d45d6bcdf65701179126f", + "m_Id": 1, + "m_DisplayName": "Color A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "ColorA", + "m_StageCapability": 3, + "m_Value": { + "x": 0.20000000298023225, + "y": 0.20000000298023225, + "z": 0.20000000298023225 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.20000000298023225, + "g": 0.20000000298023225, + "b": 0.20000000298023225, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "e0ee1b91f376427f9e5b8caa3a79d96b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -474.6665954589844, + "y": 268.66668701171877, + "width": 186.66665649414063, + "height": 250.66664123535157 + } + }, + "m_Slots": [ + { + "m_Id": "1730e959dece468396a5117caab1b4a5" + }, + { + "m_Id": "91b8abe806484da1ba60c607629933bc" + }, + { + "m_Id": "fbddb28a4b164b0e97ee0de90db5ddd9" + }, + { + "m_Id": "ad9f33bf743546a2b4906b9ac69d6470" + }, + { + "m_Id": "31760f9e9fdf44e49754ef0155f74b92" + }, + { + "m_Id": "0483b939ad1a4615a9ccd4cc89b44239" + }, + { + "m_Id": "058913945a18461fad7713efbedbe0e2" + }, + { + "m_Id": "09d35c315ea146ca834814d29667975b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "efb56a1b03eb411aa2215f88052f19ce" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "fbddb28a4b164b0e97ee0de90db5ddd9", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + diff --git a/Assets/Shader/Receiver.shadergraph.meta b/Assets/Shader/Receiver.shadergraph.meta new file mode 100644 index 0000000..2ccfc83 --- /dev/null +++ b/Assets/Shader/Receiver.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 6e59dd6be419cbb4b87375f34221f6ac +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/Stress.unity b/Assets/Stress.unity deleted file mode 100644 index bcec131..0000000 --- a/Assets/Stress.unity +++ /dev/null @@ -1,14422 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.12731749, g: 0.13414757, b: 0.1210787, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &616587 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 616588} - - component: {fileID: 616590} - - component: {fileID: 616589} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &616588 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 616587} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 176868029} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &616589 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 616587} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &616590 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 616587} - m_CullTransparentMesh: 0 ---- !u!1 &1135373 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1135374} - - component: {fileID: 1135377} - - component: {fileID: 1135376} - - component: {fileID: 1135375} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1135374 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1135373} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 2069094806} - - {fileID: 1140785915} - m_Father: {fileID: 1267894184} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1135375 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1135373} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1135376 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1135373} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1135377 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1135373} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1267894183} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &43967865 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 43967866} - - component: {fileID: 43967869} - - component: {fileID: 43967868} - - component: {fileID: 43967867} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &43967866 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 43967865} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 2017739489} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &43967867 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 43967865} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (8) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 43967868} - _targetMaterialProperty: _MainTex ---- !u!23 &43967868 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 43967865} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &43967869 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 43967865} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &68656102 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 68656105} - - component: {fileID: 68656104} - - component: {fileID: 68656103} - m_Layer: 0 - m_Name: Sender (28) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &68656103 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 68656102} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &68656104 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 68656102} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &68656105 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 68656102} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 2133003127} - m_Father: {fileID: 0} - m_RootOrder: 29 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &69388503 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 69388504} - - component: {fileID: 69388506} - - component: {fileID: 69388505} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &69388504 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 69388503} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1483163654} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &69388505 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 69388503} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 9 ---- !u!222 &69388506 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 69388503} - m_CullTransparentMesh: 0 ---- !u!1 &98806806 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 98806807} - - component: {fileID: 98806810} - - component: {fileID: 98806809} - - component: {fileID: 98806808} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &98806807 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 98806806} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 2117672150} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &98806808 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 98806806} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (21) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 98806809} - _targetMaterialProperty: _MainTex ---- !u!23 &98806809 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 98806806} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &98806810 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 98806806} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &161803713 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 161803716} - - component: {fileID: 161803715} - - component: {fileID: 161803714} - m_Layer: 0 - m_Name: Sender (32) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &161803714 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 161803713} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &161803715 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 161803713} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &161803716 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 161803713} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1909666276} - m_Father: {fileID: 0} - m_RootOrder: 33 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &174227702 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 174227703} - - component: {fileID: 174227705} - - component: {fileID: 174227704} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &174227703 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 174227702} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1909666276} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &174227704 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 174227702} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &174227705 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 174227702} - m_CullTransparentMesh: 0 ---- !u!1 &176868028 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 176868029} - - component: {fileID: 176868032} - - component: {fileID: 176868031} - - component: {fileID: 176868030} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &176868029 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 176868028} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 616588} - - {fileID: 1681023698} - m_Father: {fileID: 1608598280} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &176868030 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 176868028} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &176868031 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 176868028} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &176868032 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 176868028} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1608598279} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &183024138 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 183024139} - - component: {fileID: 183024141} - - component: {fileID: 183024140} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &183024139 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 183024138} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 227422790} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &183024140 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 183024138} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 20 ---- !u!222 &183024141 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 183024138} - m_CullTransparentMesh: 0 ---- !u!1 &191595033 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 191595034} - - component: {fileID: 191595036} - - component: {fileID: 191595035} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &191595034 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 191595033} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 2133003127} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &191595035 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 191595033} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 28 ---- !u!222 &191595036 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 191595033} - m_CullTransparentMesh: 0 ---- !u!1 &198443874 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 198443875} - - component: {fileID: 198443877} - - component: {fileID: 198443876} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &198443875 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 198443874} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 226326260} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &198443876 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 198443874} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &198443877 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 198443874} - m_CullTransparentMesh: 0 ---- !u!1 &201073784 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 201073785} - - component: {fileID: 201073788} - - component: {fileID: 201073787} - - component: {fileID: 201073786} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &201073785 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 201073784} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 774313641} - - {fileID: 312977924} - m_Father: {fileID: 2025965318} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &201073786 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 201073784} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &201073787 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 201073784} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &201073788 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 201073784} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 2025965317} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &206515028 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 206515029} - - component: {fileID: 206515031} - - component: {fileID: 206515030} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &206515029 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206515028} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1229636421} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &206515030 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206515028} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 1 ---- !u!222 &206515031 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206515028} - m_CullTransparentMesh: 0 ---- !u!1 &219307555 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 219307556} - m_Layer: 0 - m_Name: Receiver (26) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &219307556 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 219307555} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.375, y: -0.3125, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1287445405} - m_Father: {fileID: 0} - m_RootOrder: 60 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &226326259 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 226326260} - - component: {fileID: 226326263} - - component: {fileID: 226326262} - - component: {fileID: 226326261} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &226326260 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 226326259} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 198443875} - - {fileID: 303013592} - m_Father: {fileID: 2049445689} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &226326261 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 226326259} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &226326262 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 226326259} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &226326263 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 226326259} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 2049445688} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &227422789 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 227422790} - - component: {fileID: 227422793} - - component: {fileID: 227422792} - - component: {fileID: 227422791} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &227422790 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 227422789} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1165596544} - - {fileID: 183024139} - m_Father: {fileID: 2054852577} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &227422791 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 227422789} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &227422792 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 227422789} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &227422793 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 227422789} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 2054852576} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &230754250 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 230754251} - - component: {fileID: 230754254} - - component: {fileID: 230754253} - - component: {fileID: 230754252} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &230754251 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230754250} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 416267528} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &230754252 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230754250} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (22) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 230754253} - _targetMaterialProperty: _MainTex ---- !u!23 &230754253 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230754250} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &230754254 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230754250} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &230986894 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 230986895} - - component: {fileID: 230986898} - - component: {fileID: 230986897} - - component: {fileID: 230986896} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &230986895 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230986894} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 556173746} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &230986896 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230986894} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (11) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 230986897} - _targetMaterialProperty: _MainTex ---- !u!23 &230986897 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230986894} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &230986898 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 230986894} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &233994903 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 233994904} - m_Layer: 0 - m_Name: Receiver (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &233994904 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 233994903} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.375, y: 0.4375, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1060728403} - m_Father: {fileID: 0} - m_RootOrder: 35 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &263564117 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 263564120} - - component: {fileID: 263564119} - - component: {fileID: 263564118} - m_Layer: 0 - m_Name: Sender (8) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &263564118 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 263564117} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &263564119 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 263564117} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &263564120 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 263564117} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 967799921} - m_Father: {fileID: 0} - m_RootOrder: 9 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &276778598 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 276778599} - - component: {fileID: 276778601} - - component: {fileID: 276778600} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &276778599 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 276778598} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 619717086} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &276778600 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 276778598} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 27 ---- !u!222 &276778601 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 276778598} - m_CullTransparentMesh: 0 ---- !u!1 &279473505 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 279473506} - - component: {fileID: 279473508} - - component: {fileID: 279473507} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &279473506 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 279473505} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 2133003127} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &279473507 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 279473505} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &279473508 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 279473505} - m_CullTransparentMesh: 0 ---- !u!1 &300143127 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 300143128} - - component: {fileID: 300143130} - - component: {fileID: 300143129} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &300143128 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 300143127} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1801490563} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &300143129 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 300143127} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 29 ---- !u!222 &300143130 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 300143127} - m_CullTransparentMesh: 0 ---- !u!1 &301101839 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 301101840} - - component: {fileID: 301101842} - - component: {fileID: 301101841} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &301101840 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 301101839} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1404864950} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &301101841 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 301101839} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &301101842 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 301101839} - m_CullTransparentMesh: 0 ---- !u!1 &303013591 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 303013592} - - component: {fileID: 303013594} - - component: {fileID: 303013593} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &303013592 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 303013591} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 226326260} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &303013593 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 303013591} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 15 ---- !u!222 &303013594 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 303013591} - m_CullTransparentMesh: 0 ---- !u!1 &312977923 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 312977924} - - component: {fileID: 312977926} - - component: {fileID: 312977925} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &312977924 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 312977923} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 201073785} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &312977925 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 312977923} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 26 ---- !u!222 &312977926 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 312977923} - m_CullTransparentMesh: 0 ---- !u!1 &314215102 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 314215103} - - component: {fileID: 314215105} - - component: {fileID: 314215104} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &314215103 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 314215102} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1483163654} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &314215104 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 314215102} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &314215105 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 314215102} - m_CullTransparentMesh: 0 ---- !u!1 &344049910 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 344049911} - - component: {fileID: 344049914} - - component: {fileID: 344049913} - - component: {fileID: 344049912} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &344049911 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 344049910} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1275330638} - - {fileID: 1749680506} - m_Father: {fileID: 404726064} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &344049912 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 344049910} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &344049913 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 344049910} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &344049914 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 344049910} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 404726063} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &348761542 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 348761543} - - component: {fileID: 348761546} - - component: {fileID: 348761545} - - component: {fileID: 348761544} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &348761543 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 348761542} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1927649160} - - {fileID: 1501642951} - m_Father: {fileID: 924228056} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &348761544 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 348761542} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &348761545 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 348761542} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &348761546 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 348761542} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 924228055} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &359381655 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 359381656} - - component: {fileID: 359381659} - - component: {fileID: 359381658} - - component: {fileID: 359381657} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &359381656 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 359381655} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 709665371} - - {fileID: 1457836244} - m_Father: {fileID: 1391960368} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &359381657 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 359381655} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &359381658 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 359381655} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &359381659 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 359381655} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1391960367} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &369381500 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 369381501} - - component: {fileID: 369381504} - - component: {fileID: 369381503} - - component: {fileID: 369381502} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &369381501 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 369381500} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1628563641} - - {fileID: 1441517512} - m_Father: {fileID: 731558245} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &369381502 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 369381500} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &369381503 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 369381500} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &369381504 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 369381500} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 731558244} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &370915449 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 370915450} - - component: {fileID: 370915452} - - component: {fileID: 370915451} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &370915450 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 370915449} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1229636421} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &370915451 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 370915449} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &370915452 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 370915449} - m_CullTransparentMesh: 0 ---- !u!1 &377525630 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 377525633} - - component: {fileID: 377525632} - - component: {fileID: 377525631} - m_Layer: 0 - m_Name: Shutter - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &377525631 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 377525630} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 09e531f25570e604d8fb78aee77125a9, type: 3} - m_Name: - m_EditorClassIdentifier: - _mode: 4 - _color: {r: 0.5, g: 0.5, b: 0.5, a: 1} - _scale: 4 - _shader: {fileID: 4800000, guid: bc6a0edaa182a35449d12a1445ba38db, type: 3} ---- !u!20 &377525632 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 377525630} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.5 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 0 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &377525633 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 377525630} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &395462331 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 395462334} - - component: {fileID: 395462333} - - component: {fileID: 395462332} - m_Layer: 0 - m_Name: Sender (13) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &395462332 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 395462331} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &395462333 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 395462331} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &395462334 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 395462331} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1128232029} - m_Father: {fileID: 0} - m_RootOrder: 14 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &395548011 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 395548012} - - component: {fileID: 395548015} - - component: {fileID: 395548014} - - component: {fileID: 395548013} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &395548012 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 395548011} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1364511949} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &395548013 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 395548011} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (15) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 395548014} - _targetMaterialProperty: _MainTex ---- !u!23 &395548014 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 395548011} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &395548015 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 395548011} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &398316878 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 398316879} - - component: {fileID: 398316881} - - component: {fileID: 398316880} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &398316879 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 398316878} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1909666276} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &398316880 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 398316878} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 32 ---- !u!222 &398316881 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 398316878} - m_CullTransparentMesh: 0 ---- !u!1 &399885488 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 399885489} - - component: {fileID: 399885492} - - component: {fileID: 399885491} - - component: {fileID: 399885490} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &399885489 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 399885488} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1937117184} - - {fileID: 1555882374} - m_Father: {fileID: 935417895} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &399885490 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 399885488} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &399885491 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 399885488} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &399885492 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 399885488} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 935417894} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &404726061 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 404726064} - - component: {fileID: 404726063} - - component: {fileID: 404726062} - m_Layer: 0 - m_Name: Sender (18) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &404726062 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 404726061} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &404726063 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 404726061} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &404726064 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 404726061} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 344049911} - m_Father: {fileID: 0} - m_RootOrder: 19 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &416267527 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 416267528} - m_Layer: 0 - m_Name: Receiver (22) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &416267528 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 416267527} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.375, y: -0.1875, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 230754251} - m_Father: {fileID: 0} - m_RootOrder: 56 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &434645624 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 434645625} - - component: {fileID: 434645628} - - component: {fileID: 434645627} - - component: {fileID: 434645626} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &434645625 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 434645624} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 2048554652} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &434645626 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 434645624} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (12) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 434645627} - _targetMaterialProperty: _MainTex ---- !u!23 &434645627 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 434645624} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &434645628 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 434645624} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &435696823 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 435696824} - - component: {fileID: 435696827} - - component: {fileID: 435696826} - - component: {fileID: 435696825} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &435696824 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 435696823} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1696083532} - - {fileID: 1825808066} - m_Father: {fileID: 597973080} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &435696825 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 435696823} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &435696826 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 435696823} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &435696827 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 435696823} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 597973079} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &443162539 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 443162540} - - component: {fileID: 443162543} - - component: {fileID: 443162542} - - component: {fileID: 443162541} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &443162540 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 443162539} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1277904034} - - {fileID: 965817847} - m_Father: {fileID: 535179721} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &443162541 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 443162539} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &443162542 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 443162539} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &443162543 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 443162539} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 535179720} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &443746567 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 443746568} - - component: {fileID: 443746570} - - component: {fileID: 443746569} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &443746568 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 443746567} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1771136766} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &443746569 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 443746567} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &443746570 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 443746567} - m_CullTransparentMesh: 0 ---- !u!1 &448875871 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 448875872} - - component: {fileID: 448875874} - - component: {fileID: 448875873} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &448875872 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 448875871} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1128232029} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &448875873 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 448875871} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &448875874 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 448875871} - m_CullTransparentMesh: 0 ---- !u!1 &458334709 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 458334710} - - component: {fileID: 458334712} - - component: {fileID: 458334711} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &458334710 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 458334709} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1404864950} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &458334711 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 458334709} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 7 ---- !u!222 &458334712 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 458334709} - m_CullTransparentMesh: 0 ---- !u!1 &459448083 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 459448086} - - component: {fileID: 459448085} - - component: {fileID: 459448084} - m_Layer: 0 - m_Name: Sender (7) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &459448084 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 459448083} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &459448085 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 459448083} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &459448086 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 459448083} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1404864950} - m_Father: {fileID: 0} - m_RootOrder: 8 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &463959925 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 463959926} - - component: {fileID: 463959929} - - component: {fileID: 463959928} - - component: {fileID: 463959927} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &463959926 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 463959925} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 588369685} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &463959927 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 463959925} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (18) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 463959928} - _targetMaterialProperty: _MainTex ---- !u!23 &463959928 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 463959925} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &463959929 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 463959925} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &499363332 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 499363333} - - component: {fileID: 499363335} - - component: {fileID: 499363334} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &499363333 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 499363332} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 967799921} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &499363334 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 499363332} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 8 ---- !u!222 &499363335 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 499363332} - m_CullTransparentMesh: 0 ---- !u!1 &511008714 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 511008715} - m_Layer: 0 - m_Name: Receiver (7) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &511008715 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 511008714} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.375, y: 0.3125, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1744368677} - m_Father: {fileID: 0} - m_RootOrder: 41 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &531323484 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 531323485} - - component: {fileID: 531323488} - - component: {fileID: 531323487} - - component: {fileID: 531323486} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &531323485 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 531323484} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 663635814} - - {fileID: 926240618} - m_Father: {fileID: 1184711969} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &531323486 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 531323484} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &531323487 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 531323484} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &531323488 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 531323484} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1184711968} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &535179718 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 535179721} - - component: {fileID: 535179720} - - component: {fileID: 535179719} - m_Layer: 0 - m_Name: Sender (10) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &535179719 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 535179718} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &535179720 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 535179718} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &535179721 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 535179718} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 443162540} - m_Father: {fileID: 0} - m_RootOrder: 11 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &556173745 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 556173746} - m_Layer: 0 - m_Name: Receiver (11) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &556173746 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 556173745} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.375, y: 0.1875, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 230986895} - m_Father: {fileID: 0} - m_RootOrder: 45 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &566431505 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 566431506} - - component: {fileID: 566431509} - - component: {fileID: 566431508} - - component: {fileID: 566431507} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &566431506 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 566431505} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1198810839} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &566431507 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 566431505} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (30) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 566431508} - _targetMaterialProperty: _MainTex ---- !u!23 &566431508 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 566431505} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &566431509 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 566431505} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &588369684 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 588369685} - m_Layer: 0 - m_Name: Receiver (18) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &588369685 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 588369684} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.375, y: -0.0625, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 463959926} - m_Father: {fileID: 0} - m_RootOrder: 52 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &597973077 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 597973080} - - component: {fileID: 597973079} - - component: {fileID: 597973078} - m_Layer: 0 - m_Name: Sender (19) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &597973078 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 597973077} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &597973079 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 597973077} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &597973080 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 597973077} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 435696824} - m_Father: {fileID: 0} - m_RootOrder: 20 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &614334330 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 614334332} - - component: {fileID: 614334331} - m_Layer: 0 - m_Name: Receiver View - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!20 &614334331 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 614334330} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.5 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 0.5 - m_Depth: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &614334332 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 614334330} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: -1} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 34 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &616793347 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 616793348} - m_Layer: 0 - m_Name: Receiver (10) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &616793348 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 616793347} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.375, y: 0.1875, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 2090913802} - m_Father: {fileID: 0} - m_RootOrder: 44 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &619717085 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 619717086} - - component: {fileID: 619717089} - - component: {fileID: 619717088} - - component: {fileID: 619717087} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &619717086 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 619717085} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1139800686} - - {fileID: 276778599} - m_Father: {fileID: 1196648418} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &619717087 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 619717085} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &619717088 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 619717085} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &619717089 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 619717085} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1196648417} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &635560968 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 635560969} - - component: {fileID: 635560971} - - component: {fileID: 635560970} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &635560969 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 635560968} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1060986427} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &635560970 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 635560968} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &635560971 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 635560968} - m_CullTransparentMesh: 0 ---- !u!1 &641980082 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 641980083} - m_Layer: 0 - m_Name: Receiver (13) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &641980083 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 641980082} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.125, y: 0.0625, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 770713565} - m_Father: {fileID: 0} - m_RootOrder: 47 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &644228569 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 644228570} - m_Layer: 0 - m_Name: Receiver (3) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &644228570 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 644228569} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.125, y: 0.4375, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1103097430} - m_Father: {fileID: 0} - m_RootOrder: 37 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &651803104 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 651803105} - - component: {fileID: 651803107} - - component: {fileID: 651803106} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &651803105 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 651803104} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1352043060} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &651803106 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 651803104} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 31 ---- !u!222 &651803107 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 651803104} - m_CullTransparentMesh: 0 ---- !u!1 &663635813 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 663635814} - - component: {fileID: 663635816} - - component: {fileID: 663635815} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &663635814 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 663635813} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 531323485} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &663635815 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 663635813} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &663635816 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 663635813} - m_CullTransparentMesh: 0 ---- !u!1 &687180876 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 687180877} - - component: {fileID: 687180879} - - component: {fileID: 687180878} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &687180877 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 687180876} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1064312082} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &687180878 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 687180876} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 22 ---- !u!222 &687180879 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 687180876} - m_CullTransparentMesh: 0 ---- !u!1 &699069618 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 699069619} - - component: {fileID: 699069621} - - component: {fileID: 699069620} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &699069619 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 699069618} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1230493361} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &699069620 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 699069618} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 3 ---- !u!222 &699069621 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 699069618} - m_CullTransparentMesh: 0 ---- !u!1 &709665370 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 709665371} - - component: {fileID: 709665373} - - component: {fileID: 709665372} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &709665371 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 709665370} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 359381656} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &709665372 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 709665370} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &709665373 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 709665370} - m_CullTransparentMesh: 0 ---- !u!1 &711503382 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 711503385} - - component: {fileID: 711503384} - - component: {fileID: 711503383} - m_Layer: 0 - m_Name: Sender (29) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &711503383 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 711503382} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &711503384 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 711503382} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &711503385 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 711503382} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1801490563} - m_Father: {fileID: 0} - m_RootOrder: 30 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &711923589 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 711923590} - - component: {fileID: 711923592} - - component: {fileID: 711923591} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &711923590 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 711923589} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 716907866} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &711923591 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 711923589} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &711923592 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 711923589} - m_CullTransparentMesh: 0 ---- !u!1 &716907865 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 716907866} - - component: {fileID: 716907869} - - component: {fileID: 716907868} - - component: {fileID: 716907867} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &716907866 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 716907865} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 711923590} - - {fileID: 724622871} - m_Father: {fileID: 1795464678} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &716907867 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 716907865} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &716907868 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 716907865} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &716907869 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 716907865} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1795464677} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &724622870 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 724622871} - - component: {fileID: 724622873} - - component: {fileID: 724622872} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &724622871 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 724622870} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 716907866} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &724622872 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 724622870} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 5 ---- !u!222 &724622873 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 724622870} - m_CullTransparentMesh: 0 ---- !u!1 &731118513 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 731118514} - - component: {fileID: 731118516} - - component: {fileID: 731118515} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &731118514 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 731118513} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1230493361} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &731118515 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 731118513} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &731118516 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 731118513} - m_CullTransparentMesh: 0 ---- !u!1 &731558242 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 731558245} - - component: {fileID: 731558244} - - component: {fileID: 731558243} - m_Layer: 0 - m_Name: Sender (2) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &731558243 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 731558242} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &731558244 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 731558242} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &731558245 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 731558242} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 369381501} - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &767135701 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 767135702} - - component: {fileID: 767135705} - - component: {fileID: 767135704} - - component: {fileID: 767135703} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &767135702 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 767135701} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1862269432} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &767135703 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 767135701} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (4) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 767135704} - _targetMaterialProperty: _MainTex ---- !u!23 &767135704 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 767135701} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &767135705 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 767135701} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &770713564 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 770713565} - - component: {fileID: 770713568} - - component: {fileID: 770713567} - - component: {fileID: 770713566} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &770713565 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 770713564} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 641980083} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &770713566 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 770713564} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (13) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 770713567} - _targetMaterialProperty: _MainTex ---- !u!23 &770713567 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 770713564} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &770713568 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 770713564} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &773497958 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 773497959} - - component: {fileID: 773497962} - - component: {fileID: 773497961} - - component: {fileID: 773497960} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &773497959 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 773497958} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1143969664} - - {fileID: 1386961365} - m_Father: {fileID: 2113078238} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &773497960 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 773497958} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &773497961 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 773497958} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &773497962 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 773497958} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 2113078237} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &774313640 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 774313641} - - component: {fileID: 774313643} - - component: {fileID: 774313642} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &774313641 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 774313640} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 201073785} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &774313642 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 774313640} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &774313643 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 774313640} - m_CullTransparentMesh: 0 ---- !u!1 &786499098 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 786499099} - - component: {fileID: 786499101} - - component: {fileID: 786499100} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &786499099 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 786499098} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1052575067} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &786499100 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 786499098} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 11 ---- !u!222 &786499101 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 786499098} - m_CullTransparentMesh: 0 ---- !u!1 &825781541 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 825781542} - - component: {fileID: 825781545} - - component: {fileID: 825781544} - - component: {fileID: 825781543} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &825781542 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 825781541} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1344178133} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &825781543 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 825781541} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (2) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 825781544} - _targetMaterialProperty: _MainTex ---- !u!23 &825781544 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 825781541} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &825781545 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 825781541} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &867326210 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 867326213} - - component: {fileID: 867326212} - - component: {fileID: 867326211} - m_Layer: 0 - m_Name: Sender (11) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &867326211 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 867326210} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &867326212 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 867326210} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &867326213 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 867326210} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1052575067} - m_Father: {fileID: 0} - m_RootOrder: 12 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &875328801 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 875328804} - - component: {fileID: 875328803} - - component: {fileID: 875328802} - m_Layer: 0 - m_Name: Sender (9) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &875328802 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 875328801} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &875328803 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 875328801} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &875328804 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 875328801} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1483163654} - m_Father: {fileID: 0} - m_RootOrder: 10 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &880171824 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 880171825} - - component: {fileID: 880171828} - - component: {fileID: 880171827} - - component: {fileID: 880171826} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &880171825 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 880171824} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1634669994} - - {fileID: 1266973046} - m_Father: {fileID: 1585578589} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &880171826 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 880171824} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &880171827 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 880171824} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &880171828 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 880171824} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1585578588} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &924228053 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 924228056} - - component: {fileID: 924228055} - - component: {fileID: 924228054} - m_Layer: 0 - m_Name: Sender (14) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &924228054 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 924228053} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &924228055 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 924228053} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &924228056 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 924228053} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 348761543} - m_Father: {fileID: 0} - m_RootOrder: 15 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &926240617 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 926240618} - - component: {fileID: 926240620} - - component: {fileID: 926240619} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &926240618 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 926240617} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 531323485} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &926240619 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 926240617} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 12 ---- !u!222 &926240620 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 926240617} - m_CullTransparentMesh: 0 ---- !u!1 &935417892 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 935417895} - - component: {fileID: 935417894} - - component: {fileID: 935417893} - m_Layer: 0 - m_Name: Sender (30) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &935417893 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 935417892} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &935417894 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 935417892} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &935417895 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 935417892} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 399885489} - m_Father: {fileID: 0} - m_RootOrder: 31 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &941816061 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 941816062} - - component: {fileID: 941816064} - - component: {fileID: 941816063} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &941816062 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 941816061} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1352043060} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &941816063 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 941816061} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &941816064 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 941816061} - m_CullTransparentMesh: 0 ---- !u!1 &965817846 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 965817847} - - component: {fileID: 965817849} - - component: {fileID: 965817848} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &965817847 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 965817846} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 443162540} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &965817848 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 965817846} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 10 ---- !u!222 &965817849 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 965817846} - m_CullTransparentMesh: 0 ---- !u!1 &967799920 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 967799921} - - component: {fileID: 967799924} - - component: {fileID: 967799923} - - component: {fileID: 967799922} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &967799921 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 967799920} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1533683833} - - {fileID: 499363333} - m_Father: {fileID: 263564120} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &967799922 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 967799920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &967799923 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 967799920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &967799924 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 967799920} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 263564119} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &974159716 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 974159717} - - component: {fileID: 974159720} - - component: {fileID: 974159719} - - component: {fileID: 974159718} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &974159717 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974159716} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1513884058} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &974159718 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974159716} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (29) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 974159719} - _targetMaterialProperty: _MainTex ---- !u!23 &974159719 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974159716} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &974159720 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 974159716} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1030879609 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1030879610} - m_Layer: 0 - m_Name: Receiver (6) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1030879610 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1030879609} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.375, y: 0.3125, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1211197060} - m_Father: {fileID: 0} - m_RootOrder: 40 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1052575066 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1052575067} - - component: {fileID: 1052575070} - - component: {fileID: 1052575069} - - component: {fileID: 1052575068} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1052575067 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1052575066} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 2072103373} - - {fileID: 786499099} - m_Father: {fileID: 867326213} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1052575068 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1052575066} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1052575069 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1052575066} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1052575070 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1052575066} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 867326212} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1060728402 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1060728403} - - component: {fileID: 1060728406} - - component: {fileID: 1060728405} - - component: {fileID: 1060728404} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1060728403 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1060728402} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 233994904} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1060728404 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1060728402} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (1) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1060728405} - _targetMaterialProperty: _MainTex ---- !u!23 &1060728405 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1060728402} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1060728406 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1060728402} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1060986426 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1060986427} - - component: {fileID: 1060986430} - - component: {fileID: 1060986429} - - component: {fileID: 1060986428} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1060986427 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1060986426} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 635560969} - - {fileID: 1225495309} - m_Father: {fileID: 1911690629} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1060986428 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1060986426} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1060986429 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1060986426} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1060986430 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1060986426} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1911690628} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1064312081 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1064312082} - - component: {fileID: 1064312085} - - component: {fileID: 1064312084} - - component: {fileID: 1064312083} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1064312082 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1064312081} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1668543722} - - {fileID: 687180877} - m_Father: {fileID: 1604733318} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1064312083 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1064312081} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1064312084 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1064312081} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1064312085 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1064312081} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1604733317} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1083649132 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1083649133} - - component: {fileID: 1083649136} - - component: {fileID: 1083649135} - - component: {fileID: 1083649134} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1083649133 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1083649132} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1767810350} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1083649134 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1083649132} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (9) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1083649135} - _targetMaterialProperty: _MainTex ---- !u!23 &1083649135 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1083649132} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1083649136 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1083649132} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1103097429 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1103097430} - - component: {fileID: 1103097433} - - component: {fileID: 1103097432} - - component: {fileID: 1103097431} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1103097430 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1103097429} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 644228570} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1103097431 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1103097429} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (3) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1103097432} - _targetMaterialProperty: _MainTex ---- !u!23 &1103097432 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1103097429} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1103097433 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1103097429} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1128232028 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1128232029} - - component: {fileID: 1128232032} - - component: {fileID: 1128232031} - - component: {fileID: 1128232030} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1128232029 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1128232028} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 448875872} - - {fileID: 1145480192} - m_Father: {fileID: 395462334} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1128232030 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1128232028} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1128232031 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1128232028} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1128232032 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1128232028} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 395462333} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1139800685 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1139800686} - - component: {fileID: 1139800688} - - component: {fileID: 1139800687} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1139800686 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1139800685} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 619717086} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1139800687 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1139800685} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1139800688 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1139800685} - m_CullTransparentMesh: 0 ---- !u!1 &1140785914 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1140785915} - - component: {fileID: 1140785917} - - component: {fileID: 1140785916} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1140785915 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1140785914} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1135374} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1140785916 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1140785914} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 24 ---- !u!222 &1140785917 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1140785914} - m_CullTransparentMesh: 0 ---- !u!1 &1143969663 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1143969664} - - component: {fileID: 1143969666} - - component: {fileID: 1143969665} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1143969664 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1143969663} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 773497959} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1143969665 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1143969663} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1143969666 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1143969663} - m_CullTransparentMesh: 0 ---- !u!1 &1145480191 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1145480192} - - component: {fileID: 1145480194} - - component: {fileID: 1145480193} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1145480192 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1145480191} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1128232029} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1145480193 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1145480191} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 13 ---- !u!222 &1145480194 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1145480191} - m_CullTransparentMesh: 0 ---- !u!1 &1165596543 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1165596544} - - component: {fileID: 1165596546} - - component: {fileID: 1165596545} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1165596544 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1165596543} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 227422790} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1165596545 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1165596543} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1165596546 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1165596543} - m_CullTransparentMesh: 0 ---- !u!1 &1184711966 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1184711969} - - component: {fileID: 1184711968} - - component: {fileID: 1184711967} - m_Layer: 0 - m_Name: Sender (12) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1184711967 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1184711966} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1184711968 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1184711966} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1184711969 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1184711966} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 531323485} - m_Father: {fileID: 0} - m_RootOrder: 13 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1196648415 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1196648418} - - component: {fileID: 1196648417} - - component: {fileID: 1196648416} - m_Layer: 0 - m_Name: Sender (27) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1196648416 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1196648415} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1196648417 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1196648415} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1196648418 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1196648415} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 619717086} - m_Father: {fileID: 0} - m_RootOrder: 28 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1198810838 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1198810839} - m_Layer: 0 - m_Name: Receiver (30) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1198810839 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1198810838} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.375, y: -0.4375, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 566431506} - m_Father: {fileID: 0} - m_RootOrder: 64 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1199768281 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1199768284} - - component: {fileID: 1199768283} - - component: {fileID: 1199768282} - m_Layer: 0 - m_Name: Sender (1) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1199768282 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1199768281} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1199768283 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1199768281} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1199768284 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1199768281} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1229636421} - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1211197059 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1211197060} - - component: {fileID: 1211197063} - - component: {fileID: 1211197062} - - component: {fileID: 1211197061} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1211197060 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1211197059} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1030879610} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1211197061 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1211197059} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (6) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1211197062} - _targetMaterialProperty: _MainTex ---- !u!23 &1211197062 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1211197059} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1211197063 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1211197059} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1215491251 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1215491252} - - component: {fileID: 1215491254} - - component: {fileID: 1215491253} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1215491252 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1215491251} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1771136766} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1215491253 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1215491251} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 4 ---- !u!222 &1215491254 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1215491251} - m_CullTransparentMesh: 0 ---- !u!1 &1216948967 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1216948968} - - component: {fileID: 1216948970} - - component: {fileID: 1216948969} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1216948968 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1216948967} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 2144330595} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1216948969 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1216948967} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1216948970 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1216948967} - m_CullTransparentMesh: 0 ---- !u!1 &1225495308 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1225495309} - - component: {fileID: 1225495311} - - component: {fileID: 1225495310} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1225495309 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1225495308} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1060986427} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1225495310 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1225495308} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 17 ---- !u!222 &1225495311 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1225495308} - m_CullTransparentMesh: 0 ---- !u!1 &1229636420 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1229636421} - - component: {fileID: 1229636424} - - component: {fileID: 1229636423} - - component: {fileID: 1229636422} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1229636421 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1229636420} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 370915450} - - {fileID: 206515029} - m_Father: {fileID: 1199768284} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1229636422 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1229636420} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1229636423 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1229636420} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1229636424 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1229636420} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1199768283} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1230493360 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1230493361} - - component: {fileID: 1230493364} - - component: {fileID: 1230493363} - - component: {fileID: 1230493362} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1230493361 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1230493360} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 731118514} - - {fileID: 699069619} - m_Father: {fileID: 1986169276} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1230493362 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1230493360} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1230493363 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1230493360} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1230493364 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1230493360} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1986169275} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1234561161 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1234561162} - - component: {fileID: 1234561165} - - component: {fileID: 1234561164} - - component: {fileID: 1234561163} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1234561162 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1234561161} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1506780143} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1234561163 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1234561161} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (32) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1234561164} - _targetMaterialProperty: _MainTex ---- !u!23 &1234561164 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1234561161} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1234561165 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1234561161} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1247888047 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1247888048} - - component: {fileID: 1247888050} - - component: {fileID: 1247888049} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1247888048 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1247888047} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 2144330595} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1247888049 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1247888047} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 6 ---- !u!222 &1247888050 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1247888047} - m_CullTransparentMesh: 0 ---- !u!1 &1266973045 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1266973046} - - component: {fileID: 1266973048} - - component: {fileID: 1266973047} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1266973046 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1266973045} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 880171825} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1266973047 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1266973045} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 16 ---- !u!222 &1266973048 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1266973045} - m_CullTransparentMesh: 0 ---- !u!1 &1267894181 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1267894184} - - component: {fileID: 1267894183} - - component: {fileID: 1267894182} - m_Layer: 0 - m_Name: Sender (24) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1267894182 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1267894181} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1267894183 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1267894181} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1267894184 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1267894181} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1135374} - m_Father: {fileID: 0} - m_RootOrder: 25 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1269385223 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1269385224} - - component: {fileID: 1269385227} - - component: {fileID: 1269385226} - - component: {fileID: 1269385225} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1269385224 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1269385223} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1395838316} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1269385225 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1269385223} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (19) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1269385226} - _targetMaterialProperty: _MainTex ---- !u!23 &1269385226 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1269385223} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1269385227 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1269385223} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1275330637 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1275330638} - - component: {fileID: 1275330640} - - component: {fileID: 1275330639} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1275330638 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1275330637} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 344049911} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1275330639 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1275330637} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1275330640 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1275330637} - m_CullTransparentMesh: 0 ---- !u!1 &1277904033 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1277904034} - - component: {fileID: 1277904036} - - component: {fileID: 1277904035} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1277904034 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1277904033} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 443162540} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1277904035 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1277904033} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1277904036 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1277904033} - m_CullTransparentMesh: 0 ---- !u!1 &1287445404 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1287445405} - - component: {fileID: 1287445408} - - component: {fileID: 1287445407} - - component: {fileID: 1287445406} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1287445405 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1287445404} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 219307556} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1287445406 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1287445404} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (26) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1287445407} - _targetMaterialProperty: _MainTex ---- !u!23 &1287445407 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1287445404} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1287445408 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1287445404} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1344178132 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1344178133} - m_Layer: 0 - m_Name: Receiver (2) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1344178133 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1344178132} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.125, y: 0.4375, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 825781542} - m_Father: {fileID: 0} - m_RootOrder: 36 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1352043059 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1352043060} - - component: {fileID: 1352043063} - - component: {fileID: 1352043062} - - component: {fileID: 1352043061} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1352043060 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1352043059} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 941816062} - - {fileID: 651803105} - m_Father: {fileID: 1605832960} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1352043061 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1352043059} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1352043062 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1352043059} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1352043063 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1352043059} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1605832959} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1364511948 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1364511949} - m_Layer: 0 - m_Name: Receiver (15) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1364511949 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1364511948} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.375, y: 0.0625, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 395548012} - m_Father: {fileID: 0} - m_RootOrder: 49 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1367757538 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1367757539} - - component: {fileID: 1367757542} - - component: {fileID: 1367757541} - - component: {fileID: 1367757540} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1367757539 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1367757538} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1559329153} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1367757540 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1367757538} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (14) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1367757541} - _targetMaterialProperty: _MainTex ---- !u!23 &1367757541 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1367757538} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1367757542 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1367757538} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1386819107 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1386819108} - - component: {fileID: 1386819110} - - component: {fileID: 1386819109} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1386819108 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1386819107} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1801490563} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1386819109 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1386819107} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1386819110 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1386819107} - m_CullTransparentMesh: 0 ---- !u!1 &1386961364 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1386961365} - - component: {fileID: 1386961367} - - component: {fileID: 1386961366} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1386961365 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1386961364} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 773497959} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1386961366 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1386961364} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 25 ---- !u!222 &1386961367 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1386961364} - m_CullTransparentMesh: 0 ---- !u!1 &1386998310 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1386998311} - - component: {fileID: 1386998314} - - component: {fileID: 1386998313} - - component: {fileID: 1386998312} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1386998311 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1386998310} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1922512863} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1386998312 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1386998310} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (16) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1386998313} - _targetMaterialProperty: _MainTex ---- !u!23 &1386998313 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1386998310} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1386998314 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1386998310} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1391960365 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1391960368} - - component: {fileID: 1391960367} - - component: {fileID: 1391960366} - m_Layer: 0 - m_Name: Sender (21) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1391960366 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1391960365} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1391960367 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1391960365} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1391960368 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1391960365} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 359381656} - m_Father: {fileID: 0} - m_RootOrder: 22 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1395838315 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1395838316} - m_Layer: 0 - m_Name: Receiver (19) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1395838316 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1395838315} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.375, y: -0.0625, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1269385224} - m_Father: {fileID: 0} - m_RootOrder: 53 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1404864949 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1404864950} - - component: {fileID: 1404864953} - - component: {fileID: 1404864952} - - component: {fileID: 1404864951} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1404864950 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1404864949} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 301101840} - - {fileID: 458334710} - m_Father: {fileID: 459448086} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1404864951 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1404864949} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1404864952 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1404864949} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1404864953 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1404864949} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 459448085} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1434980982 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1434980983} - - component: {fileID: 1434980986} - - component: {fileID: 1434980985} - - component: {fileID: 1434980984} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1434980983 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1434980982} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 2135053882} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1434980984 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1434980982} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (24) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1434980985} - _targetMaterialProperty: _MainTex ---- !u!23 &1434980985 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1434980982} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1434980986 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1434980982} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1441517511 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1441517512} - - component: {fileID: 1441517514} - - component: {fileID: 1441517513} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1441517512 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1441517511} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 369381501} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1441517513 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1441517511} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 2 ---- !u!222 &1441517514 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1441517511} - m_CullTransparentMesh: 0 ---- !u!1 &1457836243 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1457836244} - - component: {fileID: 1457836246} - - component: {fileID: 1457836245} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1457836244 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1457836243} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 359381656} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1457836245 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1457836243} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 21 ---- !u!222 &1457836246 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1457836243} - m_CullTransparentMesh: 0 ---- !u!1 &1483163653 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1483163654} - - component: {fileID: 1483163657} - - component: {fileID: 1483163656} - - component: {fileID: 1483163655} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1483163654 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1483163653} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 314215103} - - {fileID: 69388504} - m_Father: {fileID: 875328804} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1483163655 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1483163653} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1483163656 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1483163653} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1483163657 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1483163653} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 875328803} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1501642950 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1501642951} - - component: {fileID: 1501642953} - - component: {fileID: 1501642952} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1501642951 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1501642950} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 348761543} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1501642952 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1501642950} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 14 ---- !u!222 &1501642953 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1501642950} - m_CullTransparentMesh: 0 ---- !u!1 &1506780142 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1506780143} - m_Layer: 0 - m_Name: Receiver (32) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1506780143 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1506780142} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.125, y: -0.4375, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1234561162} - m_Father: {fileID: 0} - m_RootOrder: 66 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1513884057 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1513884058} - m_Layer: 0 - m_Name: Receiver (29) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1513884058 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1513884057} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.125, y: -0.4375, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 974159717} - m_Father: {fileID: 0} - m_RootOrder: 63 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1533683832 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1533683833} - - component: {fileID: 1533683835} - - component: {fileID: 1533683834} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1533683833 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1533683832} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 967799921} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1533683834 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1533683832} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1533683835 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1533683832} - m_CullTransparentMesh: 0 ---- !u!1 &1546198742 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1546198745} - - component: {fileID: 1546198744} - - component: {fileID: 1546198743} - m_Layer: 0 - m_Name: Sender (6) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1546198743 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1546198742} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1546198744 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1546198742} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1546198745 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1546198742} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 2144330595} - m_Father: {fileID: 0} - m_RootOrder: 7 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1555882373 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1555882374} - - component: {fileID: 1555882376} - - component: {fileID: 1555882375} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1555882374 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1555882373} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 399885489} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1555882375 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1555882373} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 30 ---- !u!222 &1555882376 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1555882373} - m_CullTransparentMesh: 0 ---- !u!1 &1559329152 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1559329153} - m_Layer: 0 - m_Name: Receiver (14) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1559329153 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1559329152} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.375, y: 0.0625, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1367757539} - m_Father: {fileID: 0} - m_RootOrder: 48 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1559718177 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1559718178} - - component: {fileID: 1559718181} - - component: {fileID: 1559718180} - - component: {fileID: 1559718179} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1559718178 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1559718177} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 2089745217} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1559718179 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1559718177} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (5) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1559718180} - _targetMaterialProperty: _MainTex ---- !u!23 &1559718180 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1559718177} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1559718181 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1559718177} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1576957640 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1576957641} - m_Layer: 0 - m_Name: Receiver (27) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1576957641 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1576957640} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.375, y: -0.3125, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1689045325} - m_Father: {fileID: 0} - m_RootOrder: 61 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1580657702 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1580657703} - m_Layer: 0 - m_Name: Receiver (28) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1580657703 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1580657702} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.125, y: -0.3125, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1731517303} - m_Father: {fileID: 0} - m_RootOrder: 62 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1585578586 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1585578589} - - component: {fileID: 1585578588} - - component: {fileID: 1585578587} - m_Layer: 0 - m_Name: Sender (16) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1585578587 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1585578586} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1585578588 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1585578586} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1585578589 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1585578586} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 880171825} - m_Father: {fileID: 0} - m_RootOrder: 17 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1589360895 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1589360896} - m_Layer: 0 - m_Name: Receiver (17) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1589360896 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1589360895} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.125, y: -0.0625, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1607674464} - m_Father: {fileID: 0} - m_RootOrder: 51 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1604733315 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1604733318} - - component: {fileID: 1604733317} - - component: {fileID: 1604733316} - m_Layer: 0 - m_Name: Sender (22) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1604733316 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1604733315} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1604733317 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1604733315} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1604733318 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1604733315} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1064312082} - m_Father: {fileID: 0} - m_RootOrder: 23 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1605832957 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1605832960} - - component: {fileID: 1605832959} - - component: {fileID: 1605832958} - m_Layer: 0 - m_Name: Sender (31) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1605832958 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1605832957} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1605832959 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1605832957} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1605832960 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1605832957} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1352043060} - m_Father: {fileID: 0} - m_RootOrder: 32 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1607674463 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1607674464} - - component: {fileID: 1607674467} - - component: {fileID: 1607674466} - - component: {fileID: 1607674465} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1607674464 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1607674463} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1589360896} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1607674465 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1607674463} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (17) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1607674466} - _targetMaterialProperty: _MainTex ---- !u!23 &1607674466 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1607674463} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1607674467 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1607674463} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1608598277 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1608598280} - - component: {fileID: 1608598279} - - component: {fileID: 1608598278} - m_Layer: 0 - m_Name: Sender (23) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1608598278 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1608598277} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1608598279 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1608598277} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1608598280 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1608598277} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 176868029} - m_Father: {fileID: 0} - m_RootOrder: 24 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1614741339 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1614741340} - - component: {fileID: 1614741343} - - component: {fileID: 1614741342} - - component: {fileID: 1614741341} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1614741340 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1614741339} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1650109686} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1614741341 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1614741339} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (25) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1614741342} - _targetMaterialProperty: _MainTex ---- !u!23 &1614741342 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1614741339} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1614741343 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1614741339} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1621167656 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1621167657} - m_Layer: 0 - m_Name: Receiver (20) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1621167657 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1621167656} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.125, y: -0.0625, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1700506274} - m_Father: {fileID: 0} - m_RootOrder: 54 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1628563640 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1628563641} - - component: {fileID: 1628563643} - - component: {fileID: 1628563642} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1628563641 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1628563640} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 369381501} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1628563642 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1628563640} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1628563643 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1628563640} - m_CullTransparentMesh: 0 ---- !u!1 &1634669993 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1634669994} - - component: {fileID: 1634669996} - - component: {fileID: 1634669995} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1634669994 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1634669993} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 880171825} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1634669995 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1634669993} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1634669996 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1634669993} - m_CullTransparentMesh: 0 ---- !u!1 &1650109685 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1650109686} - m_Layer: 0 - m_Name: Receiver (25) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1650109686 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1650109685} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.125, y: -0.3125, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1614741340} - m_Father: {fileID: 0} - m_RootOrder: 59 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1652695350 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1652695351} - m_Layer: 0 - m_Name: Receiver (23) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1652695351 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1652695350} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.375, y: -0.1875, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1976684059} - m_Father: {fileID: 0} - m_RootOrder: 57 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1660971403 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1660971404} - - component: {fileID: 1660971407} - - component: {fileID: 1660971406} - - component: {fileID: 1660971405} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1660971404 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1660971403} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1915823783} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1660971405 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1660971403} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (31) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1660971406} - _targetMaterialProperty: _MainTex ---- !u!23 &1660971406 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1660971403} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1660971407 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1660971403} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1668543721 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1668543722} - - component: {fileID: 1668543724} - - component: {fileID: 1668543723} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1668543722 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1668543721} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1064312082} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1668543723 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1668543721} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1668543724 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1668543721} - m_CullTransparentMesh: 0 ---- !u!1 &1681023697 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1681023698} - - component: {fileID: 1681023700} - - component: {fileID: 1681023699} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1681023698 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1681023697} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 176868029} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1681023699 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1681023697} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 23 ---- !u!222 &1681023700 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1681023697} - m_CullTransparentMesh: 0 ---- !u!1 &1689045324 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1689045325} - - component: {fileID: 1689045328} - - component: {fileID: 1689045327} - - component: {fileID: 1689045326} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1689045325 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1689045324} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1576957641} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1689045326 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1689045324} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (27) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1689045327} - _targetMaterialProperty: _MainTex ---- !u!23 &1689045327 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1689045324} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1689045328 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1689045324} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1696083531 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1696083532} - - component: {fileID: 1696083534} - - component: {fileID: 1696083533} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1696083532 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1696083531} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 435696824} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1696083533 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1696083531} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1696083534 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1696083531} - m_CullTransparentMesh: 0 ---- !u!1 &1696554600 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1696554603} - - component: {fileID: 1696554602} - - component: {fileID: 1696554601} - m_Layer: 0 - m_Name: Sender (4) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1696554601 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1696554600} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1696554602 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1696554600} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1696554603 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1696554600} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1771136766} - m_Father: {fileID: 0} - m_RootOrder: 5 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1700506273 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1700506274} - - component: {fileID: 1700506277} - - component: {fileID: 1700506276} - - component: {fileID: 1700506275} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1700506274 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1700506273} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1621167657} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1700506275 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1700506273} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (20) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1700506276} - _targetMaterialProperty: _MainTex ---- !u!23 &1700506276 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1700506273} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1700506277 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1700506273} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1731517302 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1731517303} - - component: {fileID: 1731517306} - - component: {fileID: 1731517305} - - component: {fileID: 1731517304} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1731517303 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1731517302} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1580657703} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1731517304 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1731517302} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (28) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1731517305} - _targetMaterialProperty: _MainTex ---- !u!23 &1731517305 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1731517302} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1731517306 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1731517302} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1744368676 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1744368677} - - component: {fileID: 1744368680} - - component: {fileID: 1744368679} - - component: {fileID: 1744368678} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1744368677 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1744368676} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 511008715} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1744368678 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1744368676} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (7) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1744368679} - _targetMaterialProperty: _MainTex ---- !u!23 &1744368679 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1744368676} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1744368680 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1744368676} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1749680505 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1749680506} - - component: {fileID: 1749680508} - - component: {fileID: 1749680507} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1749680506 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1749680505} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 344049911} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1749680507 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1749680505} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 18 ---- !u!222 &1749680508 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1749680505} - m_CullTransparentMesh: 0 ---- !u!1 &1767810349 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1767810350} - m_Layer: 0 - m_Name: Receiver (9) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1767810350 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1767810349} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.125, y: 0.1875, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1083649133} - m_Father: {fileID: 0} - m_RootOrder: 43 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1771136765 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1771136766} - - component: {fileID: 1771136769} - - component: {fileID: 1771136768} - - component: {fileID: 1771136767} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1771136766 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1771136765} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 443746568} - - {fileID: 1215491252} - m_Father: {fileID: 1696554603} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1771136767 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1771136765} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1771136768 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1771136765} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1771136769 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1771136765} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1696554602} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1786637750 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1786637751} - - component: {fileID: 1786637752} - m_Layer: 0 - m_Name: Randomizer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1786637751 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1786637750} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1786637752 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1786637750} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6518127bfe3cc36408250c95735192be, type: 3} - m_Name: - m_EditorClassIdentifier: - _objects: - - {fileID: 1199768281} - - {fileID: 731558242} - - {fileID: 1986169273} - - {fileID: 1696554600} - - {fileID: 1795464675} - - {fileID: 1546198742} - - {fileID: 459448083} - - {fileID: 263564117} - - {fileID: 875328801} - - {fileID: 535179718} - - {fileID: 867326210} - - {fileID: 1184711966} - - {fileID: 395462331} - - {fileID: 924228053} - - {fileID: 2049445686} - - {fileID: 1585578586} - - {fileID: 1911690626} - - {fileID: 404726061} - - {fileID: 597973077} - - {fileID: 2054852574} - - {fileID: 1391960365} - - {fileID: 1604733315} - - {fileID: 1608598277} - - {fileID: 1267894181} - - {fileID: 2113078235} - - {fileID: 2025965315} - - {fileID: 1196648415} - - {fileID: 68656102} - - {fileID: 711503382} - - {fileID: 935417892} - - {fileID: 1605832957} - - {fileID: 161803713} - - {fileID: 233994903} - - {fileID: 1344178132} - - {fileID: 644228569} - - {fileID: 1862269431} - - {fileID: 2089745216} - - {fileID: 1030879609} - - {fileID: 511008714} - - {fileID: 2017739488} - - {fileID: 1767810349} - - {fileID: 616793347} - - {fileID: 556173745} - - {fileID: 2048554651} - - {fileID: 641980082} - - {fileID: 1559329152} - - {fileID: 1364511948} - - {fileID: 1922512862} - - {fileID: 1589360895} - - {fileID: 588369684} - - {fileID: 1395838315} - - {fileID: 1621167656} - - {fileID: 2117672149} - - {fileID: 416267527} - - {fileID: 1652695350} - - {fileID: 2135053881} - - {fileID: 1650109685} - - {fileID: 219307555} - - {fileID: 1576957640} - - {fileID: 1580657702} - - {fileID: 1513884057} - - {fileID: 1198810838} - - {fileID: 1915823782} - - {fileID: 1506780142} ---- !u!1 &1795464675 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1795464678} - - component: {fileID: 1795464677} - - component: {fileID: 1795464676} - m_Layer: 0 - m_Name: Sender (5) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1795464676 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1795464675} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1795464677 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1795464675} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1795464678 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1795464675} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 716907866} - m_Father: {fileID: 0} - m_RootOrder: 6 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1801490562 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1801490563} - - component: {fileID: 1801490566} - - component: {fileID: 1801490565} - - component: {fileID: 1801490564} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1801490563 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1801490562} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1386819108} - - {fileID: 300143128} - m_Father: {fileID: 711503385} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1801490564 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1801490562} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1801490565 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1801490562} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1801490566 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1801490562} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 711503384} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1825808065 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1825808066} - - component: {fileID: 1825808068} - - component: {fileID: 1825808067} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1825808066 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1825808065} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 435696824} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1825808067 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1825808065} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 300 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 300 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 19 ---- !u!222 &1825808068 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1825808065} - m_CullTransparentMesh: 0 ---- !u!1 &1862269431 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1862269432} - m_Layer: 0 - m_Name: Receiver (4) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1862269432 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1862269431} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.375, y: 0.4375, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 767135702} - m_Father: {fileID: 0} - m_RootOrder: 38 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1909666275 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1909666276} - - component: {fileID: 1909666279} - - component: {fileID: 1909666278} - - component: {fileID: 1909666277} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1909666276 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1909666275} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 174227703} - - {fileID: 398316879} - m_Father: {fileID: 161803716} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &1909666277 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1909666275} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &1909666278 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1909666275} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &1909666279 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1909666275} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 161803715} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &1911690626 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1911690629} - - component: {fileID: 1911690628} - - component: {fileID: 1911690627} - m_Layer: 0 - m_Name: Sender (17) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1911690627 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1911690626} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1911690628 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1911690626} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1911690629 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1911690626} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1060986427} - m_Father: {fileID: 0} - m_RootOrder: 18 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1915823782 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1915823783} - m_Layer: 0 - m_Name: Receiver (31) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1915823783 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1915823782} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.375, y: -0.4375, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1660971404} - m_Father: {fileID: 0} - m_RootOrder: 65 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1922512862 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1922512863} - m_Layer: 0 - m_Name: Receiver (16) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1922512863 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1922512862} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.125, y: 0.0625, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1386998311} - m_Father: {fileID: 0} - m_RootOrder: 50 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1927649159 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1927649160} - - component: {fileID: 1927649162} - - component: {fileID: 1927649161} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1927649160 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1927649159} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 348761543} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1927649161 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1927649159} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1927649162 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1927649159} - m_CullTransparentMesh: 0 ---- !u!1 &1937117183 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1937117184} - - component: {fileID: 1937117186} - - component: {fileID: 1937117185} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1937117184 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1937117183} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 399885489} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1937117185 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1937117183} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1937117186 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1937117183} - m_CullTransparentMesh: 0 ---- !u!1 &1976684058 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1976684059} - - component: {fileID: 1976684062} - - component: {fileID: 1976684061} - - component: {fileID: 1976684060} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1976684059 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1976684058} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1652695351} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1976684060 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1976684058} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (23) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 1976684061} - _targetMaterialProperty: _MainTex ---- !u!23 &1976684061 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1976684058} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &1976684062 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1976684058} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &1986169273 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1986169276} - - component: {fileID: 1986169275} - - component: {fileID: 1986169274} - m_Layer: 0 - m_Name: Sender (3) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1986169274 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1986169273} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &1986169275 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1986169273} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1986169276 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1986169273} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1230493361} - m_Father: {fileID: 0} - m_RootOrder: 4 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2017739488 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2017739489} - m_Layer: 0 - m_Name: Receiver (8) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2017739489 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2017739488} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.125, y: 0.3125, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 43967866} - m_Father: {fileID: 0} - m_RootOrder: 42 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2025965315 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2025965318} - - component: {fileID: 2025965317} - - component: {fileID: 2025965316} - m_Layer: 0 - m_Name: Sender (26) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &2025965316 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2025965315} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &2025965317 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2025965315} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &2025965318 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2025965315} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 201073785} - m_Father: {fileID: 0} - m_RootOrder: 27 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2048554651 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2048554652} - m_Layer: 0 - m_Name: Receiver (12) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2048554652 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2048554651} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.125, y: 0.1875, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 434645625} - m_Father: {fileID: 0} - m_RootOrder: 46 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2049445686 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2049445689} - - component: {fileID: 2049445688} - - component: {fileID: 2049445687} - m_Layer: 0 - m_Name: Sender (15) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &2049445687 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2049445686} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &2049445688 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2049445686} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &2049445689 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2049445686} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 226326260} - m_Father: {fileID: 0} - m_RootOrder: 16 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2054852574 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2054852577} - - component: {fileID: 2054852576} - - component: {fileID: 2054852575} - m_Layer: 0 - m_Name: Sender (20) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &2054852575 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2054852574} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &2054852576 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2054852574} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &2054852577 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2054852574} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 227422790} - m_Father: {fileID: 0} - m_RootOrder: 21 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2069094805 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2069094806} - - component: {fileID: 2069094808} - - component: {fileID: 2069094807} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2069094806 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2069094805} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1135374} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2069094807 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2069094805} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &2069094808 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2069094805} - m_CullTransparentMesh: 0 ---- !u!1 &2072103372 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2072103373} - - component: {fileID: 2072103375} - - component: {fileID: 2072103374} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2072103373 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2072103372} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1052575067} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2072103374 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2072103372} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, - Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Texture: {fileID: 8400000, guid: 35c93f0d33b8ff74bbbd1a5786965543, type: 2} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &2072103375 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2072103372} - m_CullTransparentMesh: 0 ---- !u!1 &2089745216 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2089745217} - m_Layer: 0 - m_Name: Receiver (5) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2089745217 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2089745216} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.125, y: 0.3125, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1559718178} - m_Father: {fileID: 0} - m_RootOrder: 39 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2090913801 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2090913802} - - component: {fileID: 2090913805} - - component: {fileID: 2090913804} - - component: {fileID: 2090913803} - m_Layer: 0 - m_Name: Quad - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2090913802 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2090913801} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 616793348} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &2090913803 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2090913801} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceName: Sender (10) - _targetTexture: {fileID: 0} - _targetRenderer: {fileID: 2090913804} - _targetMaterialProperty: _MainTex ---- !u!23 &2090913804 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2090913801} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 4294967295 - m_Materials: - - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &2090913805 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2090913801} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &2113078235 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2113078238} - - component: {fileID: 2113078237} - - component: {fileID: 2113078236} - m_Layer: 0 - m_Name: Sender (25) - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &2113078236 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2113078235} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} - m_Name: - m_EditorClassIdentifier: - _sourceTexture: {fileID: 0} - _alphaSupport: 0 ---- !u!20 &2113078237 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2113078235} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.1 - far clip plane: 2 - field of view: 60 - orthographic: 1 - orthographic size: 1 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 32 - m_RenderingPath: 1 - m_TargetTexture: {fileID: 8400000, guid: 165a6f902d78e484c83b6bb18a33029e, type: 2} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 0 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 0 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &2113078238 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2113078235} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 773497959} - m_Father: {fileID: 0} - m_RootOrder: 26 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2117672149 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2117672150} - m_Layer: 0 - m_Name: Receiver (21) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2117672150 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2117672149} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.125, y: -0.1875, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 98806807} - m_Father: {fileID: 0} - m_RootOrder: 55 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2133003126 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2133003127} - - component: {fileID: 2133003130} - - component: {fileID: 2133003129} - - component: {fileID: 2133003128} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2133003127 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2133003126} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 279473506} - - {fileID: 191595034} - m_Father: {fileID: 68656105} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &2133003128 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2133003126} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &2133003129 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2133003126} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &2133003130 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2133003126} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 68656104} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &2135053881 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2135053882} - m_Layer: 0 - m_Name: Receiver (24) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2135053882 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2135053881} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.125, y: -0.1875, z: 0} - m_LocalScale: {x: 0.25, y: 0.125, z: 0.25} - m_Children: - - {fileID: 1434980983} - m_Father: {fileID: 0} - m_RootOrder: 58 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &2144330594 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2144330595} - - component: {fileID: 2144330598} - - component: {fileID: 2144330597} - - component: {fileID: 2144330596} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2144330595 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2144330594} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1216948968} - - {fileID: 1247888048} - m_Father: {fileID: 1546198745} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &2144330596 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2144330594} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &2144330597 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2144330594} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 ---- !u!223 &2144330598 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2144330594} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 1546198744} - m_PlaneDistance: 1 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 diff --git a/Assets/Test.unity b/Assets/Test.unity new file mode 100644 index 0000000..4d547be --- /dev/null +++ b/Assets/Test.unity @@ -0,0 +1,3111 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074014, b: 0.3587274, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &15741319 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 15741320} + m_Layer: 0 + m_Name: Timecode + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &15741320 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 15741319} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1548783097} + - {fileID: 2136759565} + - {fileID: 1258656581} + - {fileID: 918813314} + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &168698425 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 168698426} + - component: {fileID: 168698429} + - component: {fileID: 168698428} + - component: {fileID: 168698427} + m_Layer: 5 + m_Name: Viewport + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &168698426 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 168698425} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 537574245} + m_Father: {fileID: 1625079608} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -18, y: 0} + m_Pivot: {x: 0, y: 1} +--- !u!114 &168698427 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 168698425} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ShowMaskGraphic: 0 +--- !u!114 &168698428 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 168698425} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &168698429 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 168698425} + m_CullTransparentMesh: 1 +--- !u!1 &275326808 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 275326809} + - component: {fileID: 275326811} + - component: {fileID: 275326810} + m_Layer: 5 + m_Name: Image 3 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &275326809 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 275326808} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 2129989406} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &275326810 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 275326808} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Texture: {fileID: 8400000, guid: ff94f91c62216aa4b8b027f13fe15303, type: 2} + m_UVRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 +--- !u!222 &275326811 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 275326808} + m_CullTransparentMesh: 1 +--- !u!1 &296519804 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 296519805} + - component: {fileID: 296519806} + - component: {fileID: 296519807} + m_Layer: 0 + m_Name: Spout Receiver + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &296519805 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 296519804} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 2070317740} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &296519806 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 296519804} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 62f7dec0b00674947bc631624c21970a, type: 3} + m_Name: + m_EditorClassIdentifier: + _sourceName: Select a Spout source + _targetTexture: {fileID: 0} + _targetRenderer: {fileID: 529700670} + _targetMaterialProperty: _MainTex + _resources: {fileID: 11400000, guid: f449ebbe2051c2e4d993eaa773a410de, type: 2} +--- !u!114 &296519807 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 296519804} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ae07b03851b241b438588e43455fa256, type: 3} + m_Name: + m_EditorClassIdentifier: + _dropdown: {fileID: 1317273802} +--- !u!1 &313292985 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 313292986} + - component: {fileID: 313292988} + - component: {fileID: 313292987} + m_Layer: 5 + m_Name: Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &313292986 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 313292985} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1317273801} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: -7.5, y: -0.5} + m_SizeDelta: {x: -35, y: -13} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &313292987 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 313292985} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 14 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Option A +--- !u!222 &313292988 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 313292985} + m_CullTransparentMesh: 1 +--- !u!1 &360967245 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 360967246} + - component: {fileID: 360967248} + - component: {fileID: 360967247} + m_Layer: 5 + m_Name: Image 1 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &360967246 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 360967245} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 428298231} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &360967247 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 360967245} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Texture: {fileID: 8400000, guid: 9ea82f700d9e65841ae79a62180986d5, type: 2} + m_UVRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 +--- !u!222 &360967248 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 360967245} + m_CullTransparentMesh: 1 +--- !u!1 &382375177 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 382375180} + - component: {fileID: 382375179} + - component: {fileID: 382375178} + m_Layer: 0 + m_Name: Gradient Quad + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &382375178 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 382375177} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: c01d1eeee63acea418bafad09e507872, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &382375179 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 382375177} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &382375180 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 382375177} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 1} + m_LocalScale: {x: 1.7777778, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 830819964} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &428298230 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 428298231} + - component: {fileID: 428298232} + m_Layer: 5 + m_Name: Row 1 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &428298231 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 428298230} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1611900547} + - {fileID: 360967246} + m_Father: {fileID: 1932864584} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &428298232 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 428298230} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 0 + m_Right: 0 + m_Top: 0 + m_Bottom: 0 + m_ChildAlignment: 0 + m_Spacing: 0 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &529700669 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 529700672} + - component: {fileID: 529700671} + - component: {fileID: 529700670} + m_Layer: 0 + m_Name: Quad + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &529700670 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 529700669} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 7d717d2aa323e5c469963ea9c0a6cbe9, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &529700671 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 529700669} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &529700672 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 529700669} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.8888889, y: 0.5, z: 1} + m_LocalScale: {x: 1.7777778, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 2070317740} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &537574244 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 537574245} + m_Layer: 5 + m_Name: Content + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &537574245 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 537574244} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1280953319} + m_Father: {fileID: 168698426} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 28} + m_Pivot: {x: 0.5, y: 1} +--- !u!1 &676107413 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 676107414} + - component: {fileID: 676107416} + - component: {fileID: 676107415} + m_Layer: 5 + m_Name: Image 2 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &676107414 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 676107413} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 2129989406} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &676107415 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 676107413} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Texture: {fileID: 8400000, guid: 73e8dcdfe3f22594693dc569656418c6, type: 2} + m_UVRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 +--- !u!222 &676107416 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 676107413} + m_CullTransparentMesh: 1 +--- !u!1 &703445641 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 703445642} + - component: {fileID: 703445644} + - component: {fileID: 703445643} + m_Layer: 5 + m_Name: Item Checkmark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &703445642 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 703445641} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1280953319} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 10, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &703445643 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 703445641} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &703445644 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 703445641} + m_CullTransparentMesh: 1 +--- !u!1 &761420633 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 761420634} + - component: {fileID: 761420636} + - component: {fileID: 761420635} + m_Layer: 5 + m_Name: Handle + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &761420634 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 761420633} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1975398971} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0.2} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &761420635 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 761420633} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &761420636 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 761420633} + m_CullTransparentMesh: 1 +--- !u!1 &803165094 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 803165095} + - component: {fileID: 803165097} + - component: {fileID: 803165096} + m_Layer: 5 + m_Name: Item Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &803165095 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 803165094} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1280953319} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 5, y: -0.5} + m_SizeDelta: {x: -30, y: -3} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &803165096 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 803165094} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 14 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Option A +--- !u!222 &803165097 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 803165094} + m_CullTransparentMesh: 1 +--- !u!1 &830819963 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 830819964} + m_Layer: 0 + m_Name: Gradient + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &830819964 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 830819963} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1000, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 2085900136} + - {fileID: 382375180} + - {fileID: 1353969752} + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &918813312 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 918813314} + - component: {fileID: 918813313} + m_Layer: 0 + m_Name: Spout Sender (Timecode) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &918813313 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 918813312} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} + m_Name: + m_EditorClassIdentifier: + _spoutName: KlakSpout (Timecode) + _keepAlpha: 0 + _captureMethod: 1 + _sourceCamera: {fileID: 1548783096} + _sourceTexture: {fileID: 0} + _resources: {fileID: 11400000, guid: f449ebbe2051c2e4d993eaa773a410de, type: 2} +--- !u!4 &918813314 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 918813312} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 15741320} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1064951731 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1064951732} + - component: {fileID: 1064951734} + - component: {fileID: 1064951733} + m_Layer: 0 + m_Name: Camera (Alpha) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1064951732 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1064951731} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1454165792} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1064951733 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1064951731} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_RenderShadows: 1 + m_RequiresDepthTextureOption: 0 + m_RequiresOpaqueTextureOption: 0 + m_CameraType: 0 + m_Cameras: [] + m_RendererIndex: -1 + m_VolumeLayerMask: + serializedVersion: 2 + m_Bits: 0 + m_VolumeTrigger: {fileID: 0} + m_RenderPostProcessing: 0 + m_Antialiasing: 0 + m_AntialiasingQuality: 2 + m_StopNaN: 0 + m_Dithering: 0 + m_ClearDepth: 1 + m_AllowXRRendering: 1 + m_RequiresDepthTexture: 0 + m_RequiresColorTexture: 0 + m_Version: 2 +--- !u!20 &1064951734 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1064951731} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.1 + far clip plane: 100 + field of view: 60 + orthographic: 1 + orthographic size: 0.5 + m_Depth: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 1 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 8400000, guid: ff94f91c62216aa4b8b027f13fe15303, type: 2} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 0 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!1 &1159548131 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1159548132} + - component: {fileID: 1159548134} + - component: {fileID: 1159548133} + m_Layer: 5 + m_Name: Arrow + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1159548132 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1159548131} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1317273801} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: -15, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1159548133 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1159548131} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10915, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1159548134 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1159548131} + m_CullTransparentMesh: 1 +--- !u!1 &1178800313 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1178800314} + - component: {fileID: 1178800315} + m_Layer: 0 + m_Name: Spout Sender (Alpha) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1178800314 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1178800313} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1454165792} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1178800315 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1178800313} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} + m_Name: + m_EditorClassIdentifier: + _spoutName: KlakSpout (Alpha) + _keepAlpha: 1 + _captureMethod: 2 + _sourceCamera: {fileID: 0} + _sourceTexture: {fileID: 8400000, guid: ff94f91c62216aa4b8b027f13fe15303, type: 2} + _resources: {fileID: 11400000, guid: f449ebbe2051c2e4d993eaa773a410de, type: 2} +--- !u!1 &1252393094 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1252393098} + - component: {fileID: 1252393097} + - component: {fileID: 1252393095} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1252393095 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1252393094} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_RenderShadows: 1 + m_RequiresDepthTextureOption: 0 + m_RequiresOpaqueTextureOption: 0 + m_CameraType: 0 + m_Cameras: [] + m_RendererIndex: -1 + m_VolumeLayerMask: + serializedVersion: 2 + m_Bits: 0 + m_VolumeTrigger: {fileID: 0} + m_RenderPostProcessing: 0 + m_Antialiasing: 0 + m_AntialiasingQuality: 2 + m_StopNaN: 0 + m_Dithering: 0 + m_ClearDepth: 1 + m_AllowXRRendering: 1 + m_RequiresDepthTexture: 0 + m_RequiresColorTexture: 0 + m_Version: 2 +--- !u!20 &1252393097 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1252393094} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.1 + far clip plane: 100 + field of view: 60 + orthographic: 1 + orthographic size: 1 + m_Depth: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 1 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 0 + m_AllowMSAA: 0 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 0 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1252393098 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1252393094} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 6 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1258656579 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1258656581} + - component: {fileID: 1258656580} + m_Layer: 0 + m_Name: Timecode Controller + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1258656580 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1258656579} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a02ae1586c13b694b9fa87df91f5434d, type: 3} + m_Name: + m_EditorClassIdentifier: + _label: {fileID: 2107792921} + _camera: {fileID: 1548783096} +--- !u!4 &1258656581 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1258656579} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 15741320} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1280953318 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1280953319} + - component: {fileID: 1280953320} + m_Layer: 5 + m_Name: Item + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1280953319 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1280953318} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1943616804} + - {fileID: 703445642} + - {fileID: 803165095} + m_Father: {fileID: 537574245} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1280953320 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1280953318} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1943616805} + toggleTransition: 1 + graphic: {fileID: 703445643} + m_Group: {fileID: 0} + onValueChanged: + m_PersistentCalls: + m_Calls: [] + m_IsOn: 1 +--- !u!1 &1317273800 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1317273801} + - component: {fileID: 1317273804} + - component: {fileID: 1317273803} + - component: {fileID: 1317273802} + m_Layer: 5 + m_Name: Dropdown + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1317273801 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1317273800} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 313292986} + - {fileID: 1159548132} + - {fileID: 1625079608} + m_Father: {fileID: 1348462430} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 20, y: -20} + m_SizeDelta: {x: 300, y: 30} + m_Pivot: {x: 0, y: 1} +--- !u!114 &1317273802 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1317273800} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0d0b652f32a2cc243917e4028fa0f046, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1317273803} + m_Template: {fileID: 1625079608} + m_CaptionText: {fileID: 313292987} + m_CaptionImage: {fileID: 0} + m_ItemText: {fileID: 803165096} + m_ItemImage: {fileID: 0} + m_Value: 0 + m_Options: + m_Options: + - m_Text: Option A + m_Image: {fileID: 0} + - m_Text: Option B + m_Image: {fileID: 0} + - m_Text: Option C + m_Image: {fileID: 0} + m_OnValueChanged: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 296519807} + m_TargetAssemblyTypeName: SourceSelector, Assembly-CSharp + m_MethodName: OnChangeValue + m_Mode: 0 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + m_AlphaFadeSpeed: 0.15 +--- !u!114 &1317273803 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1317273800} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1317273804 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1317273800} + m_CullTransparentMesh: 1 +--- !u!1 &1348462426 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1348462430} + - component: {fileID: 1348462429} + - component: {fileID: 1348462428} + - component: {fileID: 1348462427} + m_Layer: 5 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1348462427 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1348462426} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!114 &1348462428 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1348462426} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 0 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 800, y: 600} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!223 &1348462429 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1348462426} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_AdditionalShaderChannelsFlag: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!224 &1348462430 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1348462426} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_Children: + - {fileID: 1317273801} + - {fileID: 1932864584} + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!1 &1353969751 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1353969752} + - component: {fileID: 1353969753} + m_Layer: 0 + m_Name: Spout Sender (Gradient) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1353969752 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1353969751} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 830819964} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1353969753 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1353969751} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} + m_Name: + m_EditorClassIdentifier: + _spoutName: KlakSpout (Gradient) + _keepAlpha: 0 + _captureMethod: 1 + _sourceCamera: {fileID: 2085900138} + _sourceTexture: {fileID: 0} + _resources: {fileID: 11400000, guid: f449ebbe2051c2e4d993eaa773a410de, type: 2} +--- !u!1 &1377898238 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1377898239} + - component: {fileID: 1377898242} + - component: {fileID: 1377898241} + - component: {fileID: 1377898240} + m_Layer: 5 + m_Name: Scrollbar + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1377898239 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1377898238} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1975398971} + m_Father: {fileID: 1625079608} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 20, y: 0} + m_Pivot: {x: 1, y: 1} +--- !u!114 &1377898240 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1377898238} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 761420635} + m_HandleRect: {fileID: 761420634} + m_Direction: 2 + m_Value: 0 + m_Size: 0.2 + m_NumberOfSteps: 0 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &1377898241 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1377898238} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1377898242 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1377898238} + m_CullTransparentMesh: 1 +--- !u!1 &1454165791 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1454165792} + m_Layer: 0 + m_Name: Alpha + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1454165792 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1454165791} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 2000, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1064951732} + - {fileID: 1987873392} + - {fileID: 1178800314} + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1548783094 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1548783097} + - component: {fileID: 1548783096} + - component: {fileID: 1548783095} + m_Layer: 0 + m_Name: Camera (Timecode) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1548783095 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1548783094} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_RenderShadows: 1 + m_RequiresDepthTextureOption: 2 + m_RequiresOpaqueTextureOption: 2 + m_CameraType: 0 + m_Cameras: [] + m_RendererIndex: -1 + m_VolumeLayerMask: + serializedVersion: 2 + m_Bits: 0 + m_VolumeTrigger: {fileID: 0} + m_RenderPostProcessing: 0 + m_Antialiasing: 0 + m_AntialiasingQuality: 2 + m_StopNaN: 0 + m_Dithering: 0 + m_ClearDepth: 1 + m_AllowXRRendering: 1 + m_RequiresDepthTexture: 0 + m_RequiresColorTexture: 0 + m_Version: 2 +--- !u!20 &1548783096 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1548783094} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: 0.17740594, g: 0.19696712, b: 0.21698111, a: 1} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.1 + far clip plane: 100 + field of view: 60 + orthographic: 1 + orthographic size: 0.5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 32 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 8400000, guid: 9ea82f700d9e65841ae79a62180986d5, type: 2} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 0 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1548783097 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1548783094} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 15741320} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1586758706 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1586758708} + - component: {fileID: 1586758707} + m_Layer: 0 + m_Name: Spout Sender (GameView) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1586758707 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1586758706} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3} + m_Name: + m_EditorClassIdentifier: + _spoutName: KlakSpout (GameView) + _keepAlpha: 0 + _captureMethod: 0 + _sourceCamera: {fileID: 0} + _sourceTexture: {fileID: 0} + _resources: {fileID: 11400000, guid: f449ebbe2051c2e4d993eaa773a410de, type: 2} +--- !u!4 &1586758708 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1586758706} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 7 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1611900546 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1611900547} + m_Layer: 5 + m_Name: Null + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1611900547 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1611900546} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 428298231} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &1625079607 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1625079608} + - component: {fileID: 1625079611} + - component: {fileID: 1625079610} + - component: {fileID: 1625079609} + m_Layer: 5 + m_Name: Template + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!224 &1625079608 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1625079607} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 168698426} + - {fileID: 1377898239} + m_Father: {fileID: 1317273801} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: 0, y: 2} + m_SizeDelta: {x: 0, y: 150} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &1625079609 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1625079607} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Content: {fileID: 537574245} + m_Horizontal: 0 + m_Vertical: 1 + m_MovementType: 2 + m_Elasticity: 0.1 + m_Inertia: 1 + m_DecelerationRate: 0.135 + m_ScrollSensitivity: 1 + m_Viewport: {fileID: 168698426} + m_HorizontalScrollbar: {fileID: 0} + m_VerticalScrollbar: {fileID: 1377898240} + m_HorizontalScrollbarVisibility: 0 + m_VerticalScrollbarVisibility: 2 + m_HorizontalScrollbarSpacing: 0 + m_VerticalScrollbarSpacing: -3 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &1625079610 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1625079607} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1625079611 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1625079607} + m_CullTransparentMesh: 1 +--- !u!1 &1809469722 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1809469725} + - component: {fileID: 1809469724} + - component: {fileID: 1809469723} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1809469723 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1809469722} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalAxis: Horizontal + m_VerticalAxis: Vertical + m_SubmitButton: Submit + m_CancelButton: Cancel + m_InputActionsPerSecond: 10 + m_RepeatDelay: 0.5 + m_ForceModuleActive: 0 +--- !u!114 &1809469724 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1809469722} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 10 +--- !u!4 &1809469725 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1809469722} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1932864583 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1932864584} + - component: {fileID: 1932864585} + m_Layer: 5 + m_Name: Grid + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1932864584 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1932864583} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 428298231} + - {fileID: 2129989406} + m_Father: {fileID: 1348462430} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1932864585 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1932864583} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 0 + m_Right: 0 + m_Top: 0 + m_Bottom: 0 + m_ChildAlignment: 0 + m_Spacing: 0 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &1943616803 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1943616804} + - component: {fileID: 1943616806} + - component: {fileID: 1943616805} + m_Layer: 5 + m_Name: Item Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1943616804 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1943616803} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1280953319} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1943616805 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1943616803} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1943616806 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1943616803} + m_CullTransparentMesh: 1 +--- !u!1 &1975398970 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1975398971} + m_Layer: 5 + m_Name: Sliding Area + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1975398971 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1975398970} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 761420634} + m_Father: {fileID: 1377898239} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -20, y: -20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &1987873391 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1987873392} + - component: {fileID: 1987873394} + - component: {fileID: 1987873393} + m_Layer: 0 + m_Name: Alpha Quad + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1987873392 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1987873391} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 1} + m_LocalScale: {x: 1.7777778, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1454165792} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &1987873393 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1987873391} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 2e159dec22cd1174d99e5c2f70f07e74, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &1987873394 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1987873391} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &2070317739 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2070317740} + m_Layer: 0 + m_Name: Receiver + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2070317740 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2070317739} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 296519805} + - {fileID: 529700672} + m_Father: {fileID: 0} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &2085900135 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2085900136} + - component: {fileID: 2085900138} + - component: {fileID: 2085900137} + m_Layer: 0 + m_Name: Camera (Gradient) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2085900136 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2085900135} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 830819964} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &2085900137 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2085900135} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_RenderShadows: 1 + m_RequiresDepthTextureOption: 0 + m_RequiresOpaqueTextureOption: 0 + m_CameraType: 0 + m_Cameras: [] + m_RendererIndex: -1 + m_VolumeLayerMask: + serializedVersion: 2 + m_Bits: 0 + m_VolumeTrigger: {fileID: 0} + m_RenderPostProcessing: 0 + m_Antialiasing: 0 + m_AntialiasingQuality: 2 + m_StopNaN: 0 + m_Dithering: 0 + m_ClearDepth: 1 + m_AllowXRRendering: 1 + m_RequiresDepthTexture: 0 + m_RequiresColorTexture: 0 + m_Version: 2 +--- !u!20 &2085900138 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2085900135} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: 0.04236381, g: 0.06991414, b: 0.11320752, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.1 + far clip plane: 100 + field of view: 60 + orthographic: 1 + orthographic size: 0.5 + m_Depth: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 1 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 8400000, guid: 73e8dcdfe3f22594693dc569656418c6, type: 2} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 0 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!1 &2107792920 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2107792923} + - component: {fileID: 2107792922} + - component: {fileID: 2107792921} + m_Layer: 5 + m_Name: Timecode + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &2107792921 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2107792920} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 100 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 0 + m_MaxSize: 260 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: 00:00:00 +--- !u!222 &2107792922 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2107792920} + m_CullTransparentMesh: 1 +--- !u!224 &2107792923 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2107792920} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 2136759565} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &2129989405 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2129989406} + - component: {fileID: 2129989407} + m_Layer: 5 + m_Name: Row 2 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2129989406 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2129989405} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 676107414} + - {fileID: 275326809} + m_Father: {fileID: 1932864584} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2129989407 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2129989405} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 0 + m_Right: 0 + m_Top: 0 + m_Bottom: 0 + m_ChildAlignment: 0 + m_Spacing: 0 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &2136759564 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2136759565} + - component: {fileID: 2136759568} + - component: {fileID: 2136759567} + - component: {fileID: 2136759566} + m_Layer: 5 + m_Name: Canvas (Timecode) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2136759565 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2136759564} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_Children: + - {fileID: 2107792923} + m_Father: {fileID: 15741320} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!114 &2136759566 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2136759564} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!114 &2136759567 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2136759564} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 0 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 800, y: 600} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!223 &2136759568 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2136759564} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 1 + m_Camera: {fileID: 1548783096} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_AdditionalShaderChannelsFlag: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 diff --git a/Assets/RenderTextures.meta b/Assets/Test.unity.meta similarity index 67% rename from Assets/RenderTextures.meta rename to Assets/Test.unity.meta index 16879f9..ae1aff9 100644 --- a/Assets/RenderTextures.meta +++ b/Assets/Test.unity.meta @@ -1,6 +1,5 @@ fileFormatVersion: 2 -guid: abde29eb1a541e745b2ce39563409e81 -folderAsset: yes +guid: a83b31f020d56ca4d93f5f70138ef6b3 DefaultImporter: externalObjects: {} userData: diff --git a/Assets/TestCards.meta b/Assets/TestCards.meta deleted file mode 100644 index ec739b1..0000000 --- a/Assets/TestCards.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a2511bfcba02cbe42a514922aad98572 -folderAsset: yes -timeCreated: 1490421382 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/TestCards/Editor.meta b/Assets/TestCards/Editor.meta deleted file mode 100644 index 93782a4..0000000 --- a/Assets/TestCards/Editor.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f8f48d1eb75e9e74f95d6524d42a28a5 -folderAsset: yes -timeCreated: 1490423409 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/TestCards/Editor/TestOverlayEditor.cs b/Assets/TestCards/Editor/TestOverlayEditor.cs deleted file mode 100644 index bbb87bc..0000000 --- a/Assets/TestCards/Editor/TestOverlayEditor.cs +++ /dev/null @@ -1,35 +0,0 @@ -using UnityEditor; -using UnityEngine; - -namespace TestCards -{ - [CustomEditor(typeof(TestOverlay))] - public class TestOverlayEditor : Editor - { - SerializedProperty _mode; - SerializedProperty _color; - SerializedProperty _scale; - - void OnEnable() - { - _mode = serializedObject.FindProperty("_mode"); - _color = serializedObject.FindProperty("_color"); - _scale = serializedObject.FindProperty("_scale"); - } - - public override void OnInspectorGUI() - { - serializedObject.Update(); - - EditorGUILayout.PropertyField(_mode); - - if (_mode.intValue == (int)TestOverlay.Mode.Fill) - EditorGUILayout.PropertyField(_color); - - if (_mode.intValue == (int)TestOverlay.Mode.Checker) - EditorGUILayout.PropertyField(_scale); - - serializedObject.ApplyModifiedProperties(); - } - } -} diff --git a/Assets/TestCards/Editor/jp.keijiro.testcards.Editor.asmdef b/Assets/TestCards/Editor/jp.keijiro.testcards.Editor.asmdef deleted file mode 100644 index 1b1e686..0000000 --- a/Assets/TestCards/Editor/jp.keijiro.testcards.Editor.asmdef +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "jp.keijiro.testcards.Editor", - "references": [ - "jp.keijiro.testcards.Runtime" - ], - "optionalUnityReferences": [], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [], - "allowUnsafeCode": false -} \ No newline at end of file diff --git a/Assets/TestCards/Editor/jp.keijiro.testcards.Editor.asmdef.meta b/Assets/TestCards/Editor/jp.keijiro.testcards.Editor.asmdef.meta deleted file mode 100644 index fcf87c9..0000000 --- a/Assets/TestCards/Editor/jp.keijiro.testcards.Editor.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: cc9e313774f1eed4e80d31ff297f7555 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/TestCards/Resources.meta b/Assets/TestCards/Resources.meta deleted file mode 100644 index 530b03b..0000000 --- a/Assets/TestCards/Resources.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 98ccbbd3e8d8a62498510d48ada470fe -folderAsset: yes -timeCreated: 1490423502 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/TestCards/Resources/TestOverlay.shader b/Assets/TestCards/Resources/TestOverlay.shader deleted file mode 100644 index cf951ce..0000000 --- a/Assets/TestCards/Resources/TestOverlay.shader +++ /dev/null @@ -1,198 +0,0 @@ -Shader "Hidden/TestCards/Overlay" -{ - Properties - { - _MainTex("", 2D) = "black"{} - _Color("", Color) = (0.5, 0.5, 0.5) - } - - CGINCLUDE - - #include "UnityCG.cginc" - - sampler2D _MainTex; - float4 _MainTex_TexelSize; - - half3 _Color; - float _Scale; - - // Hue to RGB convertion - half3 HueToRGB(half h) - { - h = saturate(h); - half r = abs(h * 6 - 3) - 1; - half g = 2 - abs(h * 6 - 2); - half b = 2 - abs(h * 6 - 4); - half3 rgb = saturate(half3(r, g, b)); - return rgb; - } - - half4 frag_fill(v2f_img i) : SV_Target - { - return half4(_Color, 1); - } - - half4 frag_spectrum(v2f_img i) : SV_Target - { - half3 rgb = lerp(HueToRGB(i.uv.x), i.uv.x, i.uv.y > 0.5); - #if !defined(UNITY_COLORSPACE_GAMMA) - rgb = GammaToLinearSpace(rgb); - #endif - return half4(rgb, 1); - } - - half4 frag_checker(v2f_img i) : SV_Target - { - float2 c = step(0.4999, frac(i.uv.xy * _MainTex_TexelSize.zw * _Scale)); - return abs(c.x - c.y); - } - - half4 frag_pattern(v2f_img i) : SV_Target - { - float scale = 27 * _MainTex_TexelSize.y; // Grid scale - float2 p0 = (i.uv - 0.5) * _MainTex_TexelSize.zw; // Position (pixel) - float2 p1 = p0 * scale; // Position (half grid) - float2 p2 = p1 / 2 - 0.5; // Position (grid) - - // Size of inner area - half aspect = _MainTex_TexelSize.y * _MainTex_TexelSize.z; - half2 area = half2(floor(6.5 * aspect) * 2 + 1, 13); - - // Crosshair and grid lines - half2 ch = abs(p0); - half2 grid = (1 - abs(frac(p2) - 0.5) * 2) / scale; - half c1 = min(min(ch.x, ch.y), min(grid.x, grid.y)) < 1 ? 1 : 0.5; - - // Outer area checker - half2 checker = frac(floor(p2) / 2) * 2; - if (any(abs(p1) > area)) c1 = abs(checker.x - checker.y); - - half corner = sqrt(8) - length(abs(p1) - area + 4); // Corner circles - half circle = 12 - length(p1); // Big center circle - half mask = saturate(circle / scale); // Center circls mask - - // Grayscale bars - half bar1 = saturate(p1.y < 5 ? floor(p1.x / 4 + 3) / 5 : p1.x / 16 + 0.5); - if (abs(5 - p1.y) < 4 * mask) c1 = bar1; - - // Basic color bars - half3 bar2 = HueToRGB((p1.y > -5 ? floor(p1.x / 4) / 6 : p1.x / 16) + 0.5); - float3 rgb = abs(-5 - p1.y) < 4 * mask ? bar2 : saturate(c1); - - // Circle lines - rgb = lerp(rgb, 1, saturate(1.5 - abs(max(circle, corner)) / scale)); - - #if !defined(UNITY_COLORSPACE_GAMMA) - rgb = GammaToLinearSpace(rgb); - #endif - - return half4(rgb, 1); - } - - half4 frag_shutter(v2f_img i) : SV_Target - { - const float4 tsize = _MainTex_TexelSize; - const float radius = 0.45; - - const float time = _Time.y; - const float deltaTime = unity_DeltaTime.x; - - float2 uv = (i.uv - 0.5) * float2(tsize.y * tsize.z, 1); - - float phi = atan2(-uv.x, -uv.y) / (UNITY_PI * 2) + 0.5; - half arc = saturate((phi - frac(time)) / fwidth(phi)); - - float dist = length(uv); - arc *= saturate((radius + tsize.y - dist) * tsize.w); - - half circle = saturate(1 - abs(dist - radius) * tsize.w); - - half flash = frac(time) <= frac(time - deltaTime); - - half2 c2 = step(0.4999, frac(uv * 3.5)); - half checker = lerp(0.1, 0.2, abs(c2.x - c2.y)); - - half c = max(max(max(arc, circle), flash), checker); - - #if defined(UNITY_COLORSPACE_GAMMA) - return half4(c, c, c, 1); - #else - return half4((half3)GammaToLinearSpace(c), 1); - #endif - } - - half4 frag_frequency(v2f_img i) : SV_Target - { - float2 uv = i.uv.xy - 0.25; - - half phi = atan2(uv.x * _MainTex_TexelSize.y * _MainTex_TexelSize.z, uv.y); - half lim = saturate(fwidth(phi) * 20); // frequency limitter - phi = lerp(sin(phi * 100), 0, lim); - - float2 freq = UNITY_PI * 0.5 / (1 + uv * 4); - half2 comb = cos(freq * uv * _MainTex_TexelSize.zw); - - half2 sig = uv > 0; - half c = lerp(phi, lerp(comb.x, comb.y, sig.y), abs(sig.x - sig.y)); - c = c / 2 + 0.5; - - #if defined(UNITY_COLORSPACE_GAMMA) - return half4(c, c, c, 1); - #else - return half4((half3)GammaToLinearSpace(c), 1); - #endif - } - - ENDCG - - SubShader - { - Cull Off ZWrite Off ZTest Always - Pass - { - CGPROGRAM - #pragma vertex vert_img - #pragma fragment frag_fill - ENDCG - } - Pass - { - CGPROGRAM - #pragma multi_compile __ UNITY_COLORSPACE_GAMMA - #pragma vertex vert_img - #pragma fragment frag_spectrum - ENDCG - } - Pass - { - CGPROGRAM - #pragma vertex vert_img - #pragma fragment frag_checker - ENDCG - } - Pass - { - CGPROGRAM - #pragma multi_compile __ UNITY_COLORSPACE_GAMMA - #pragma vertex vert_img - #pragma fragment frag_pattern - ENDCG - } - Pass - { - CGPROGRAM - #pragma multi_compile __ UNITY_COLORSPACE_GAMMA - #pragma vertex vert_img - #pragma fragment frag_shutter - ENDCG - } - Pass - { - CGPROGRAM - #pragma multi_compile __ UNITY_COLORSPACE_GAMMA - #pragma vertex vert_img - #pragma fragment frag_frequency - ENDCG - } - } -} diff --git a/Assets/TestCards/Resources/TestOverlay.shader.meta b/Assets/TestCards/Resources/TestOverlay.shader.meta deleted file mode 100644 index 4ff206b..0000000 --- a/Assets/TestCards/Resources/TestOverlay.shader.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: bc6a0edaa182a35449d12a1445ba38db -timeCreated: 1490421835 -licenseType: Pro -ShaderImporter: - defaultTextures: [] - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/TestCards/Runtime/TestOverlay.cs b/Assets/TestCards/Runtime/TestOverlay.cs deleted file mode 100644 index 4448bce..0000000 --- a/Assets/TestCards/Runtime/TestOverlay.cs +++ /dev/null @@ -1,70 +0,0 @@ -using UnityEngine; - -namespace TestCards -{ - [ExecuteInEditMode] - [RequireComponent(typeof(Camera))] - public class TestOverlay : MonoBehaviour - { - #region Editable properties - - public enum Mode { Fill, Spectrum, Checker, Pattern, Shutter, Frequency } - - [SerializeField] Mode _mode = Mode.Pattern; - - public Mode mode { - get { return _mode; } - set { _mode = value; } - } - - [SerializeField] Color _color = Color.gray; - - public Color color { - get { return _color; } - set { _color = value; } - } - - [SerializeField, Range(1, 8)] int _scale = 4; - - public int scale { - get { return _scale; } - set { _scale = value; } - } - - #endregion - - #region Private members - - [SerializeField, HideInInspector] Shader _shader = null; - Material _material; - - #endregion - - #region MonoBehaviour functions - - void OnDestroy() - { - if (_material != null) - if (Application.isPlaying) - Destroy(_material); - else - DestroyImmediate(_material); - } - - void OnRenderImage(RenderTexture source, RenderTexture destination) - { - if (_material == null) - { - _material = new Material(_shader); - _material.hideFlags = HideFlags.DontSave; - } - - _material.color = _color; - _material.SetFloat("_Scale", 1.0f / Mathf.Pow(2, _scale)); - - Graphics.Blit(source, destination, _material, (int)_mode); - } - - #endregion - } -} diff --git a/Assets/TestCards/Runtime/jp.keijiro.testcards.Runtime.asmdef b/Assets/TestCards/Runtime/jp.keijiro.testcards.Runtime.asmdef deleted file mode 100644 index 9a30ad0..0000000 --- a/Assets/TestCards/Runtime/jp.keijiro.testcards.Runtime.asmdef +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "jp.keijiro.testcards.Runtime", - "references": [], - "optionalUnityReferences": [], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false -} \ No newline at end of file diff --git a/Assets/TestCards/Runtime/jp.keijiro.testcards.Runtime.asmdef.meta b/Assets/TestCards/Runtime/jp.keijiro.testcards.Runtime.asmdef.meta deleted file mode 100644 index 61f420d..0000000 --- a/Assets/TestCards/Runtime/jp.keijiro.testcards.Runtime.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 0aa1b071e05272b47a40d7ea7b936278 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/URP.asset b/Assets/URP.asset new file mode 100644 index 0000000..e75fa1f --- /dev/null +++ b/Assets/URP.asset @@ -0,0 +1,57 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: bf2edee5c58d82540a51f03df9d42094, type: 3} + m_Name: URP + m_EditorClassIdentifier: + k_AssetVersion: 5 + k_AssetPreviousVersion: 5 + m_RendererType: 1 + m_RendererData: {fileID: 0} + m_RendererDataList: + - {fileID: 11400000, guid: e6b277fe4e9566442a659b0278c18758, type: 2} + m_DefaultRendererIndex: 0 + m_RequireDepthTexture: 0 + m_RequireOpaqueTexture: 0 + m_OpaqueDownsampling: 1 + m_SupportsTerrainHoles: 1 + m_SupportsHDR: 1 + m_MSAA: 1 + m_RenderScale: 1 + m_MainLightRenderingMode: 1 + m_MainLightShadowsSupported: 1 + m_MainLightShadowmapResolution: 2048 + m_AdditionalLightsRenderingMode: 1 + m_AdditionalLightsPerObjectLimit: 4 + m_AdditionalLightShadowsSupported: 0 + m_AdditionalLightsShadowmapResolution: 512 + m_ShadowDistance: 50 + m_ShadowCascadeCount: 1 + m_Cascade2Split: 0.25 + m_Cascade3Split: {x: 0.1, y: 0.3} + m_Cascade4Split: {x: 0.067, y: 0.2, z: 0.467} + m_ShadowDepthBias: 1 + m_ShadowNormalBias: 1 + m_SoftShadowsSupported: 0 + m_UseSRPBatcher: 1 + m_SupportsDynamicBatching: 0 + m_MixedLightingSupported: 1 + m_DebugLevel: 0 + m_UseAdaptivePerformance: 1 + m_ColorGradingMode: 0 + m_ColorGradingLutSize: 32 + m_ShadowType: 1 + m_LocalShadowsSupported: 0 + m_LocalShadowsAtlasResolution: 256 + m_MaxPixelLights: 0 + m_ShadowAtlasResolution: 256 + m_ShaderVariantLogLevel: 0 + m_ShadowCascades: 0 diff --git a/Assets/URP.asset.meta b/Assets/URP.asset.meta new file mode 100644 index 0000000..4a477ce --- /dev/null +++ b/Assets/URP.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a817dc55f0eb8dc468415b739ceae0d2 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/URP_Renderer.asset b/Assets/URP_Renderer.asset new file mode 100644 index 0000000..a126108 --- /dev/null +++ b/Assets/URP_Renderer.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: de640fe3d0db1804a85f9fc8f5cadab6, type: 3} + m_Name: URP_Renderer + m_EditorClassIdentifier: + m_RendererFeatures: [] + m_RendererFeatureMap: + postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2} + shaders: + blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3} + copyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3} + screenSpaceShadowPS: {fileID: 4800000, guid: 0f854b35a0cf61a429bd5dcfea30eddd, type: 3} + samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3} + tileDepthInfoPS: {fileID: 0} + tileDeferredPS: {fileID: 0} + stencilDeferredPS: {fileID: 4800000, guid: e9155b26e1bc55942a41e518703fe304, type: 3} + fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3} + materialErrorPS: {fileID: 4800000, guid: 5fd9a8feb75a4b5894c241777f519d4e, type: 3} + m_OpaqueLayerMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_TransparentLayerMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_DefaultStencilState: + overrideStencilState: 0 + stencilReference: 0 + stencilCompareFunction: 8 + passOperation: 2 + failOperation: 0 + zFailOperation: 0 + m_ShadowTransparentReceive: 1 + m_RenderingMode: 0 + m_AccurateGbufferNormals: 0 diff --git a/Assets/URP_Renderer.asset.meta b/Assets/URP_Renderer.asset.meta new file mode 100644 index 0000000..fd41d6e --- /dev/null +++ b/Assets/URP_Renderer.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e6b277fe4e9566442a659b0278c18758 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/LICENSE b/LICENSE index ba2ee04..68a49da 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,24 @@ -MIT License +This is free and unencumbered software released into the public domain. -Copyright (c) 2017-2020 Keijiro Takahashi +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +For more information, please refer to diff --git a/Packages/jp.keijiro.klak.spout/Editor/MaterialPropertySelector.cs b/Packages/jp.keijiro.klak.spout/Editor/MaterialPropertySelector.cs index 4f7b3c0..9fc7415 100644 --- a/Packages/jp.keijiro.klak.spout/Editor/MaterialPropertySelector.cs +++ b/Packages/jp.keijiro.klak.spout/Editor/MaterialPropertySelector.cs @@ -1,90 +1,85 @@ -// KlakSpout - Spout video frame sharing plugin for Unity -// https://github.com/keijiro/KlakSpout - using UnityEngine; using UnityEditor; -using System; -using System.Collections.Generic; +using System.Linq; + +namespace Klak.Spout.Editor { -namespace Klak.Spout +static class MaterialPropertySelector { - static class MaterialPropertySelector + #region Public method + + // Material property dropdown list + public static void DropdownList + (SerializedProperty rendererProperty, + SerializedProperty materialProperty) { - #region Public method + var shader = GetShaderFromRenderer(rendererProperty); - // Material property drop-down list - public static void DropdownList( - SerializedProperty rendererProperty, - SerializedProperty materialProperty - ) + // Abandon the current value if there is no shader assignment. + if (shader == null) { - // Try retrieving the target shader. - var shader = RetrieveTargetShader(rendererProperty); - - // Abandon the current value if it failed to get a shader. - if (shader == null) - { - materialProperty.stringValue = ""; - return; - } - - // Cache property names found in the target shader. - CachePropertyNames(shader); - - // Abandon the current value if there is no property candidate. - if (_propertyNames.Length == 0) - { - materialProperty.stringValue = ""; - return; - } - - // Show the dropdown list. - var index = Array.IndexOf(_propertyNames, materialProperty.stringValue); - var newIndex = EditorGUILayout.Popup("Property", index, _propertyNames); - - // Update the serialized property if the selection was changed. - if (index != newIndex) materialProperty.stringValue = _propertyNames[newIndex]; + materialProperty.stringValue = ""; + return; } - #endregion + var names = CachePropertyNames(shader); - #region Private members + // Abandon the current value if there is no option. + if (names.Length == 0) + { + materialProperty.stringValue = ""; + return; + } - static string[] _propertyNames; // Property name list - static Shader _cachedShader; // Shader used to cache the name list + // Dropdown GUI + var index = System.Array.IndexOf(names, materialProperty.stringValue); + var newIndex = EditorGUILayout.Popup("Property", index, names); + if (index != newIndex) materialProperty.stringValue = names[newIndex]; + } - // Retrieve a shader from a given renderer. - static Shader RetrieveTargetShader(SerializedProperty rendererProperty) - { - var renderer = rendererProperty.objectReferenceValue as Renderer; - if (renderer == null) return null; + #endregion - var material = renderer.sharedMaterial; - if (material == null) return null; + #region Utility function - return material.shader; - } + // Shader retrieval function + static Shader GetShaderFromRenderer(SerializedProperty property) + { + var renderer = property.objectReferenceValue as Renderer; + if (renderer == null) return null; - // Cache property names provided within a specified shader. - static void CachePropertyNames(Shader shader) - { - // Exit early when the shader is same to the cached one. - if (shader == _cachedShader) return; + var material = renderer.sharedMaterial; + if (material == null) return null; - var temp = new List(); + return material.shader; + } - var count = ShaderUtil.GetPropertyCount(shader); - for (var i = 0; i < count; i++) - { - var propType = ShaderUtil.GetPropertyType(shader, i); - if (propType == ShaderUtil.ShaderPropertyType.TexEnv) - temp.Add(ShaderUtil.GetPropertyName(shader, i)); - } + #endregion - _propertyNames = temp.ToArray(); - _cachedShader = shader; - } + #region Property name cache + + static Shader _cachedShader; + static string[] _cachedPropertyNames; + + static bool IsPropertyTexture(Shader shader, int index) + => ShaderUtil.GetPropertyType(shader, index) == + ShaderUtil.ShaderPropertyType.TexEnv; + + static string[] CachePropertyNames(Shader shader) + { + if (shader == _cachedShader) return _cachedPropertyNames; + + var names = + Enumerable.Range(0, ShaderUtil.GetPropertyCount(shader)) + .Where(i => IsPropertyTexture(shader, i)) + .Select(i => ShaderUtil.GetPropertyName(shader, i)); + + _cachedShader = shader; + _cachedPropertyNames = names.ToArray(); - #endregion + return _cachedPropertyNames; } + + #endregion } + +} // namespace Klak.Spout.Editor diff --git a/Packages/jp.keijiro.klak.spout/Editor/SpoutReceiverEditor.cs b/Packages/jp.keijiro.klak.spout/Editor/SpoutReceiverEditor.cs index 2d2775e..3a9aa23 100644 --- a/Packages/jp.keijiro.klak.spout/Editor/SpoutReceiverEditor.cs +++ b/Packages/jp.keijiro.klak.spout/Editor/SpoutReceiverEditor.cs @@ -1,118 +1,115 @@ -// KlakSpout - Spout video frame sharing plugin for Unity -// https://github.com/keijiro/KlakSpout - using UnityEngine; using UnityEditor; -namespace Klak.Spout +namespace Klak.Spout.Editor { + +[CanEditMultipleObjects] +[CustomEditor(typeof(SpoutReceiver))] +sealed class SpoutReceiverEditor : UnityEditor.Editor { - [CanEditMultipleObjects] - [CustomEditor(typeof(SpoutReceiver))] - sealed class SpoutReceiverEditor : Editor + SerializedProperty _sourceName; + SerializedProperty _targetTexture; + SerializedProperty _targetRenderer; + SerializedProperty _targetMaterialProperty; + + static class Labels { - SerializedProperty _sourceName; - SerializedProperty _targetTexture; - SerializedProperty _targetRenderer; - SerializedProperty _targetMaterialProperty; + public static Label Property = "Property"; + public static Label Select = "Select"; + } - static double _prevRepaintTime; + // Create and show the source name dropdown. + void ShowSourceNameDropdown(Rect rect) + { + var menu = new GenericMenu(); + var sources = SpoutManager.GetSourceNames(); - static class Labels + if (sources.Length > 0) { - public static readonly GUIContent Property = new GUIContent("Property"); - public static readonly GUIContent Select = new GUIContent("Select"); + foreach (var name in sources) + menu.AddItem(new GUIContent(name), false, OnSelectSource, name); } - - // Request receiver reconnection. - void RequestReconnect() + else { - foreach (SpoutReceiver receiver in targets) receiver.RequestReconnect(); + menu.AddItem(new GUIContent("No source available"), false, null); } - // Check and request repaint with 0.1s interval. - void CheckRepaint() - { - var time = EditorApplication.timeSinceStartup; - if (time - _prevRepaintTime < 0.1) return; - UnityEditorInternal.InternalEditorUtility.RepaintAllViews(); - _prevRepaintTime = time; - } + menu.DropDown(rect); + } - // Create and show the source name dropdown. - void ShowSourceNameDropdown(Rect rect) - { - var menu = new GenericMenu(); - var count = PluginEntry.ScanSharedObjects(); - for (var i = 0; i < count; i++) - { - var name = PluginEntry.GetSharedObjectNameString(i); - menu.AddItem(new GUIContent(name), false, OnSelectSource, name); - } - menu.DropDown(rect); - } + // Source name selection callback + void OnSelectSource(object nameObject) + { + var name = (string)nameObject; + serializedObject.Update(); + _sourceName.stringValue = name; + serializedObject.ApplyModifiedProperties(); + RequestRestart(); + } - // Source name selection callback - void OnSelectSource(object name) + // Receiver restart request + void RequestRestart() + { + // Dirty trick: We only can restart receivers by modifying the + // sourceName property, so we modify it by an invalid name, then + // revert it. + foreach (SpoutReceiver recv in targets) { - serializedObject.Update(); - _sourceName.stringValue = (string)name; - serializedObject.ApplyModifiedProperties(); - RequestReconnect(); + recv.sourceName = ""; + recv.sourceName = _sourceName.stringValue; } + } - void OnEnable() - { - _sourceName = serializedObject.FindProperty("_sourceName"); - _targetTexture = serializedObject.FindProperty("_targetTexture"); - _targetRenderer = serializedObject.FindProperty("_targetRenderer"); - _targetMaterialProperty = serializedObject.FindProperty("_targetMaterialProperty"); - - EditorApplication.update += CheckRepaint; - } + void OnEnable() + { + var finder = new PropertyFinder(serializedObject); + _sourceName = finder["_sourceName"]; + _targetTexture = finder["_targetTexture"]; + _targetRenderer = finder["_targetRenderer"]; + _targetMaterialProperty = finder["_targetMaterialProperty"]; + } - void OnDisable() - { - EditorApplication.update -= CheckRepaint; - } + public override void OnInspectorGUI() + { + serializedObject.Update(); - public override void OnInspectorGUI() - { - serializedObject.Update(); + EditorGUILayout.BeginHorizontal(); - EditorGUILayout.BeginHorizontal(); + // Source name text field + EditorGUI.BeginChangeCheck(); + EditorGUILayout.DelayedTextField(_sourceName); + var restart = EditorGUI.EndChangeCheck(); - // Source name text field - EditorGUI.BeginChangeCheck(); - EditorGUILayout.DelayedTextField(_sourceName); - if (EditorGUI.EndChangeCheck()) RequestReconnect(); + // Source name dropdown + var rect = EditorGUILayout.GetControlRect(false, GUILayout.Width(60)); + if (EditorGUI.DropdownButton(rect, Labels.Select, FocusType.Keyboard)) + ShowSourceNameDropdown(rect); - // Source name dropdown - var rect = EditorGUILayout.GetControlRect(false, GUILayout.Width(60)); - if (EditorGUI.DropdownButton(rect, Labels.Select, FocusType.Keyboard)) - ShowSourceNameDropdown(rect); + EditorGUILayout.EndHorizontal(); - EditorGUILayout.EndHorizontal(); + // Target texture/renderer + EditorGUILayout.PropertyField(_targetTexture); + EditorGUILayout.PropertyField(_targetRenderer); - // Target texture/renderer - EditorGUILayout.PropertyField(_targetTexture); - EditorGUILayout.PropertyField(_targetRenderer); + EditorGUI.indentLevel++; - EditorGUI.indentLevel++; + if (_targetRenderer.hasMultipleDifferentValues) + { + // Multiple renderers selected: Show a simple text field. + EditorGUILayout.PropertyField(_targetMaterialProperty, Labels.Property); + } + else if (_targetRenderer.objectReferenceValue != null) + { + // Single renderer: Show the material property selection dropdown. + MaterialPropertySelector.DropdownList(_targetRenderer, _targetMaterialProperty); + } - if (_targetRenderer.hasMultipleDifferentValues) - { - // Multiple renderers selected: Show a simple text field. - EditorGUILayout.PropertyField(_targetMaterialProperty, Labels.Property); - } - else if (_targetRenderer.objectReferenceValue != null) - { - // Single renderer: Show the material property selection dropdown. - MaterialPropertySelector.DropdownList(_targetRenderer, _targetMaterialProperty); - } + EditorGUI.indentLevel--; - EditorGUI.indentLevel--; + serializedObject.ApplyModifiedProperties(); - serializedObject.ApplyModifiedProperties(); - } + if (restart) RequestRestart(); } } + +} // namespace Klak.Spout.Editor diff --git a/Packages/jp.keijiro.klak.spout/Editor/SpoutResources.asset b/Packages/jp.keijiro.klak.spout/Editor/SpoutResources.asset new file mode 100644 index 0000000..fcfcd12 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Editor/SpoutResources.asset @@ -0,0 +1,15 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 12527eb854f97c84cac3b04dc699db09, type: 3} + m_Name: SpoutResources + m_EditorClassIdentifier: + blitShader: {fileID: 4800000, guid: eb56c59e60b76874692c486f3bdd860d, type: 3} diff --git a/Packages/jp.keijiro.klak.spout/Editor/SpoutResources.asset.meta b/Packages/jp.keijiro.klak.spout/Editor/SpoutResources.asset.meta new file mode 100644 index 0000000..6093c4f --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Editor/SpoutResources.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f449ebbe2051c2e4d993eaa773a410de +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/Editor/SpoutSenderEditor.cs b/Packages/jp.keijiro.klak.spout/Editor/SpoutSenderEditor.cs index 1eaee62..a7a7520 100644 --- a/Packages/jp.keijiro.klak.spout/Editor/SpoutSenderEditor.cs +++ b/Packages/jp.keijiro.klak.spout/Editor/SpoutSenderEditor.cs @@ -1,58 +1,73 @@ -// KlakSpout - Spout video frame sharing plugin for Unity -// https://github.com/keijiro/KlakSpout - using UnityEngine; using UnityEditor; -namespace Klak.Spout +namespace Klak.Spout.Editor { + +[CanEditMultipleObjects] +[CustomEditor(typeof(SpoutSender))] +sealed class SpoutSenderEditor : UnityEditor.Editor { - [CanEditMultipleObjects] - [CustomEditor(typeof(SpoutSender))] - sealed class SpoutSenderEditor : Editor + SerializedProperty _spoutName; + SerializedProperty _keepAlpha; + SerializedProperty _captureMethod; + SerializedProperty _sourceCamera; + SerializedProperty _sourceTexture; + + static class Labels { - SerializedProperty _sourceTexture; - SerializedProperty _alphaSupport; + public static Label SpoutName = "Spout Name"; + } - void OnEnable() + // Sender restart request + void RequestRestart() + { + // Dirty trick: We only can restart senders by modifying the + // spoutName property, so we modify it by an invalid name, then + // revert it. + foreach (SpoutSender send in targets) { - _sourceTexture = serializedObject.FindProperty("_sourceTexture"); - _alphaSupport = serializedObject.FindProperty("_alphaSupport"); + send.spoutName = ""; + send.spoutName = _spoutName.stringValue; } + } - public override void OnInspectorGUI() - { - serializedObject.Update(); - - if (targets.Length == 1) - { - var sender = (SpoutSender)target; - var camera = sender.GetComponent(); - - if (camera != null) - { - EditorGUILayout.HelpBox( - "Spout Sender is running in camera capture mode.", - MessageType.None - ); - - // Hide the source texture property. - } - else - { - EditorGUILayout.HelpBox( - "Spout Sender is running in render texture mode.", - MessageType.None - ); - - EditorGUILayout.PropertyField(_sourceTexture); - } - } - else - EditorGUILayout.PropertyField(_sourceTexture); - - EditorGUILayout.PropertyField(_alphaSupport); - - serializedObject.ApplyModifiedProperties(); - } + void OnEnable() + { + var finder = new PropertyFinder(serializedObject); + _spoutName = finder["_spoutName"]; + _keepAlpha = finder["_keepAlpha"]; + _captureMethod = finder["_captureMethod"]; + _sourceCamera = finder["_sourceCamera"]; + _sourceTexture = finder["_sourceTexture"]; + } + + public override void OnInspectorGUI() + { + serializedObject.Update(); + + EditorGUI.BeginChangeCheck(); + EditorGUILayout.DelayedTextField(_spoutName, Labels.SpoutName); + var restart = EditorGUI.EndChangeCheck(); + + EditorGUILayout.PropertyField(_keepAlpha); + EditorGUILayout.PropertyField(_captureMethod); + + EditorGUI.indentLevel++; + + if (_captureMethod.hasMultipleDifferentValues || + _captureMethod.enumValueIndex == (int)CaptureMethod.Camera) + EditorGUILayout.PropertyField(_sourceCamera); + + if (_captureMethod.hasMultipleDifferentValues || + _captureMethod.enumValueIndex == (int)CaptureMethod.Texture) + EditorGUILayout.PropertyField(_sourceTexture); + + EditorGUI.indentLevel--; + + serializedObject.ApplyModifiedProperties(); + + if (restart) RequestRestart(); } } + +} // namespace Klak.Spout.Editor diff --git a/Packages/jp.keijiro.klak.spout/Editor/SpoutSenderEditor.cs.meta b/Packages/jp.keijiro.klak.spout/Editor/SpoutSenderEditor.cs.meta index f910062..3aa1210 100644 --- a/Packages/jp.keijiro.klak.spout/Editor/SpoutSenderEditor.cs.meta +++ b/Packages/jp.keijiro.klak.spout/Editor/SpoutSenderEditor.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 4d54f6c4c801e1148b465b8fb9d50412 -timeCreated: 1492008196 -licenseType: Pro +guid: b452d1bad3a57344d9b54f2cea6f252c MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 diff --git a/Packages/jp.keijiro.klak.spout/Editor/Utility.cs b/Packages/jp.keijiro.klak.spout/Editor/Utility.cs new file mode 100644 index 0000000..a5f8f2a --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Editor/Utility.cs @@ -0,0 +1,30 @@ +using UnityEngine; +using UnityEditor; + +namespace Klak.Spout.Editor { + +// Simple string label with GUIContent +struct Label +{ + GUIContent _guiContent; + + public static implicit operator GUIContent(Label label) + => label._guiContent; + + public static implicit operator Label(string text) + => new Label { _guiContent = new GUIContent(text) }; +} + +// Utilities for finding serialized properties +struct PropertyFinder +{ + SerializedObject _so; + + public PropertyFinder(SerializedObject so) + => _so = so; + + public SerializedProperty this[string name] + => _so.FindProperty(name); +} + +} // namespace Klak.Spout.Editor diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/PluginEntry.cs.meta b/Packages/jp.keijiro.klak.spout/Editor/Utility.cs.meta similarity index 69% rename from Packages/jp.keijiro.klak.spout/Runtime/Internal/PluginEntry.cs.meta rename to Packages/jp.keijiro.klak.spout/Editor/Utility.cs.meta index 0b4efa5..c63f0d4 100644 --- a/Packages/jp.keijiro.klak.spout/Runtime/Internal/PluginEntry.cs.meta +++ b/Packages/jp.keijiro.klak.spout/Editor/Utility.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 5833bfa0ae0a90e478f1f90a455ee667 -timeCreated: 1491903743 -licenseType: Pro +guid: b0cafe26b1cd89b4ca76bb015cfd16d4 MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 diff --git a/Packages/jp.keijiro.klak.spout/LICENSE b/Packages/jp.keijiro.klak.spout/LICENSE index ba2ee04..68a49da 100644 --- a/Packages/jp.keijiro.klak.spout/LICENSE +++ b/Packages/jp.keijiro.klak.spout/LICENSE @@ -1,21 +1,24 @@ -MIT License +This is free and unencumbered software released into the public domain. -Copyright (c) 2017-2020 Keijiro Takahashi +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +For more information, please refer to diff --git a/Packages/jp.keijiro.klak.spout/LICENSE.meta b/Packages/jp.keijiro.klak.spout/LICENSE.meta index b435235..d4481d1 100644 --- a/Packages/jp.keijiro.klak.spout/LICENSE.meta +++ b/Packages/jp.keijiro.klak.spout/LICENSE.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 17418d5be502a2e79a768eb0a7dd43ed +guid: b6f63dbd21960c44aaa8fe4a6d55ad3e DefaultImporter: externalObjects: {} userData: diff --git a/Packages/jp.keijiro.klak.spout/Plugin/KlakSpout.dll b/Packages/jp.keijiro.klak.spout/Plugin/KlakSpout.dll new file mode 100644 index 0000000..55a221d Binary files /dev/null and b/Packages/jp.keijiro.klak.spout/Plugin/KlakSpout.dll differ diff --git a/Packages/jp.keijiro.klak.spout/Plugin/x86_64/KlakSpout.dll.meta b/Packages/jp.keijiro.klak.spout/Plugin/KlakSpout.dll.meta similarity index 85% rename from Packages/jp.keijiro.klak.spout/Plugin/x86_64/KlakSpout.dll.meta rename to Packages/jp.keijiro.klak.spout/Plugin/KlakSpout.dll.meta index 34bd95a..df7d935 100644 --- a/Packages/jp.keijiro.klak.spout/Plugin/x86_64/KlakSpout.dll.meta +++ b/Packages/jp.keijiro.klak.spout/Plugin/KlakSpout.dll.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 27e2cf48d4e656449a7d18e6d3a1ef9f +guid: dc935766d7c9fd44181cb4b58ef3627e PluginImporter: externalObjects: {} serializedVersion: 2 @@ -7,7 +7,7 @@ PluginImporter: executionOrder: {} defineConstraints: [] isPreloaded: 0 - isOverridable: 1 + isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: @@ -19,13 +19,12 @@ PluginImporter: Exclude Editor: 0 Exclude Linux64: 0 Exclude OSXUniversal: 0 - Exclude WebGL: 0 Exclude Win: 1 Exclude Win64: 0 - first: Any: second: - enabled: 1 + enabled: 0 settings: {} - first: Editor: Editor @@ -59,11 +58,6 @@ PluginImporter: enabled: 1 settings: CPU: x86_64 - - first: - WebGL: WebGL - second: - enabled: 1 - settings: {} userData: assetBundleName: assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/Plugin/x86.meta b/Packages/jp.keijiro.klak.spout/Plugin/x86.meta deleted file mode 100644 index 2f89666..0000000 --- a/Packages/jp.keijiro.klak.spout/Plugin/x86.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3a8ac4024935c3f43a3e3d13e3e3a4ae -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/Plugin/x86/KlakSpout.dll b/Packages/jp.keijiro.klak.spout/Plugin/x86/KlakSpout.dll deleted file mode 100644 index 7eeef4c..0000000 Binary files a/Packages/jp.keijiro.klak.spout/Plugin/x86/KlakSpout.dll and /dev/null differ diff --git a/Packages/jp.keijiro.klak.spout/Plugin/x86/KlakSpout.dll.meta b/Packages/jp.keijiro.klak.spout/Plugin/x86/KlakSpout.dll.meta deleted file mode 100644 index 5817379..0000000 --- a/Packages/jp.keijiro.klak.spout/Plugin/x86/KlakSpout.dll.meta +++ /dev/null @@ -1,69 +0,0 @@ -fileFormatVersion: 2 -guid: 869ca65d5bc66aa4fa93cbf113c81259 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 1 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - : Any - second: - enabled: 0 - settings: - Exclude Editor: 0 - Exclude Linux64: 0 - Exclude OSXUniversal: 0 - Exclude WebGL: 0 - Exclude Win: 0 - Exclude Win64: 1 - - first: - Any: - second: - enabled: 1 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: x86 - DefaultValueInitialized: true - OS: Windows - - first: - Standalone: Linux64 - second: - enabled: 1 - settings: - CPU: None - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: None - - first: - Standalone: Win - second: - enabled: 1 - settings: - CPU: x86 - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: None - - first: - WebGL: WebGL - second: - enabled: 1 - settings: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/Plugin/x86_64/KlakSpout.dll b/Packages/jp.keijiro.klak.spout/Plugin/x86_64/KlakSpout.dll deleted file mode 100644 index a466afe..0000000 Binary files a/Packages/jp.keijiro.klak.spout/Plugin/x86_64/KlakSpout.dll and /dev/null differ diff --git a/Packages/jp.keijiro.klak.spout/README.md b/Packages/jp.keijiro.klak.spout/README.md index 6a72959..68fbfd1 100644 --- a/Packages/jp.keijiro.klak.spout/README.md +++ b/Packages/jp.keijiro.klak.spout/README.md @@ -9,20 +9,11 @@ applications using the [Spout] system. [Spout]: http://spout.zeal.co/ -Spout is a video sharing system for Windows that allows applications to share -frames in real time without incurring significant performance overhead. It's -supported by several applications (MadMapper, Resolume, etc.) and frameworks -(Processing, openFrameworks, etc.). It works in a similar way to [Syphon] for -Mac, and it's similarly useful for projection mapping and VJing. - -[Syphon]: http://syphon.v002.info/ - System requirements ------------------- -- Unity 2019.3 -- KlakSpout only supports Direct3D 11 (DX11) graphics API mode. Other APIs - (DX12, OpenGL, Vulkan) are not supported at the moment. +- Unity 2020.3 or later +- Direct3D 11 and 12 How to install -------------- @@ -35,11 +26,6 @@ Please add the following sections to the manifest file (Packages/manifest.json). To the `scopedRegistries` section: ``` -{ - "name": "Unity NuGet", - "url": "https://unitynuget-registry.azurewebsites.net", - "scopes": [ "org.nuget" ] -}, { "name": "Keijiro", "url": "https://registry.npmjs.com", @@ -50,7 +36,7 @@ To the `scopedRegistries` section: To the `dependencies` section: ``` -"jp.keijiro.klak.spout": "1.0.0" +"jp.keijiro.klak.spout": "2.0.0" ``` After changes, the manifest file should look like below: @@ -58,11 +44,6 @@ After changes, the manifest file should look like below: ``` { "scopedRegistries": [ - { - "name": "Unity NuGet", - "url": "https://unitynuget-registry.azurewebsites.net", - "scopes": [ "org.nuget" ] - }, { "name": "Keijiro", "url": "https://registry.npmjs.com", @@ -70,124 +51,6 @@ After changes, the manifest file should look like below: } ], "dependencies": { - "jp.keijiro.klak.spout": "1.0.0", + "jp.keijiro.klak.spout": "2.0.0", ... ``` - -Spout Sender component ----------------------- - -The **Spout Sender component** (`SpoutSender`) is used to send frames to other -Spout compatible applications. - -There are two modes in Spout Sender: - -### Camera capture mode - -![inspector](https://i.imgur.com/2QL6G8P.png) - -The Spout Sender component runs in the **camera capture mode** when attached to -a camera object. It automatically captures frames rendered by the camera and -publishes them via Spout. The dimensions of the frames are dependent on the -screen/game view size. - -Note that the camera capture mode is not compatible with [scriptable render -pipelines]. The render texture mode should be applied in case of using SRP. - -[scriptable render pipelines]: https://docs.unity3d.com/Manual/ScriptableRenderPipeline.html - -### Render texture mode - -![inspector](https://i.imgur.com/ZnqC6jr.png) - -The Spout Sender component runs in the **render texture mode** when it's -independent from any camera. In this mode, the sender publishes content of a -render texture that is specified in the **Source Texture** property. This -render texture should be updated in some way -- by attaching to a camera as a -target texture, by [custom render texture], etc. - -[render texture]: https://docs.unity3d.com/Manual/class-RenderTexture.html -[custom render texture]: https://docs.unity3d.com/Manual/CustomRenderTextures.html - -### Alpha channel support - -This controls if the sender includes alpha channel to published frames. In most -use-cases of Unity, the alpha channel in rendered frames is not used and only -contains garbage data. It's generally recommended to turn off the **Alpha -Channel Support** option to prevent causing wrong effects on a receiver side. - -Spout Receiver component ------------------------- - -![inspector](https://i.imgur.com/C3O1RDy.png) - -The **Spout Receiver component** (`SpoutReceiver`) is used to receive frames -published by other Spout compatible applications. - -### Source Name property - -The Spout Receiver tries to connect to a sender which has a name specified in -the **Source Name** property. Note that the search is done with exact match -(case-sensitive). It can be manually edited with the text field, or selected -from the drop-down labelled "Select" that shows currently available Spout -senders. - -### Target Texture property - -The Spout Receiver updates a render texture specified in the **Target Texture** -property every frame. Note that the Spout Receiver doesn't care about aspect -ratio; the dimensions of the render texture should be manually adjusted to -avoid stretching. - -### Target Renderer property - -When a renderer component (in most cases it may be a mesh renderer component) -is specified in the **Target Renderer** property, the Spout Receiver sets the -received frames to one of the texture properties of the material used in the -renderer. This is a convenient way to display received frames when they're only -used in a single renderer instance. - -### Script interface - -The received frames are also accessible via the `receivedTexture` property of -the `SpoutReceiver` class. Note that the `receivedTexture` object is -destroyed/recreated when the settings (e.g. screen size) are changed. It's -recommended to update the reference every frame. - -Spout Manager class -------------------- - -The **Spout Manager class** (`SpoutManager`) only has one function: getting the -list of sender names that are currently available in the system -(`GetSourceNames`). This is useful for implementing a sender selection UI -for run time use. - -![gif](https://i.imgur.com/C4XUzLk.gif) - -Please check the [Source Selector example] for detailed use of this function. - -[Source Selector example]: Assets/Test/SourceSelector.cs - -Frequently Asked Questions --------------------------- - -### Can't send/receive more than 10 sources - -See [issue #33] in the Spout SDK. You can download the SpoutSettings app from -the thread that allows changing the maximum number of Spout senders. - -[issue #33]: https://github.com/leadedge/Spout2/issues/33 - -### Spout vs NDI: Which one is better? - -The answer is simple: If you're going to use a single computer, use Spout. If -you need connecting multiple computers, use NDI. - -Spout is a superior solution for local interoperation. It's faster, low latency, -more memory efficient and better quality. It's recommended using Spout unless -multiple computers are involved. - -License -------- - -[MIT](LICENSE.md) diff --git a/Packages/jp.keijiro.klak.spout/README.md.meta b/Packages/jp.keijiro.klak.spout/README.md.meta index e2c1ce9..5dc8675 100644 --- a/Packages/jp.keijiro.klak.spout/README.md.meta +++ b/Packages/jp.keijiro.klak.spout/README.md.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1512a3ba8bccd3489b620acca5de704b +guid: bfad8b30f2b4f23449e5fa78280668ec TextScriptImporter: externalObjects: {} userData: diff --git a/Packages/jp.keijiro.klak.spout/Resources.meta b/Packages/jp.keijiro.klak.spout/Resources.meta deleted file mode 100644 index b422efe..0000000 --- a/Packages/jp.keijiro.klak.spout/Resources.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 954cbe99260f67440b5e1528dc33381f -folderAsset: yes -timeCreated: 1491925550 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/Resources/Blit.shader b/Packages/jp.keijiro.klak.spout/Resources/Blit.shader deleted file mode 100644 index fee0260..0000000 --- a/Packages/jp.keijiro.klak.spout/Resources/Blit.shader +++ /dev/null @@ -1,63 +0,0 @@ -// KlakSpout - Spout video frame sharing plugin for Unity -// https://github.com/keijiro/KlakSpout - -Shader "Hidden/Spout/Blit" -{ - Properties - { - _MainTex("", 2D) = "white" {} - } - - CGINCLUDE - - #include "UnityCG.cginc" - - sampler2D _MainTex; - fixed _ClearAlpha; - - v2f_img vert_yflip(appdata_img v) - { - v2f_img o; - o.pos = UnityObjectToClipPos(v.vertex); - o.uv = float2(v.texcoord.x, 1 - v.texcoord.y); - return o; - } - - fixed4 frag_sender(v2f_img i) : SV_Target - { - fixed4 col = tex2D(_MainTex, i.uv); - col.a = saturate(col.a + _ClearAlpha); - return col; - } - - fixed4 frag_receiver(v2f_img i) : SV_Target - { - fixed4 col = tex2D(_MainTex, i.uv); - #if !defined(UNITY_COLORSPACE_GAMMA) - col.rgb = GammaToLinearSpace(col.rgb); - #endif - return col; - } - - ENDCG - - SubShader - { - Cull Off ZWrite Off ZTest Always - Pass - { - CGPROGRAM - #pragma vertex vert_yflip - #pragma fragment frag_sender - ENDCG - } - Pass - { - CGPROGRAM - #pragma vertex vert_yflip - #pragma fragment frag_receiver - #pragma multi_compile _ UNITY_COLORSPACE_GAMMA - ENDCG - } - } -} diff --git a/Packages/jp.keijiro.klak.spout/Runtime/AssemblyInfo.cs b/Packages/jp.keijiro.klak.spout/Runtime/AssemblyInfo.cs deleted file mode 100644 index f83fd49..0000000 --- a/Packages/jp.keijiro.klak.spout/Runtime/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -// KlakSpout - Spout video frame sharing plugin for Unity -// https://github.com/keijiro/KlakSpout - -using System.Runtime.CompilerServices; - -[assembly: InternalsVisibleTo("Klak.Spout.Editor")] diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/Blit.shader b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Blit.shader new file mode 100644 index 0000000..fa2789c --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Blit.shader @@ -0,0 +1,99 @@ +Shader "Hidden/Klak/Spout/Blit" +{ + Properties + { + _MainTex("", 2D) = "white" {} + } + + CGINCLUDE + + #include "UnityCG.cginc" + + sampler2D _MainTex; + + // Note: The effect of the v-flip option is reversed here. + // We have to do v-flip actually on no-v-flip passes. + + void Vertex(float4 position : POSITION, + float2 texCoord : TEXCOORD0, + out float4 outPosition : SV_Position, + out float2 outTexCoord : TEXCOORD0) + { + outPosition = UnityObjectToClipPos(position); + outTexCoord = float2(texCoord.x, 1 - texCoord.y); + } + + void VertexVFlip(float4 position : POSITION, + float2 texCoord : TEXCOORD0, + out float4 outPosition : SV_Position, + out float2 outTexCoord : TEXCOORD0) + { + outPosition = UnityObjectToClipPos(position); + outTexCoord = texCoord; + } + + float4 BlitSimple(float4 position : SV_Position, + float2 texCoord : TEXCOORD0) : SV_Target + { + return tex2D(_MainTex, texCoord); + } + + float4 BlitClearAlpha(float4 position : SV_Position, + float2 texCoord : TEXCOORD0) : SV_Target + { + return float4(tex2D(_MainTex, texCoord).rgb, 1); + } + + float4 BlitFromSrgb(float4 position : SV_Position, + float2 texCoord : TEXCOORD0) : SV_Target + { + float4 c = tex2D(_MainTex, texCoord); + #ifndef UNITY_COLORSPACE_GAMMA + c.rgb = GammaToLinearSpace(c.rgb); + #endif + return c; + } + + ENDCG + + SubShader + { + Cull Off ZWrite Off ZTest Always + Pass + { + CGPROGRAM + #pragma vertex Vertex + #pragma fragment BlitSimple + ENDCG + } + Pass + { + CGPROGRAM + #pragma vertex Vertex + #pragma fragment BlitClearAlpha + ENDCG + } + Pass + { + CGPROGRAM + #pragma vertex VertexVFlip + #pragma fragment BlitSimple + ENDCG + } + Pass + { + CGPROGRAM + #pragma vertex VertexVFlip + #pragma fragment BlitClearAlpha + ENDCG + } + Pass + { + CGPROGRAM + #pragma vertex Vertex + #pragma fragment BlitFromSrgb + #pragma multi_compile _ UNITY_COLORSPACE_GAMMA + ENDCG + } + } +} diff --git a/Packages/jp.keijiro.klak.spout/Resources/Blit.shader.meta b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Blit.shader.meta similarity index 100% rename from Packages/jp.keijiro.klak.spout/Resources/Blit.shader.meta rename to Packages/jp.keijiro.klak.spout/Runtime/Internal/Blit.shader.meta diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/Event.cs b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Event.cs new file mode 100644 index 0000000..0a8bc8e --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Event.cs @@ -0,0 +1,65 @@ +using UnityEngine; +using UnityEngine.Rendering; +using System.Runtime.InteropServices; +using System; + +namespace Klak.Spout { + +// Render event IDs +// Should match with KlakSpout::EventID (Event.h) +enum EventID +{ + UpdateSender, + UpdateReceiver, + CloseSender, + CloseReceiver +} + +// Render event attachment data structure +// Should match with KlakSpout::EventData (Event.h) +[StructLayout(LayoutKind.Sequential)] +struct EventData +{ + public IntPtr instancePointer; + public IntPtr texturePointer; + + public EventData(IntPtr instance, IntPtr texture) + { + instancePointer = instance; + texturePointer = texture; + } + + public EventData(IntPtr instance) + { + instancePointer = instance; + texturePointer = IntPtr.Zero; + } +} + +class EventKicker : IDisposable +{ + public EventKicker(EventData data) + => _dataMem = GCHandle.Alloc(data, GCHandleType.Pinned); + + public void Dispose() + => MemoryPool.FreeOnEndOfFrame(_dataMem); + + public void IssuePluginEvent(EventID eventID) + { + if (_cmdBuffer == null) + _cmdBuffer = new CommandBuffer(); + else + _cmdBuffer.Clear(); + + _cmdBuffer.IssuePluginEventAndData + (Plugin.GetRenderEventCallback(), + (int)eventID, _dataMem.AddrOfPinnedObject()); + + Graphics.ExecuteCommandBuffer(_cmdBuffer); + } + + static CommandBuffer _cmdBuffer; + GCHandle _dataMem; +} + +} // namespace Klak.Spout diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/Event.cs.meta b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Event.cs.meta new file mode 100644 index 0000000..dd49f85 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Event.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 711afc65662fee5429d958cdc98ea404 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/MemoryPool.cs b/Packages/jp.keijiro.klak.spout/Runtime/Internal/MemoryPool.cs new file mode 100644 index 0000000..e2ffe99 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/MemoryPool.cs @@ -0,0 +1,70 @@ +using UnityEngine.LowLevel; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.InteropServices; + +namespace Klak.Spout { + +// +// "Memory pool" class without actual memory pool functionality +// At the moment, it only provides the delayed destruction method. +// +static class MemoryPool +{ + #region Public method + + public static void FreeOnEndOfFrame(GCHandle gch) + => _toBeFreed.Push(gch); + + #endregion + + #region Delayed destruction + + static Stack _toBeFreed = new Stack(); + + static void OnEndOfFrame() + { + while (_toBeFreed.Count > 0) _toBeFreed.Pop().Free(); + } + + #endregion + + #region PlayerLoopSystem implementation + + static MemoryPool() + { + InsertPlayerLoopSystem(); + + #if UNITY_EDITOR + // We use not only PlayerLoopSystem but also the + // EditorApplication.update callback because the PlayerLoop events are + // not invoked in the edit mode. + UnityEditor.EditorApplication.update += OnEndOfFrame; + #endif + } + + static void InsertPlayerLoopSystem() + { + var customSystem = new PlayerLoopSystem() + { type = typeof(MemoryPool), updateDelegate = OnEndOfFrame }; + + var playerLoop = PlayerLoop.GetCurrentPlayerLoop(); + + for (var i = 0; i < playerLoop.subSystemList.Length; i++) + { + ref var phase = ref playerLoop.subSystemList[i]; + if (phase.type == typeof(UnityEngine.PlayerLoop.PostLateUpdate)) + { + phase.subSystemList = phase.subSystemList + .Concat(new [] { customSystem }).ToArray(); + break; + } + } + + PlayerLoop.SetPlayerLoop(playerLoop); + } + + #endregion +} + +} // namespace Klak.Spout diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/MemoryPool.cs.meta b/Packages/jp.keijiro.klak.spout/Runtime/Internal/MemoryPool.cs.meta new file mode 100644 index 0000000..f52e333 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/MemoryPool.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3d6cd0890fa1bb44c9cc572948deacd4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/Plugin.cs b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Plugin.cs new file mode 100644 index 0000000..0ee1391 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Plugin.cs @@ -0,0 +1,35 @@ +using System.Runtime.InteropServices; +using IntPtr = System.IntPtr; + +namespace Klak.Spout { + +static class Plugin +{ + // Receiver interop data structure + // Should match with KlakSpout::Receiver::InteropData (Receiver.h) + [StructLayout(LayoutKind.Sequential)] + public struct ReceiverData + { + public uint width, height; + public IntPtr texturePointer; + } + + [DllImport("KlakSpout")] + public static extern IntPtr GetRenderEventCallback(); + + [DllImport("KlakSpout")] + public static extern IntPtr CreateSender(string name, int width, int height); + + [DllImport("KlakSpout")] + public static extern IntPtr CreateReceiver(string name); + + [DllImport("KlakSpout")] + public static extern ReceiverData GetReceiverData(IntPtr receiver); + + [DllImport("KlakSpout")] + public static extern void GetSenderNames + ([Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] + out IntPtr[] names, out int count); +} + +} // namespace Klak.Spout diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/Plugin.cs.meta b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Plugin.cs.meta new file mode 100644 index 0000000..5d6f518 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Plugin.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a6bde715fc227c74abc7562678c323de +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/PluginEntry.cs b/Packages/jp.keijiro.klak.spout/Runtime/Internal/PluginEntry.cs deleted file mode 100644 index 4985bbd..0000000 --- a/Packages/jp.keijiro.klak.spout/Runtime/Internal/PluginEntry.cs +++ /dev/null @@ -1,152 +0,0 @@ -// KlakSpout - Spout video frame sharing plugin for Unity -// https://github.com/keijiro/KlakSpout - -using UnityEngine; -using System.Runtime.InteropServices; - -namespace Klak.Spout -{ - static class PluginEntry - { - internal enum Event { Dispose, SetTargetObject, UpdateWrapCache } - internal enum BlitCommand { Send = 2, Receive = 3 } - - [StructLayout(LayoutKind.Sequential)] - internal struct SenderInfo - { - public int width; - public int height; - public int format; - public bool exists; - public bool isSameSize; - } - - internal enum DXTextureFormat - { - DXGI_FORMAT_UNKNOWN = 0, - DXGI_FORMAT_R16G16B16A16_FLOAT = 10, - D3DFMT_A8R8G8B8 = 21, // DX9 shared tex, interpret as DXGI_FORMAT_B8G8R8A8_UNORM - DXGI_FORMAT_R10G10B10A2_UNORM = 24, - DXGI_FORMAT_R8G8B8A8_UNORM = 28, - DXGI_FORMAT_B8G8R8A8_UNORM = 87, // Default DX11 shared tex - } - - // Tedious, but we only need to support a few formats - // (the rest aren't compatible with the DX sharing feature) - internal static bool DXToRenderTextureFormat(DXTextureFormat dxFormat, ref RenderTextureFormat rtFormat) - { - if (dxFormat == DXTextureFormat.DXGI_FORMAT_UNKNOWN || - dxFormat == DXTextureFormat.D3DFMT_A8R8G8B8 || - dxFormat == DXTextureFormat.DXGI_FORMAT_B8G8R8A8_UNORM) - { - rtFormat = RenderTextureFormat.BGRA32; - return true; - } - else if (dxFormat == DXTextureFormat.DXGI_FORMAT_R16G16B16A16_FLOAT) - { - rtFormat = RenderTextureFormat.ARGBHalf; - return true; - } - else if (dxFormat == DXTextureFormat.DXGI_FORMAT_R10G10B10A2_UNORM) - { - rtFormat = RenderTextureFormat.ARGB2101010; - return true; - } - else if (dxFormat == DXTextureFormat.DXGI_FORMAT_R8G8B8A8_UNORM) - { - rtFormat = RenderTextureFormat.ARGB32; - return true; - } - - return false; - } - - #if UNITY_STANDALONE_WIN && !UNITY_EDITOR_OSX - - internal static bool IsAvailable { - get { - return - SystemInfo.graphicsDeviceType == UnityEngine.Rendering.GraphicsDeviceType.Direct3D11 || - SystemInfo.graphicsDeviceType == UnityEngine.Rendering.GraphicsDeviceType.Direct3D12; - } - } - - [DllImport("KlakSpout")] - internal static extern System.IntPtr GetRenderEventFunc(); - - [DllImport("KlakSpout")] - internal static extern System.IntPtr GetCustomBlitFunc(); - - [DllImport("KlakSpout")] - internal static extern System.IntPtr CreateSender(string name, int width, int height); - - [DllImport("KlakSpout")] - internal static extern System.IntPtr CreateReceiver(string name); - - [DllImport("KlakSpout")] - internal static extern int GetTextureWidth(System.IntPtr ptr); - - [DllImport("KlakSpout")] - internal static extern int GetTextureHeight(System.IntPtr ptr); - - [DllImport("KlakSpout")] - internal static extern int GetTextureFormat(System.IntPtr ptr); - - [DllImport("KlakSpout")] - internal static extern bool IsReady(System.IntPtr ptr); - - [DllImport("KlakSpout")] - internal static extern System.IntPtr GetSenderInfo(string name, out SenderInfo info); - - [DllImport("KlakSpout")] - internal static extern int ScanSharedObjects(); - - [DllImport("KlakSpout")] - internal static extern System.IntPtr GetSharedObjectName(int index); - - internal static string GetSharedObjectNameString(int index) - { - var ptr = GetSharedObjectName(index); - return ptr != System.IntPtr.Zero ? Marshal.PtrToStringAnsi(ptr) : null; - } - - #else - - internal static bool IsAvailable { get { return false; } } - - internal static System.IntPtr GetRenderEventFunc() - { return System.IntPtr.Zero; } - - internal static System.IntPtr GetCustomBlitFunc() - { return System.IntPtr.Zero; } - - internal static System.IntPtr CreateSender(string name, int width, int height) - { return System.IntPtr.Zero; } - - internal static System.IntPtr CreateReceiver(string name) - { return System.IntPtr.Zero; } - - internal static int GetTextureWidth(System.IntPtr ptr) - { return 0; } - - internal static int GetTextureHeight(System.IntPtr ptr) - { return 0; } - - internal static int GetTextureFormat(System.IntPtr ptr) - { return 0; } - - internal static bool IsReady(System.IntPtr ptr) - { return false; } - - internal static System.IntPtr GetSenderInfo(string name, out SenderInfo info) - { return System.IntPtr.Zero; } - - internal static int ScanSharedObjects() - { return 0; } - - internal static string GetSharedObjectNameString(int index) - { return null; } - - #endif - } -} diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/Receiver.cs b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Receiver.cs new file mode 100644 index 0000000..7464b60 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Receiver.cs @@ -0,0 +1,98 @@ +using UnityEngine; +using System.Runtime.InteropServices; +using IntPtr = System.IntPtr; + +namespace Klak.Spout { + +// +// Wrapper class for receiver instances on the native plugin side +// +sealed class Receiver : System.IDisposable +{ + #region Public property + + public Texture2D Texture => _texture; + + #endregion + + #region Private objects + + IntPtr _plugin; + EventKicker _event; + Texture2D _texture; + + #endregion + + #region Object lifecycle + + public Receiver(string sourceName) + { + if (string.IsNullOrEmpty(sourceName)) return; + + // Plugin object allocation + _plugin = Plugin.CreateReceiver(sourceName); + + // Event kicker (heap block for interop communication) + _event = new EventKicker(new EventData(_plugin)); + + // Initial update event + _event.IssuePluginEvent(EventID.UpdateReceiver); + } + + public void Dispose() + { + if (_plugin != System.IntPtr.Zero) + { + // Isssue the closer event to destroy the plugin object from the + // render thread. + _event.IssuePluginEvent(EventID.CloseReceiver); + + // Event kicker (interop memory) deallocation: + // The close event above will refer to the block from the render + // thread, so we actually can't free the memory here. To avoid this + // problem, EventKicker uses MemoryPool to delay the memory + // deallocation by the end of the frame. + _event.Dispose(); + + _plugin = IntPtr.Zero; + } + + Utility.Destroy(_texture); + _texture = null; + } + + #endregion + + #region Frame update method + + public void Update() + { + if (_plugin == System.IntPtr.Zero) return; + + var data = Plugin.GetReceiverData(_plugin); + + // Texture refresh: + // If we are referring to an old texture pointer, destroy it first. + if (_texture != null && + _texture.GetNativeTexturePtr() != data.texturePointer) + { + Utility.Destroy(_texture); + _texture = null; + } + + // Lazy initialization: + // We try creating a receiver texture every frame until getting a + // correct one. + if (_texture == null && data.texturePointer != IntPtr.Zero) + _texture = Texture2D.CreateExternalTexture + ((int)data.width, (int)data.height, TextureFormat.RGBA32, + false, false, data.texturePointer); + + // Update event for the render thread + _event.IssuePluginEvent(EventID.UpdateReceiver); + } + + #endregion +} + +} // namespace Klak.Spout diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/Receiver.cs.meta b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Receiver.cs.meta new file mode 100644 index 0000000..09cb039 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Receiver.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8219c164418947e43be8c668062162cc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/Sender.cs b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Sender.cs new file mode 100644 index 0000000..c08829e --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Sender.cs @@ -0,0 +1,63 @@ +using UnityEngine; +using System.Runtime.InteropServices; +using IntPtr = System.IntPtr; + +namespace Klak.Spout { + +// +// Wrapper class for sender instances on the native plugin side +// +sealed class Sender : System.IDisposable +{ + #region Private objects + + IntPtr _plugin; + EventKicker _event; + + #endregion + + #region Object lifecycle + + public Sender(string target, Texture texture) + { + // Plugin object allocation + _plugin = Plugin.CreateSender(target, texture.width, texture.height); + + // Event kicker (heap block for interop communication) + _event = new EventKicker + (new EventData(_plugin, texture.GetNativeTexturePtr())); + + // Initial update event + _event.IssuePluginEvent(EventID.UpdateSender); + } + + public void Dispose() + { + if (_plugin != System.IntPtr.Zero) + { + // Isssue the closer event to destroy the plugin object from the + // render thread. + _event.IssuePluginEvent(EventID.CloseSender); + + // Event kicker (interop memory) deallocation: + // The close event above will refer to the block from the render + // thread, so we actually can't free the memory here. To avoid this + // problem, EventKicker uses MemoryPool to delay the memory + // deallocation by the end of the frame. + _event.Dispose(); + + _plugin = IntPtr.Zero; + } + } + + #endregion + + #region Frame update method + + public void Update() + => _event.IssuePluginEvent(EventID.UpdateSender); + + #endregion +} + +} // namespace Klak.Spout diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/Sender.cs.meta b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Sender.cs.meta new file mode 100644 index 0000000..4039a98 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Sender.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ab35b32382688a747a0fa6b0b1d2b6e6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Internal/Utility.cs b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Utility.cs index e58c11c..c86a08f 100644 --- a/Packages/jp.keijiro.klak.spout/Runtime/Internal/Utility.cs +++ b/Packages/jp.keijiro.klak.spout/Runtime/Internal/Utility.cs @@ -1,57 +1,65 @@ -// KlakSpout - Spout video frame sharing plugin for Unity -// https://github.com/keijiro/KlakSpout - using UnityEngine; using UnityEngine.Rendering; +using RTID = UnityEngine.Rendering.RenderTargetIdentifier; + +namespace Klak.Spout { -namespace Klak.Spout +static class RendererOverride { - // Internal utilities - static class Util + static MaterialPropertyBlock _block; + + public static void SetTexture + (Renderer renderer, string property, Texture texture) { - internal static void Destroy(Object obj) - { - if (obj == null) return; + if (_block == null) _block = new MaterialPropertyBlock(); + renderer.GetPropertyBlock(_block); + _block.SetTexture(property, texture); + renderer.SetPropertyBlock(_block); + } +} - if (Application.isPlaying) - Object.Destroy(obj); - else - Object.DestroyImmediate(obj); - } +static class Blitter +{ + public static void Blit + (SpoutResources resrc, Texture src, RenderTexture dst, bool alpha) + => Graphics.Blit(src, dst, GetMaterial(resrc), alpha ? 0 : 1); - static CommandBuffer _commandBuffer; + public static void BlitVFlip + (SpoutResources resrc, Texture src, RenderTexture dst, bool alpha) + => Graphics.Blit(src, dst, GetMaterial(resrc), alpha ? 2 : 3); - internal static void - IssuePluginEvent(PluginEntry.Event pluginEvent, System.IntPtr ptr) - { - if (_commandBuffer == null) _commandBuffer = new CommandBuffer(); + public static void Blit + (SpoutResources resrc, CommandBuffer cb, RTID src, RTID dst, bool alpha) + => cb.Blit(src, dst, GetMaterial(resrc), alpha ? 0 : 1); - _commandBuffer.IssuePluginEventAndData( - PluginEntry.GetRenderEventFunc(), (int)pluginEvent, ptr - ); + public static void BlitFromSrgb + (SpoutResources resrc, Texture src, RenderTexture dst) + => Graphics.Blit(src, dst, GetMaterial(resrc), 4); - Graphics.ExecuteCommandBuffer(_commandBuffer); + static Material _material; - _commandBuffer.Clear(); + static Material GetMaterial(SpoutResources resrc) + { + if (_material == null) + { + _material = new Material(resrc.blitShader); + _material.hideFlags = HideFlags.DontSave; } + return _material; + } +} - private static int frameCount = 0; +static class Utility +{ + public static void Destroy(Object obj) + { + if (obj == null) return; - // Calls a function in the native plugin once per frame, - // on the render thread - internal static void - UpdateWrapCache(int newFrame, CommandBuffer buffer) - { - if (frameCount <= newFrame) - { - frameCount = newFrame; - - buffer.IssuePluginEventAndData( - PluginEntry.GetRenderEventFunc(), - (int)PluginEntry.Event.UpdateWrapCache, - System.IntPtr.Zero // This event doesn't need data - ); - } - } + if (Application.isPlaying) + Object.Destroy(obj); + else + Object.DestroyImmediate(obj); } } + +} // namespace Klak.Spout diff --git a/Packages/jp.keijiro.klak.spout/Runtime/Klak.Spout.Runtime.asmdef b/Packages/jp.keijiro.klak.spout/Runtime/Klak.Spout.Runtime.asmdef index 3e65ba8..3c0fbe0 100644 --- a/Packages/jp.keijiro.klak.spout/Runtime/Klak.Spout.Runtime.asmdef +++ b/Packages/jp.keijiro.klak.spout/Runtime/Klak.Spout.Runtime.asmdef @@ -1,6 +1,9 @@ { "name": "Klak.Spout.Runtime", - "references": [], + "rootNamespace": "", + "references": [ + "GUID:df380645f10b7bc4b97d4f5eb6303d95" + ], "includePlatforms": [], "excludePlatforms": [], "allowUnsafeCode": false, @@ -8,6 +11,12 @@ "precompiledReferences": [], "autoReferenced": true, "defineConstraints": [], - "versionDefines": [], + "versionDefines": [ + { + "name": "com.unity.render-pipelines.core", + "expression": "0.0.0", + "define": "KLAK_SPOUT_HAS_SRP" + } + ], "noEngineReferences": false } \ No newline at end of file diff --git a/Packages/jp.keijiro.klak.spout/Runtime/SpoutManager.cs b/Packages/jp.keijiro.klak.spout/Runtime/SpoutManager.cs index c466153..b7f979b 100644 --- a/Packages/jp.keijiro.klak.spout/Runtime/SpoutManager.cs +++ b/Packages/jp.keijiro.klak.spout/Runtime/SpoutManager.cs @@ -1,32 +1,33 @@ -// KlakSpout - Spout video frame sharing plugin for Unity -// https://github.com/keijiro/KlakSpout +using System.Runtime.InteropServices; +using IntPtr = System.IntPtr; -using UnityEngine; -using System.Collections.Generic; +namespace Klak.Spout { -namespace Klak.Spout +public static class SpoutManager { - public static class SpoutManager + // + // GetSourceNames - Enumerates names of all available Spout sources + // + // This method invokes GC memory allocations every time, so it's + // recommended to cache the results for frequent use. + // + public static string[] GetSourceNames() { - // Scan available Spout sources and return their names via a newly - // allocated string array. - public static string[] GetSourceNames() - { - var count = PluginEntry.ScanSharedObjects(); - var names = new string [count]; - for (var i = 0; i < count; i++) - names[i] = PluginEntry.GetSharedObjectNameString(i); - return names; - } + // Retrieve an array of string pointers from the plugin. + IntPtr[] pointers; + int count; + Plugin.GetSenderNames(out pointers, out count); - // Scan available Spout sources and store their names into the given - // collection object. - public static void GetSourceNames(ICollection store) + // Convert them into managed strings. + var names = new string[count]; + for (var i = 0; i < count; i++) { - store.Clear(); - var count = PluginEntry.ScanSharedObjects(); - for (var i = 0; i < count; i++) - store.Add(PluginEntry.GetSharedObjectNameString(i)); + names[i] = Marshal.PtrToStringAnsi(pointers[i]); + Marshal.FreeCoTaskMem(pointers[i]); } + + return names; } } + +} // namespace Klak.Spout diff --git a/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver.cs b/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver.cs index 137955c..8e08fd8 100644 --- a/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver.cs +++ b/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver.cs @@ -1,241 +1,101 @@ -// KlakSpout - Spout video frame sharing plugin for Unity -// https://github.com/keijiro/KlakSpout - using UnityEngine; -using UnityEngine.Rendering; - -namespace Klak.Spout -{ - [ExecuteInEditMode] - [AddComponentMenu("Klak/Spout/Spout Receiver")] - public sealed class SpoutReceiver : MonoBehaviour - { - #region Source settings - - [SerializeField] string _sourceName; - - public string sourceName { - get { return _sourceName; } - set { - if (_sourceName == value) return; - _sourceName = value; - RequestReconnect(); - } - } - - #endregion - - #region Target settings - - [SerializeField] RenderTexture _targetTexture; - - public RenderTexture targetTexture { - get { return _targetTexture; } - set { _targetTexture = value; } - } - - [SerializeField] Renderer _targetRenderer; - - public Renderer targetRenderer { - get { return _targetRenderer; } - set { _targetRenderer = value; } - } - [SerializeField] string _targetMaterialProperty = null; +namespace Klak.Spout { - public string targetMaterialProperty { - get { return _targetMaterialProperty; } - set { _targetMaterialProperty = value; } - } - - #endregion - - #region Runtime properties - - RenderTexture _receivedTexture; - - public Texture receivedTexture { - get { return _targetTexture != null ? _targetTexture : _receivedTexture; } - } - - #endregion - - #region Private members +// +// Spout receiver class (main implementation) +// +[ExecuteInEditMode] +[AddComponentMenu("Klak/Spout/Spout Receiver")] +public sealed partial class SpoutReceiver : MonoBehaviour +{ + #region Receiver plugin object - System.IntPtr _plugin; - PluginEntry.SenderInfo _senderInfo = new PluginEntry.SenderInfo(); - CommandBuffer _commandBuffer; - int _middlemanRenderTextureID; - Material _blitMaterial; - MaterialPropertyBlock _propertyBlock; + Receiver _receiver; - #endregion + void ReleaseReceiver() + { + _receiver?.Dispose(); + _receiver = null; + } - #region Internal members + #endregion - internal void RequestReconnect() - { - OnDisable(); - } - - #endregion + #region Buffer texture object - #region MonoBehaviour implementation + RenderTexture _buffer; - void OnDisable() + RenderTexture PrepareBuffer() + { + // Receive-to-Texture mode: + // Destroy the internal buffer and return the target texture. + if (_targetTexture != null) { - if (_plugin != System.IntPtr.Zero) + if (_buffer != null) { - Util.IssuePluginEvent(PluginEntry.Event.Dispose, _plugin); - _plugin = System.IntPtr.Zero; + Utility.Destroy(_buffer); + _buffer = null; } + return _targetTexture; } - void OnDestroy() + var src = _receiver.Texture; + + // If the buffer exists but has wrong dimensions, destroy it first. + if (_buffer != null && + (_buffer.width != src.width || _buffer.height != src.height)) { - Util.Destroy(_blitMaterial); - Util.Destroy(_receivedTexture); + Utility.Destroy(_buffer); + _buffer = null; } - void Update() + // Create a buffer if it hasn't been allocated yet. + if (_buffer == null) { - PluginEntry.GetSenderInfo(_sourceName, out _senderInfo); - - // Release the plugin instance when the previously established - // connection is now invalid. - if (_plugin != System.IntPtr.Zero && PluginEntry.IsReady(_plugin)) - { - var width = PluginEntry.GetTextureWidth(_plugin); - var height = PluginEntry.GetTextureHeight(_plugin); - - if (!_senderInfo.exists || (width != _senderInfo.width || height != _senderInfo.height)) - { - Util.IssuePluginEvent(PluginEntry.Event.Dispose, _plugin); - _plugin = System.IntPtr.Zero; - } - } - - var dxFormat = (PluginEntry.DXTextureFormat)_senderInfo.format; - var rtFormat = RenderTextureFormat.ARGB32; - var supportedFormat = PluginEntry.DXToRenderTextureFormat(dxFormat, ref rtFormat); - - // Skip if no sender found with target name or if it has invalid parameters - if (!_senderInfo.exists || _senderInfo.width <= 0 || _senderInfo.height <= 0 || !supportedFormat) - return; - - // Plugin lazy initialization - if (_plugin == System.IntPtr.Zero) - { - _plugin = PluginEntry.CreateReceiver(_sourceName); - if (_plugin == System.IntPtr.Zero) return; // Spout may not be ready. - } - - // Texture format conversion with the blit shader - // Blit shader lazy initialization - if (_blitMaterial == null) - { - _blitMaterial = new Material(Shader.Find("Hidden/Spout/Blit")); - _blitMaterial.hideFlags = HideFlags.DontSave; - } - - // Renderer override - if (_targetRenderer != null && receivedTexture != null) - { - // Material property block lazy initialization - if (_propertyBlock == null) - _propertyBlock = new MaterialPropertyBlock(); - - // Read-modify-write - _targetRenderer.GetPropertyBlock(_propertyBlock); - _propertyBlock.SetTexture(_targetMaterialProperty, receivedTexture); - _targetRenderer.SetPropertyBlock(_propertyBlock); - } - - // Commandbuffer lazy initialization - if (_commandBuffer == null) - { - _commandBuffer = new CommandBuffer(); - _commandBuffer.name = name; + _buffer = new RenderTexture(src.width, src.height, 0); + _buffer.hideFlags = HideFlags.DontSave; + _buffer.Create(); + } - _middlemanRenderTextureID = Shader.PropertyToID("_SpoutReceiverRT"); - } + return _buffer; + } - Util.UpdateWrapCache(Time.frameCount, _commandBuffer); - - _commandBuffer.GetTemporaryRT( - _middlemanRenderTextureID, _senderInfo.width, _senderInfo.height, 0, - FilterMode.Point, rtFormat, - RenderTextureReadWrite.Linear // DX shared textures are always linear - ); - - // Set target sender on the native plugin side. - _commandBuffer.IssuePluginEventAndData( - PluginEntry.GetRenderEventFunc(), - (int)PluginEntry.Event.SetTargetObject, - _plugin - ); - - // Performs CopyTexture of the DX shared texture to the middleman RT. - // On DX12, the middleman RT is first wrapped into a DX11 texture, - // since DX shared textures are DX11/DX9 textures that we interface with - // using the D3D11on12 feature. - // - // IssuePluginCustomBlit is used instead of IssuePluginEventAndData as - // there's no other method to pass a temporary RT into the native side. - // If we had a pointer to the temporary RT's native texture then - // IssuePluginEventAndData could have been used. - _commandBuffer.IssuePluginCustomBlit( - PluginEntry.GetCustomBlitFunc(), - (int)PluginEntry.BlitCommand.Receive, - _middlemanRenderTextureID, - BuiltinRenderTextureType.CurrentActive, // Actually unused on the native plugin side - 0, - 0 - ); - - if (_targetTexture != null) - { - // Blit the middleman RT to the target texture. - _commandBuffer.Blit(_middlemanRenderTextureID, _targetTexture, _blitMaterial, 1); - } - else - { - // Receiver texture lazy initialization - if (_receivedTexture == null) - { - _receivedTexture = new RenderTexture(_senderInfo.width, _senderInfo.height, 0); - _receivedTexture.hideFlags = HideFlags.DontSave; - } - - // Blit the middleman RT to the receiver texture. - _commandBuffer.Blit(_middlemanRenderTextureID, _receivedTexture, _blitMaterial, 1); - } + #endregion - _commandBuffer.ReleaseTemporaryRT(_middlemanRenderTextureID); + #region MonoBehaviour implementation - // Schedule to run on the render thread. - Graphics.ExecuteCommandBuffer(_commandBuffer); - _commandBuffer.Clear(); - } + void OnDisable() + => ReleaseReceiver(); - #if UNITY_EDITOR + void OnDestroy() + { + Utility.Destroy(_buffer); + _buffer = null; + } - // Invoke update on repaint in edit mode. This is needed to update the - // shared texture without getting the object marked dirty. + void Update() + { + // Receiver lazy initialization + if (_receiver == null) + _receiver = new Receiver(_sourceName); - void OnRenderObject() - { - if (Application.isPlaying) return; + // Receiver plugin-side update + _receiver.Update(); - // Graphic.Blit used in Update will change the current active RT, - // so let us back it up and restore after Update. - var activeRT = RenderTexture.active; - Update(); - RenderTexture.active = activeRT; - } + // Do nothing further if no texture is ready yet. + if (_receiver.Texture == null) return; - #endif + // Received texture buffering + var buffer = PrepareBuffer(); + Blitter.BlitFromSrgb(_resources, _receiver.Texture, buffer); - #endregion + // Renderer override + if (_targetRenderer != null) + RendererOverride.SetTexture + (_targetRenderer, _targetMaterialProperty, buffer); } + + #endregion } + +} // namespace Klak.Spout diff --git a/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver.cs.meta b/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver.cs.meta index b2a596f..47c5640 100644 --- a/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver.cs.meta +++ b/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver.cs.meta @@ -1,10 +1,12 @@ fileFormatVersion: 2 guid: 62f7dec0b00674947bc631624c21970a -timeCreated: 1491895289 -licenseType: Pro MonoImporter: + externalObjects: {} serializedVersion: 2 - defaultReferences: [] + defaultReferences: + - _targetTexture: {instanceID: 0} + - _targetRenderer: {instanceID: 0} + - _resources: {fileID: 11400000, guid: f449ebbe2051c2e4d993eaa773a410de, type: 2} executionOrder: 0 icon: {instanceID: 0} userData: diff --git a/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver_Properties.cs b/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver_Properties.cs new file mode 100644 index 0000000..fc3dcc1 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver_Properties.cs @@ -0,0 +1,67 @@ +using UnityEngine; + +namespace Klak.Spout { + +// +// Spout receiver class (properties) +// +partial class SpoutReceiver +{ + #region Spout source + + [SerializeField] string _sourceName = null; + + public string sourceName + { get => _sourceName; + set => ChangeSourceName(value); } + + void ChangeSourceName(string name) + { + // Receiver refresh on source changes + if (_sourceName == name) return; + _sourceName = name; + ReleaseReceiver(); + } + + #endregion + + #region Destination settings + + [SerializeField] RenderTexture _targetTexture = null; + + public RenderTexture targetTexture + { get => _targetTexture; + set => _targetTexture = value; } + + [SerializeField] Renderer _targetRenderer = null; + + public Renderer targetRenderer + { get => _targetRenderer; + set => _targetRenderer = value; } + + [SerializeField] string _targetMaterialProperty = null; + + public string targetMaterialProperty + { get => _targetMaterialProperty; + set => _targetMaterialProperty = value; } + + #endregion + + #region Runtime property + + public RenderTexture receivedTexture + => _buffer != null ? _buffer : _targetTexture; + + #endregion + + #region Resource asset reference + + [SerializeField, HideInInspector] SpoutResources _resources = null; + + public void SetResources(SpoutResources resources) + => _resources = resources; + + #endregion +} + +} // namespace Klak.Spout diff --git a/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver_Properties.cs.meta b/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver_Properties.cs.meta new file mode 100644 index 0000000..851fddc --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/SpoutReceiver_Properties.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 127d037496fc9b34da364f6785a8b896 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/Runtime/SpoutResources.cs b/Packages/jp.keijiro.klak.spout/Runtime/SpoutResources.cs new file mode 100644 index 0000000..cec2097 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/SpoutResources.cs @@ -0,0 +1,17 @@ +using UnityEngine; + +namespace Klak.Spout { + +// +// Spout "Resources" class +// This is used to provide a reference to the shader asset. +// + +//[CreateAssetMenu(fileName = "SpoutResources", +// menuName = "ScriptableObjects/Klak/Spout/Spout Resources")] +public sealed class SpoutResources : ScriptableObject +{ + public Shader blitShader; +} + +} // namespace Klak.Spout diff --git a/Assets/TestCards/Runtime/TestOverlay.cs.meta b/Packages/jp.keijiro.klak.spout/Runtime/SpoutResources.cs.meta similarity index 52% rename from Assets/TestCards/Runtime/TestOverlay.cs.meta rename to Packages/jp.keijiro.klak.spout/Runtime/SpoutResources.cs.meta index 0140f55..c8ef7d1 100644 --- a/Assets/TestCards/Runtime/TestOverlay.cs.meta +++ b/Packages/jp.keijiro.klak.spout/Runtime/SpoutResources.cs.meta @@ -1,11 +1,10 @@ fileFormatVersion: 2 -guid: 09e531f25570e604d8fb78aee77125a9 -timeCreated: 1490422325 -licenseType: Pro +guid: 12527eb854f97c84cac3b04dc699db09 MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: - - _shader: {fileID: 4800000, guid: bc6a0edaa182a35449d12a1445ba38db, type: 3} + - blitShader: {fileID: 4800000, guid: eb56c59e60b76874692c486f3bdd860d, type: 3} executionOrder: 0 icon: {instanceID: 0} userData: diff --git a/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender.cs b/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender.cs index 6cdb18b..8f4cf14 100644 --- a/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender.cs +++ b/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender.cs @@ -1,182 +1,133 @@ -// KlakSpout - Spout video frame sharing plugin for Unity -// https://github.com/keijiro/KlakSpout - using UnityEngine; using UnityEngine.Rendering; -namespace Klak.Spout +namespace Klak.Spout { + +// +// Spout sender class (main implementation) +// +[ExecuteInEditMode] +[AddComponentMenu("Klak/Spout/Spout Sender")] +public sealed partial class SpoutSender : MonoBehaviour { - [ExecuteInEditMode] - [AddComponentMenu("Klak/Spout/Spout Sender")] - public sealed class SpoutSender : MonoBehaviour - { - #region Source settings + #region Sender plugin object - [SerializeField] RenderTexture _sourceTexture; + Sender _sender; - public RenderTexture sourceTexture { - get { return _sourceTexture; } - set { _sourceTexture = value; } - } + void ReleaseSender() + { + _sender?.Dispose(); + _sender = null; + } + + #endregion - #endregion + #region Buffer texture object - #region Format options + RenderTexture _buffer; - [SerializeField] bool _alphaSupport; + void PrepareBuffer(int width, int height) + { + // If the buffer exists but has wrong dimensions, destroy it first. + if (_buffer != null && + (_buffer.width != width || _buffer.height != height)) + { + ReleaseSender(); + Utility.Destroy(_buffer); + _buffer = null; + } - public bool alphaSupport { - get { return _alphaSupport; } - set { _alphaSupport = value; } + // Create a buffer if it hasn't been allocated yet. + if (_buffer == null && width > 0 && height > 0) + { + _buffer = new RenderTexture(width, height, 0); + _buffer.hideFlags = HideFlags.DontSave; + _buffer.Create(); } + } + + #endregion - #endregion + #region Camera capture (SRP) - #region Private members + Camera _attachedCamera; - System.IntPtr _plugin; - CommandBuffer _commandBuffer; - int _middlemanRenderTextureID; - Material _blitMaterial; + void OnCameraCapture(RenderTargetIdentifier source, CommandBuffer cb) + { + if (_attachedCamera == null) return; + Blitter.Blit(_resources, cb, source, _buffer, _keepAlpha); + } - // This is a hack to avoid trashing Spout on source resize (ex window - // resize). Could be done through spoutSenderNames::UpdateSender on - // the native plugin side instead to eliminate this hack and the - // associated delay. - const int _refreshDelay = 20; - int _refreshDelayCounter = _refreshDelay; + void PrepareCameraCapture(Camera target) + { + // If it has been attached to another camera, detach it first. + if (_attachedCamera != null && _attachedCamera != target) + { + #if KLAK_SPOUT_HAS_SRP + CameraCaptureBridge + .RemoveCaptureAction(_attachedCamera, OnCameraCapture); + #endif + _attachedCamera = null; + } - void SendRenderTexture(RenderTexture source) + // Attach to the target if it hasn't been attached yet. + if (_attachedCamera == null && target != null) { - // Handle source texture resize - if (_plugin != System.IntPtr.Zero && PluginEntry.IsReady(_plugin)) - { - var width = PluginEntry.GetTextureWidth(_plugin); - var height = PluginEntry.GetTextureHeight(_plugin); - - if (width != source.width || height != source.height) - { - Util.IssuePluginEvent(PluginEntry.Event.Dispose, _plugin); - _plugin = System.IntPtr.Zero; - _refreshDelayCounter = 0; - } - } - - // Hack - _refreshDelayCounter++; - if (_refreshDelayCounter >= 10000) - _refreshDelayCounter = _refreshDelay; // Avoid overflow - if (_refreshDelayCounter <= _refreshDelay) - return; - - // Plugin lazy initialization - if (_plugin == System.IntPtr.Zero) - { - _plugin = PluginEntry.CreateSender(name, source.width, source.height); - if (_plugin == System.IntPtr.Zero) return; // Spout may not be ready. - } - - if (_plugin != System.IntPtr.Zero) - { - // Blit shader lazy initialization - if (_blitMaterial == null) - { - _blitMaterial = new Material(Shader.Find("Hidden/Spout/Blit")); - _blitMaterial.hideFlags = HideFlags.DontSave; - } - - // Blit shader parameters - _blitMaterial.SetFloat("_ClearAlpha", _alphaSupport ? 0 : 1); - - // Commandbuffer lazy initialization - if (_commandBuffer == null) - { - _commandBuffer = new CommandBuffer(); - _commandBuffer.name = name; - - _middlemanRenderTextureID = Shader.PropertyToID("_SpoutSenderRT"); - } - - Util.UpdateWrapCache(Time.frameCount, _commandBuffer); - - // We can't directly blit to the shared texture (as it lacks - // render buffer functionality), so we allocate a render - // texture as a middleman, blit the source to it, then - // pass it to the native plugin. - _commandBuffer.GetTemporaryRT( - _middlemanRenderTextureID, source.width, source.height, 0, - FilterMode.Point, - RenderTextureFormat.ARGB32 // We only support this sender format on the native plugin side - ); - _commandBuffer.Blit(source, _middlemanRenderTextureID, _blitMaterial, 0); - - // Set target sender on the native plugin side - _commandBuffer.IssuePluginEventAndData( - PluginEntry.GetRenderEventFunc(), - (int)PluginEntry.Event.SetTargetObject, - _plugin - ); - - // Performs CopyTexture of the middleman RT to the DX shared texture. - // On DX12, the middleman RT is first wrapped into a DX11 texture, - // since DX shared textures are DX11/DX9 textures that we interface with - // using the D3D11on12 feature. - // - // IssuePluginCustomBlit is used instead of IssuePluginEventAndData as - // there's no other method to pass a temporary RT into the native side. - // If we had a pointer to the temporary RT's native texture then - // IssuePluginEventAndData could have been used. - _commandBuffer.IssuePluginCustomBlit( - PluginEntry.GetCustomBlitFunc(), - (int)PluginEntry.BlitCommand.Send, - _middlemanRenderTextureID, - BuiltinRenderTextureType.CurrentActive, // Actually unused on the native plugin side - 0, - 0 - ); - - _commandBuffer.ReleaseTemporaryRT(_middlemanRenderTextureID); - - // Schedule to run on the render thread - Graphics.ExecuteCommandBuffer(_commandBuffer); - _commandBuffer.Clear(); - } + #if KLAK_SPOUT_HAS_SRP + CameraCaptureBridge + .AddCaptureAction(target, OnCameraCapture); + #endif + _attachedCamera = target; } + } - #endregion + #endregion - #region MonoBehaviour implementation + #region MonoBehaviour implementation - void OnDisable() - { - if (_plugin != System.IntPtr.Zero) - { - Util.IssuePluginEvent(PluginEntry.Event.Dispose, _plugin); - _plugin = System.IntPtr.Zero; - } - } + void OnDisable() + { + ReleaseSender(); + PrepareBuffer(0, 0); + PrepareCameraCapture(null); + } - void OnDestroy() + void Update() + { + // GameView capture mode + if (_captureMethod == CaptureMethod.GameView) { - Util.Destroy(_blitMaterial); + PrepareBuffer(Screen.width, Screen.height); + var temp = RenderTexture.GetTemporary(Screen.width, Screen.height, 0); + ScreenCapture.CaptureScreenshotIntoRenderTexture(temp); + Blitter.BlitVFlip(_resources, temp, _buffer, _keepAlpha); + RenderTexture.ReleaseTemporary(temp); } - void Update() + // Texture capture mode + if (_captureMethod == CaptureMethod.Texture) { - // Render texture mode update - if (GetComponent() == null && _sourceTexture != null) - SendRenderTexture(_sourceTexture); + if (_sourceTexture == null) return; + PrepareBuffer(_sourceTexture.width, _sourceTexture.height); + Blitter.Blit(_resources, _sourceTexture, _buffer, _keepAlpha); } - void OnRenderImage(RenderTexture source, RenderTexture destination) + // Camera capture mode + if (_captureMethod == CaptureMethod.Camera) { - // Camera capture mode update - SendRenderTexture(source); - - // Thru blit - Graphics.Blit(source, destination); + PrepareCameraCapture(_sourceCamera); + if (_sourceCamera == null) return; + PrepareBuffer(_sourceCamera.pixelWidth, _sourceCamera.pixelHeight); } - #endregion + // Sender lazy initialization + if (_sender == null) _sender = new Sender(_spoutName, _buffer); + + // Sender plugin-side update + _sender.Update(); } + + #endregion } + +} // namespace Klak.Spout diff --git a/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender.cs.meta b/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender.cs.meta index 2ebfc50..9d2aede 100644 --- a/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender.cs.meta +++ b/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender.cs.meta @@ -1,10 +1,12 @@ fileFormatVersion: 2 guid: 45099d624c1e6c14e9514f4e5ea1ed9c -timeCreated: 1491793847 -licenseType: Pro MonoImporter: + externalObjects: {} serializedVersion: 2 - defaultReferences: [] + defaultReferences: + - _sourceCamera: {instanceID: 0} + - _sourceTexture: {instanceID: 0} + - _resources: {fileID: 11400000, guid: f449ebbe2051c2e4d993eaa773a410de, type: 2} executionOrder: 0 icon: {instanceID: 0} userData: diff --git a/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender_Properties.cs b/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender_Properties.cs new file mode 100644 index 0000000..89eb039 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender_Properties.cs @@ -0,0 +1,73 @@ +using UnityEngine; + +namespace Klak.Spout { + +// Sender capture methods +public enum CaptureMethod { GameView, Camera, Texture } + +// +// Spout sender class (properties) +// +partial class SpoutSender +{ + #region Spout source + + [SerializeField] string _spoutName = "Spout Sender"; + + public string spoutName + { get => _spoutName; + set => ChangeSpoutName(value); } + + void ChangeSpoutName(string name) + { + // Sender refresh on renaming + if (_spoutName == name) return; + _spoutName = name; + ReleaseSender(); + } + + #endregion + + #region Format option + + [SerializeField] bool _keepAlpha = false; + + public bool keepAlpha + { get => _keepAlpha; + set => _keepAlpha = value; } + + #endregion + + #region Capture target + + [SerializeField] CaptureMethod _captureMethod = CaptureMethod.GameView; + + public CaptureMethod captureMethod + { get => _captureMethod; + set => _captureMethod = value; } + + [SerializeField] Camera _sourceCamera = null; + + public Camera sourceCamera + { get => _sourceCamera; + set => _sourceCamera = value; } + + [SerializeField] Texture _sourceTexture = null; + + public Texture sourceTexture + { get => _sourceTexture; + set => _sourceTexture = value; } + + #endregion + + #region Resource asset reference + + [SerializeField, HideInInspector] SpoutResources _resources = null; + + public void SetResources(SpoutResources resources) + => _resources = resources; + + #endregion +} + +} // namespace Klak.Spout diff --git a/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender_Properties.cs.meta b/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender_Properties.cs.meta new file mode 100644 index 0000000..b8baad2 --- /dev/null +++ b/Packages/jp.keijiro.klak.spout/Runtime/SpoutSender_Properties.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: abd4b9ae3ca6fa14298417851dced4cc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/jp.keijiro.klak.spout/package.json b/Packages/jp.keijiro.klak.spout/package.json index bb996fa..8f7c797 100644 --- a/Packages/jp.keijiro.klak.spout/package.json +++ b/Packages/jp.keijiro.klak.spout/package.json @@ -1,12 +1,13 @@ { "author": "Keijiro Takahashi", + "dependencies": { "com.unity.modules.screencapture": "1.0.0" }, "description": "Cross-process texture sharing plugin (Spout protocol)", "displayName": "KlakSpout", "keywords": [ "unity" ], - "license": "MIT", + "license": "Unlicense", "name": "jp.keijiro.klak.spout", "repository": "github:keijiro/KlakSpout", - "unity": "2019.3", + "unity": "2020.3", "unityRelease": "1f1", - "version": "1.0.0" + "version": "2.0.0" } diff --git a/Packages/manifest.json b/Packages/manifest.json index 35ebb1f..322e2f5 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -1,6 +1,6 @@ { "dependencies": { - "com.unity.modules.particlesystem": "1.0.0", - "com.unity.ugui": "1.0.0" + "com.unity.render-pipelines.universal": "10.5.1", + "com.unity.modules.physics": "1.0.0" } } diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json new file mode 100644 index 0000000..2b865f6 --- /dev/null +++ b/Packages/packages-lock.json @@ -0,0 +1,97 @@ +{ + "dependencies": { + "com.unity.mathematics": { + "version": "1.1.0", + "depth": 1, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.render-pipelines.core": { + "version": "10.5.1", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.ugui": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.render-pipelines.universal": { + "version": "10.5.1", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.mathematics": "1.1.0", + "com.unity.render-pipelines.core": "10.5.1", + "com.unity.shadergraph": "10.5.1" + }, + "url": "https://packages.unity.com" + }, + "com.unity.searcher": { + "version": "4.3.2", + "depth": 2, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.shadergraph": { + "version": "10.5.1", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.render-pipelines.core": "10.5.1", + "com.unity.searcher": "4.3.2" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ugui": { + "version": "1.0.0", + "depth": 2, + "source": "builtin", + "dependencies": { + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.imgui": "1.0.0" + } + }, + "jp.keijiro.klak.spout": { + "version": "file:jp.keijiro.klak.spout", + "depth": 0, + "source": "embedded", + "dependencies": { + "com.unity.modules.screencapture": "1.0.0" + } + }, + "com.unity.modules.imageconversion": { + "version": "1.0.0", + "depth": 2, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.imgui": { + "version": "1.0.0", + "depth": 3, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.physics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.screencapture": { + "version": "1.0.0", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.ui": { + "version": "1.0.0", + "depth": 3, + "source": "builtin", + "dependencies": {} + } + } +} diff --git a/Plugin/CMakeLists.txt b/Plugin/CMakeLists.txt deleted file mode 100644 index bc3fe2c..0000000 --- a/Plugin/CMakeLists.txt +++ /dev/null @@ -1,95 +0,0 @@ -cmake_minimum_required(VERSION 3.15) - -project(KlakSpout) - -set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/../Packages/jp.keijiro.klak.spout/Plugin CACHE PATH "KlakSpout DLL installation directory" FORCE) - -set(Sources - Unity/IUnityGraphics.h - Unity/IUnityGraphicsD3D11.h - Unity/IUnityGraphicsD3D12.h - Unity/IUnityInterface.h - Unity/IUnityProfiler.h - Unity/IUnityRenderingExtensions.h - - Spout/SpoutGL/Spout.h - Spout/SpoutGL/SpoutCommon.h - Spout/SpoutGL/SpoutCopy.h - Spout/SpoutGL/SpoutDirectX.h - Spout/SpoutGL/SpoutFrameCount.h - Spout/SpoutGL/SpoutGL.h - Spout/SpoutGL/SpoutGLextensions.h - Spout/SpoutGL/SpoutReceiver.h - Spout/SpoutGL/SpoutSender.h - Spout/SpoutGL/SpoutSenderNames.h - Spout/SpoutGL/SpoutSharedMemory.h - Spout/SpoutGL/SpoutUtils.h - Spout/SpoutGL/Spout.cpp - Spout/SpoutGL/SpoutCopy.cpp - Spout/SpoutGL/SpoutDirectX.cpp - Spout/SpoutGL/SpoutFrameCount.cpp - Spout/SpoutGL/SpoutGL.cpp - Spout/SpoutGL/SpoutGLextensions.cpp - Spout/SpoutGL/SpoutReceiver.cpp - Spout/SpoutGL/SpoutSender.cpp - Spout/SpoutGL/SpoutSenderNames.cpp - Spout/SpoutGL/SpoutSharedMemory.cpp - Spout/SpoutGL/SpoutUtils.cpp - - # Spout/SpoutDirectX/SpoutDX/SpoutDX.h - # Spout/SpoutDirectX/SpoutDX/SpoutDX.cpp - # Spout/SpoutDirectX/SpoutDX/SpoutDX12/SpoutDX12.h - # Spout/SpoutDirectX/SpoutDX/SpoutDX12/SpoutDX12.cpp - - KlakSpout/KlakSpoutGlobals.h - KlakSpout/KlakSpoutSharedObject.h - KlakSpout/KlakSpout.cpp -) - -set(Link - opengl32 - kernel32 - user32 - gdi32 - winspool - comdlg32 - advapi32 - shell32 - ole32 - oleaut32 - uuid - odbc32 - odbccp32 - d3d9 - d3d11 - d3d12 - DXGI - shlwapi - Version -) - -add_library(KlakSpout SHARED ${Sources} ) -target_link_libraries(KlakSpout PRIVATE ${Link} ) -target_compile_definitions(KlakSpout PRIVATE SPOUT_BUILD_DLL) - -target_compile_definitions(KlakSpout PRIVATE $<$:KLAKSPOUT_DEBUG>) -target_compile_definitions(KlakSpout PRIVATE $<$:KLAKSPOUT_RELEASE>) - -# Enable all compiler warnings -if(MSVC) - target_compile_options(KlakSpout PRIVATE /W4) -else() - target_compile_options(KlakSpout PRIVATE -Wall) -endif() - -# From Spout's CMake -if(NOT MSVC) - target_compile_options(KlakSpout PRIVATE -msse4) -endif() - -# 32 or 64 bit library -if(CMAKE_SIZEOF_VOID_P EQUAL 4) - install(TARGETS KlakSpout RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/x86) -else() - install(TARGETS KlakSpout RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/x86_64) -endif() diff --git a/Plugin/Common.h b/Plugin/Common.h new file mode 100644 index 0000000..b8d1751 --- /dev/null +++ b/Plugin/Common.h @@ -0,0 +1,23 @@ +#pragma once + +#include +#include +#include +#include +#include // for ComPtr +#include "Spout/SpoutSenderNames.h" +#include "Unity/IUnityGraphics.h" +#include "Unity/IUnityGraphicsD3D11.h" +#include "Unity/IUnityGraphicsD3D12.h" + +namespace KlakSpout { + +namespace WRL = Microsoft::WRL; // for ComPtr + +static inline void LogError + (const char* label, const std::string& name, unsigned int code) +{ + std::printf("KlakSpout error: %s (%s) - %x\n", label, name.c_str(), code); +} + +} // namespace KlakSpout diff --git a/Plugin/Event.h b/Plugin/Event.h new file mode 100644 index 0000000..558576c --- /dev/null +++ b/Plugin/Event.h @@ -0,0 +1,31 @@ +#pragma once + +#include "Common.h" +#include "Sender.h" +#include "Receiver.h" + +namespace KlakSpout { + +// Render event IDs +// Should match with Klak.Spout.EventID (Event.cs) +enum EventID +{ + event_updateSender, + event_updateReceiver, + event_closeSender, + event_closeReceiver +}; + +// Render event attachment data structure +// Should match with Klak.Spout.EventData (Event.cs) +struct EventData +{ + union + { + Sender* sender; + Receiver* receiver; + }; + IUnknown* texture; // ID3D11Texture or ID3D12Resource +}; + +} // namespace KlakSpout diff --git a/Plugin/HowToBuild.txt b/Plugin/HowToBuild.txt index 5c41c0d..0c507b9 100644 --- a/Plugin/HowToBuild.txt +++ b/Plugin/HowToBuild.txt @@ -1,16 +1,4 @@ -Using CMake 3.15 or later. - -For 32-bit build: -cmake -S . -B build32 -DCMAKE_BUILD_TYPE=Release -A Win32 -cmake --build build32 --target install --config "Release" - -For 64-bit build: -cmake -S . -B build64 -DCMAKE_BUILD_TYPE=Release -A x64 -cmake --build build64 --target install --config "Release" - -These correctly set the build type (Release/Debug) and architecture (32/64 bit) -for multi-configuration generators (ex Visual Studio) and single-configuration -generators (ex Makefiles) alike. - -If using an IDE such as Visual Studio Code, make sure the desired configs are -also set (often Debug is the default build type). +The Makefile in this directory uses Mingw-w64 to build the plugin. See the +following repository for further instructions: + +https://github.com/keijiro/UnityDX12MingwTest diff --git a/Plugin/KlakSpout/KlakSpout.cpp b/Plugin/KlakSpout/KlakSpout.cpp deleted file mode 100644 index aabf89d..0000000 --- a/Plugin/KlakSpout/KlakSpout.cpp +++ /dev/null @@ -1,401 +0,0 @@ -#include "KlakSpoutSharedObject.h" -#include "../Unity/IUnityGraphics.h" -#include "../Unity/IUnityGraphicsD3D11.h" -#include "../Unity/IUnityGraphicsD3D12.h" -#include "../Unity/IUnityRenderingExtensions.h" -#include -#include -#include - -namespace -{ - // Low-level native plugin interface - IUnityInterfaces* unity_; - - // Temporary storage for shared Spout object list - std::set shared_object_names_; - - // Local mutex object used to prevent race conditions between the main - // thread and the render thread. This should be locked at the following - // points: - // - OnRenderEvent - // - OnCustomBlit - // - In general, plugin functions that call SharedObject or Spout API functions. - // - // Some Spout API functions are already thread-safe internally. - std::mutex lock_; - - #define MUTEX_LOCK PROFILE_START(markerMutex); std::lock_guard guard(lock_); PROFILE_END(markerMutex); - - // The default event config asks Unity to do a lot of syncs and flushes. - // We need to configure the event to do the minimum work required for our use case. - UnityD3D12PluginEventConfig custom_blit_event_config_; - - // Set by the user before calling OnCustomBlit, which will apply to the set object - klakspout::SharedObject* target_shared_object_ = nullptr; - - // Unity device event callback - void UNITY_INTERFACE_API OnGraphicsDeviceEvent(UnityGfxDeviceEventType event_type) - { - assert(unity_); - - // Do nothing if it's not the D3D11 or D3D12 renderer. - UnityGfxRenderer renderer = unity_->Get()->GetRenderer(); - if (renderer != kUnityGfxRendererD3D11 && renderer != kUnityGfxRendererD3D12) return; - - DEBUG_LOG("OnGraphicsDeviceEvent (%d)", event_type); - - auto& g = klakspout::Globals::get(); - - if (event_type == kUnityGfxDeviceEventInitialize) - { - // Initialize the Spout global objects. - g.spout_ = std::make_unique(); - g.sender_names_ = std::make_unique(); - - // Enable Spout's debug log in addition to our own -#ifdef KLAKSPOUT_DEBUG - OpenSpoutConsole(); // Console only for debugging - EnableSpoutLog(); // Log to console -#endif - - if (renderer == kUnityGfxRendererD3D11) - { - g.renderer_ = klakspout::Globals::Renderer::DX11; - - g.d3d11_interface_ = unity_->Get(); - if (!g.d3d11_interface_) - DEBUG_LOG("Couldn't get d3d11 interface"); - - g.d3d11_ = g.d3d11_interface_->GetDevice(); - if (!g.d3d11_) - DEBUG_LOG("Couldn't get d3d11 device"); - - g.d3d11_->GetImmediateContext(&g.d3d11Context_); - if (!g.d3d11Context_) - DEBUG_LOG("Couldn't get d3d11 context"); - } - else if (renderer == kUnityGfxRendererD3D12) - { - g.renderer_ = klakspout::Globals::Renderer::DX12; - - g.d3d12_interface_ = unity_->Get(); - if (!g.d3d12_interface_) - DEBUG_LOG("Couldn't get d3d12 interface"); - - g.d3d12_ = g.d3d12_interface_->GetDevice(); - if (!g.d3d12_) - DEBUG_LOG("Couldn't get d3d12 device"); - - UINT flags = D3D11_CREATE_DEVICE_BGRA_SUPPORT; -#ifdef KLAKSPOUT_DEBUG - // Enable debug layer, can slow down performance - flags |= D3D11_CREATE_DEVICE_DEBUG; -#endif - - // Create 11on12 device - IUnknown* queue = static_cast(g.d3d12_interface_->GetCommandQueue()); - HRESULT hr = D3D11On12CreateDevice( - g.d3d12_, - flags, - nullptr, - 0, - &queue, - 1, - 0, - &g.d3d11_, - &g.d3d11Context_, - nullptr - ); - - if (FAILED(hr)) - DEBUG_LOG("Failed to create 11on12 device"); - - // Grab interface to the d3d11on12 device from the newly created d3d11 device - hr = g.d3d11_->QueryInterface(__uuidof(ID3D11On12Device), (void**)&g.d3d11on12_); - if (FAILED(hr)) - DEBUG_LOG("Failed to query 11on12 device"); - - custom_blit_event_config_.flags = 0; - custom_blit_event_config_.ensureActiveRenderTextureIsBound = false; - custom_blit_event_config_.graphicsQueueAccess = kUnityD3D12GraphicsQueueAccess_Allow; - g.d3d12_interface_->ConfigureEvent(kUnityRenderingExtEventCustomBlit, &custom_blit_event_config_); - } - } - else if (event_type == kUnityGfxDeviceEventShutdown) - { - // Invalidate state - g.d3d11_ = nullptr; - g.d3d11Context_ = nullptr; - g.d3d11on12_ = nullptr; - g.d3d12_ = nullptr; - - // Finalize the Spout globals. - g.spout_.reset(); - g.sender_names_.reset(); - } - } - - // Unity render event callbacks - void UNITY_INTERFACE_API OnRenderEvent(int event_id, void* data) - { - // Do nothing if the D3D11 interface is not available. This only - // happens on Editor. It may leak some resoruces but we can't do - // anything about them. - auto& g = klakspout::Globals::get(); - if (!g.isReady()) return; - - MUTEX_LOCK; - auto plugin_event = static_cast(event_id); - - if (plugin_event == klakspout::Globals::PluginEvent::Dispose) - { - PROFILE_SCOPE(markerEventDispose); - - auto* pobj = reinterpret_cast(data); - delete pobj; - } - else if (plugin_event == klakspout::Globals::PluginEvent::SetTargetObject) - { - PROFILE_SCOPE(markerEventTargetObject); - - auto* pobj = reinterpret_cast(data); - target_shared_object_ = pobj; - - if (!pobj->isActive()) - pobj->activate(); - } - else if (plugin_event == klakspout::Globals::PluginEvent::UpdateWrapCache) - { - // The wrap cache is only necessary for DX12 - if (g.renderer_ != klakspout::Globals::Renderer::DX12) - return; - - PROFILE_SCOPE(markerEventUpdateWrapCache); - - // Evicts resources that we haven't seen in a while. - // - // This is necessary because of some unfortunate circumstances: - // * We need to maintain a DX11 mirror of every DX12 resource we use (for D3D11on12) - // * Creating a mirror is expensive - // * Want to support temporary RTs whose lifetimes we don't know about - - for (auto it = g.wrap_cache_.begin(); it != g.wrap_cache_.end(); ) - { - int frame_age = g.frame_count_ - it->second.last_usage_frame; - - if (frame_age >= g.cache_eviction_limit_) - { - DEBUG_LOG( - "Evicted resource (%p) at frame age (%d), cache size: %d", - it->first, - frame_age, - static_cast(g.wrap_cache_.size()) - ); - - it->second.wrapped_resource->Release(); - it->second.wrapped_resource = nullptr; - it = g.wrap_cache_.erase(it); - } - else - ++it; - } - - g.frame_count_++; - } - } - - void UNITY_INTERFACE_API OnCustomBlit(int event_id, void* data) - { - if (event_id == kUnityRenderingExtEventCustomBlit) - { - if (!target_shared_object_->isActive()) - return; - - auto* params = reinterpret_cast(data); - auto command = static_cast(params->command); - - if (command == klakspout::Globals::PluginBlitCommand::Send) - { - PROFILE_SCOPE(markerSendTexture); - - auto& g = klakspout::Globals::get(); - if (!g.isReady()) return; - MUTEX_LOCK; - - if (g.d3d11_interface_ != nullptr) - { - void* tex = g.d3d11_interface_->TextureFromNativeTexture(params->source); - target_shared_object_->sendTexture(tex); - } - else if (g.d3d12_interface_ != nullptr) - { - void* tex = g.d3d12_interface_->TextureFromNativeTexture(params->source); - target_shared_object_->sendTexture(tex); - } - } - else if (command == klakspout::Globals::PluginBlitCommand::Receive) - { - PROFILE_SCOPE(markerReceiveTexture); - - auto& g = klakspout::Globals::get(); - if (!g.isReady()) return; - MUTEX_LOCK; - - if (g.d3d11_interface_ != nullptr) - { - void* tex = g.d3d11_interface_->TextureFromNativeTexture(params->source); - target_shared_object_->receiveTexture(tex); - } - else if (g.d3d12_interface_ != nullptr) - { - void* tex = g.d3d12_interface_->TextureFromNativeTexture(params->source); - target_shared_object_->receiveTexture(tex); - } - } - } - } -} - -// -// Low-level native plugin implementation -// - -extern "C" void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API UnityPluginLoad(IUnityInterfaces* interfaces) -{ - unity_ = interfaces; - - // Replace stdout with a new console for debugging. -#if defined(KLAKSPOUT_DEBUG) - FILE * pConsole; - AllocConsole(); - freopen_s(&pConsole, "CONOUT$", "wb", stdout); -#endif - - klakspout::unityProfiler = unity_->Get(); - if (klakspout::unityProfiler != nullptr) - { - klakspout::unityProfilerIsAvailable = klakspout::unityProfiler->IsAvailable() != 0; - klakspout::unityProfiler->CreateMarker(&klakspout::markerEventDispose, "KlakSpout/Dispose", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerEventTargetObject, "KlakSpout/TargetObject", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerEventUpdateWrapCache, "KlakSpout/UpdateWrapCache", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerSendTexture, "KlakSpout/SendTexture", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerReceiveTexture, "KlakSpout/ReceiveTexture", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerGetSenderInfo, "KlakSpout/GetSenderInfo", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerScanSharedObjects, "KlakSpout/ScanSharedObjects", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerTextureCopy, "KlakSpout/SharedObject/TextureCopy", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerTextureWrap, "KlakSpout/SharedObject/TextureWrap", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerTextureWrappedActions, "KlakSpout/SharedObject/TextureWrappedActions", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerFlush, "KlakSpout/SharedObject/Flush", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerCheckSender, "KlakSpout/SharedObject/CheckSender", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerCreateSharedTexture, "KlakSpout/SharedObject/CreateSharedTexture", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerCreateSRV, "KlakSpout/SharedObject/CreateSRV", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerCreateSender, "KlakSpout/SharedObject/CreateSender", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerOpenSharedTexture, "KlakSpout/SharedObject/OpenSharedTexture", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - klakspout::unityProfiler->CreateMarker(&klakspout::markerMutex, "KlakSpout/Mutex", kUnityProfilerCategoryRender, kUnityProfilerMarkerFlagDefault, 0); - } - - // Register the custom callback, then manually invoke the initialization event once. - unity_->Get()->RegisterDeviceEventCallback(OnGraphicsDeviceEvent); - OnGraphicsDeviceEvent(kUnityGfxDeviceEventInitialize); -} - -extern "C" void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API UnityPluginUnload() -{ - // Unregister the custom callback. - unity_->Get()->UnregisterDeviceEventCallback(OnGraphicsDeviceEvent); - - unity_ = nullptr; -} - -extern "C" UnityRenderingEventAndData UNITY_INTERFACE_EXPORT GetRenderEventFunc() -{ - return OnRenderEvent; -} - -extern "C" UnityRenderingEventAndData UNITY_INTERFACE_EXPORT GetCustomBlitFunc() -{ - return OnCustomBlit; -} - -// -// Native plugin implementation -// - -extern "C" void UNITY_INTERFACE_EXPORT * CreateSender(const char* name, int width, int height) -{ - if (!klakspout::Globals::get().isReady()) return nullptr; - return new klakspout::SharedObject(klakspout::SharedObject::Type::sender, name != nullptr ? name : "", width, height); -} - -extern "C" void UNITY_INTERFACE_EXPORT * CreateReceiver(const char* name) -{ - if (!klakspout::Globals::get().isReady()) return nullptr; - return new klakspout::SharedObject(klakspout::SharedObject::Type::receiver, name != nullptr ? name : ""); -} - -extern "C" int UNITY_INTERFACE_EXPORT GetTextureWidth(void* ptr) -{ - return reinterpret_cast(ptr)->width_; -} - -extern "C" int UNITY_INTERFACE_EXPORT GetTextureHeight(void* ptr) -{ - return reinterpret_cast(ptr)->height_; -} - -extern "C" int UNITY_INTERFACE_EXPORT GetTextureFormat(void* ptr) -{ - return static_cast(reinterpret_cast(ptr)->format_); -} - -extern "C" bool UNITY_INTERFACE_EXPORT IsReady(void* ptr) -{ - return reinterpret_cast(ptr)->isActive(); -} - -extern "C" void UNITY_INTERFACE_EXPORT GetSenderInfo(const char* name, klakspout::SenderInfo* out_info) -{ - PROFILE_SCOPE(markerGetSenderInfo); - - auto& g = klakspout::Globals::get(); - - unsigned int width, height; - HANDLE handle; - DWORD format; - auto found = g.sender_names_->CheckSender(name, width, height, handle, format); - - out_info->width_ = static_cast(width); - out_info->height_ = static_cast(height); - out_info->format_ = static_cast(format); - out_info->exists_ = found; -} - -extern "C" int UNITY_INTERFACE_EXPORT ScanSharedObjects() -{ - PROFILE_SCOPE(markerScanSharedObjects); - - auto& g = klakspout::Globals::get(); - if (!g.isReady()) return 0; - - shared_object_names_.clear(); - g.sender_names_->GetSenderNames(&shared_object_names_); - - return static_cast(shared_object_names_.size()); -} - -extern "C" const void UNITY_INTERFACE_EXPORT * GetSharedObjectName(int index) -{ - auto count = 0; - for (auto& name : shared_object_names_) - { - if (count++ == index) - { - // Return the name via a static string object. - static std::string temp; - temp = name; - return temp.c_str(); - } - } - return nullptr; -} diff --git a/Plugin/KlakSpout/KlakSpoutGlobals.h b/Plugin/KlakSpout/KlakSpoutGlobals.h deleted file mode 100644 index e3fcd9d..0000000 --- a/Plugin/KlakSpout/KlakSpoutGlobals.h +++ /dev/null @@ -1,128 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include -#include -#include "../Spout/SpoutGL/SpoutDirectX.h" -#include "../Spout/SpoutGL/SpoutSenderNames.h" -#include "../Unity/IUnityGraphicsD3D11.h" -#include "../Unity/IUnityGraphicsD3D12.h" -#include "../Unity/IUnityProfiler.h" - -// Debug logging macro -#if defined(KLAKSPOUT_DEBUG) -#define DEBUG_LOG(fmt, ...) std::printf("KlakSpout: "#fmt"\n", __VA_ARGS__) -#else -#define DEBUG_LOG(fmt, ...) do {} while (0) -#endif - -// Profiling macros -#define PROFILE_START(marker) if (klakspout::unityProfilerIsAvailable) klakspout::unityProfiler->BeginSample(klakspout::marker) -#define PROFILE_END(marker) if (klakspout::unityProfilerIsAvailable) klakspout::unityProfiler->EndSample(klakspout::marker) -#define PROFILE_SCOPE(marker) klakspout::ScopedMarker(klakspout::marker, klakspout::unityProfiler, klakspout::unityProfilerIsAvailable) - -namespace klakspout -{ - static IUnityProfiler* unityProfiler = nullptr; - static bool unityProfilerIsAvailable = false; - static const UnityProfilerMarkerDesc* markerEventDispose = nullptr; - static const UnityProfilerMarkerDesc* markerEventTargetObject = nullptr; - static const UnityProfilerMarkerDesc* markerEventUpdateWrapCache = nullptr; - static const UnityProfilerMarkerDesc* markerSendTexture = nullptr; - static const UnityProfilerMarkerDesc* markerReceiveTexture = nullptr; - static const UnityProfilerMarkerDesc* markerGetSenderInfo = nullptr; - static const UnityProfilerMarkerDesc* markerScanSharedObjects = nullptr; - static const UnityProfilerMarkerDesc* markerTextureCopy = nullptr; - static const UnityProfilerMarkerDesc* markerTextureWrap = nullptr; - static const UnityProfilerMarkerDesc* markerTextureWrappedActions = nullptr; - static const UnityProfilerMarkerDesc* markerFlush = nullptr; - static const UnityProfilerMarkerDesc* markerCheckSender = nullptr; - static const UnityProfilerMarkerDesc* markerCreateSharedTexture = nullptr; - static const UnityProfilerMarkerDesc* markerCreateSRV = nullptr; - static const UnityProfilerMarkerDesc* markerCreateSender = nullptr; - static const UnityProfilerMarkerDesc* markerOpenSharedTexture = nullptr; - static const UnityProfilerMarkerDesc* markerMutex = nullptr; - - class ScopedMarker - { - public: - - explicit ScopedMarker(const UnityProfilerMarkerDesc* marker, IUnityProfiler* profiler, bool enabled) - : marker_(marker), profiler_(profiler), enabled_(enabled) - { - if (enabled_) - profiler_->BeginSample(marker_); - } - - ~ScopedMarker() noexcept - { - if (enabled_) - profiler_->EndSample(marker_); - } - - ScopedMarker(const ScopedMarker&) = delete; - ScopedMarker& operator=(const ScopedMarker&) = delete; - - private: - - const UnityProfilerMarkerDesc* marker_; - IUnityProfiler* profiler_; - bool enabled_; - }; - - struct SenderInfo - { - int width_; - int height_; - int format_; - bool exists_; - bool is_same_size_; - }; - - struct DX12WrapCacheEntry - { - ID3D11Resource* wrapped_resource; - int last_usage_frame; - }; - - // Singleton class used for storing global variables - class Globals final - { - public: - - enum class PluginEvent { Dispose, SetTargetObject, UpdateWrapCache }; - enum class PluginBlitCommand { Send = 2, Receive = 3 }; - - enum class Renderer { DX11, DX12 } renderer_; - - IUnityGraphicsD3D11* d3d11_interface_ = nullptr; - ID3D11Device* d3d11_ = nullptr; - ID3D11DeviceContext* d3d11Context_ = nullptr; - - // For DX12 - IUnityGraphicsD3D12v6* d3d12_interface_ = nullptr; - ID3D11On12Device* d3d11on12_ = nullptr; - ID3D12Device* d3d12_ = nullptr; - std::map wrap_cache_; - const int cache_eviction_limit_ = 10; - int frame_count_ = 0; - - std::unique_ptr spout_ = nullptr; - std::unique_ptr sender_names_ = nullptr; - - static Globals& get() - { - static Globals instance; - return instance; - } - - bool isReady() const - { - return d3d11_ != nullptr; - } - }; -} diff --git a/Plugin/KlakSpout/KlakSpoutSharedObject.h b/Plugin/KlakSpout/KlakSpoutSharedObject.h deleted file mode 100644 index 3512886..0000000 --- a/Plugin/KlakSpout/KlakSpoutSharedObject.h +++ /dev/null @@ -1,384 +0,0 @@ -#pragma once - -#include "KlakSpoutGlobals.h" -#include - -namespace klakspout -{ - // Shared Spout object handler class - // Not thread safe. The owner should care about it. - class SharedObject final - { - public: - - // Object type - enum class Type { sender, receiver } const type_; - - // Object attributes - const std::string name_; - int width_, height_; - DXGI_FORMAT format_; - - // For DX11 - ID3D11Resource* d3d11_resource_; - ID3D11ShaderResourceView* d3d11_resource_view_; - - // Constructor - SharedObject(Type type, const std::string& name, int width = -1, int height = -1) - : type_(type), name_(name), width_(width), height_(height), - d3d11_resource_(nullptr), d3d11_resource_view_(nullptr) - { - if (type_ == Type::sender) - DEBUG_LOG("Sender created (%s)", name_.c_str()); - else - DEBUG_LOG("Receiver created (%s)", name_.c_str()); - } - - // Destructor - ~SharedObject() - { - releaseInternals(); - - if (type_ == Type::sender) - DEBUG_LOG("Sender disposed (%s)", name_.c_str()); - else - DEBUG_LOG("Receiver disposed (%s)", name_.c_str()); - } - - // Prohibit use of default constructor and copy operators - SharedObject() = delete; - SharedObject(SharedObject&) = delete; - SharedObject& operator = (const SharedObject&) = delete; - - // Check if it's active. - bool isActive() const - { - return d3d11_resource_ != nullptr; - } - - // Try activating the object. Returns false when failed. - bool activate() - { - assert(d3d11_resource_ == nullptr && d3d11_resource_view_ == nullptr); - return type_ == Type::sender ? setupSender() : setupReceiver(); - } - - int sendTexture(void* tex) - { - auto& g = Globals::get(); - - if (g.renderer_ == klakspout::Globals::Renderer::DX11) - { - PROFILE_SCOPE(markerTextureCopy); - - ID3D11Resource* source_resource = static_cast(tex); - - g.d3d11Context_->CopyResource(d3d11_resource_, source_resource); - } - else if (g.renderer_ == klakspout::Globals::Renderer::DX12) - { - ID3D12Resource* dx12_resource = static_cast(tex); - ID3D11Resource* dx11_resource = getWrappedResource(dx12_resource, g.frame_count_); - - { - PROFILE_SCOPE(markerTextureWrappedActions); - - // Taken from spoutDX12::SendDX11Resource - g.d3d11on12_->AcquireWrappedResources(&dx11_resource, 1); - { - PROFILE_SCOPE(markerTextureCopy); - - g.d3d11Context_->CopyResource(d3d11_resource_, dx11_resource); - } - g.d3d11on12_->ReleaseWrappedResources(&dx11_resource, 1); - } - - // DX12 needs a flush call - { - PROFILE_SCOPE(markerFlush); - - g.d3d11Context_->Flush(); - } - } - - return 1; - } - - int receiveTexture(void* tex) - { - auto& g = Globals::get(); - - if (g.renderer_ == klakspout::Globals::Renderer::DX11) - { - PROFILE_SCOPE(markerTextureCopy); - - ID3D11Resource* destination_resource = static_cast(tex); - - g.d3d11Context_->CopyResource(destination_resource, d3d11_resource_); - } - else if (g.renderer_ == klakspout::Globals::Renderer::DX12) - { - ID3D12Resource* dx12_resource = static_cast(tex); - ID3D11Resource* dx11_resource = getWrappedResource(dx12_resource, g.frame_count_); - - { - PROFILE_SCOPE(markerTextureWrappedActions); - - // Taken from spoutDX12::ReceiveDX12Resource - g.d3d11on12_->AcquireWrappedResources(&dx11_resource, 1); - { - PROFILE_SCOPE(markerTextureCopy); - - g.d3d11Context_->CopyResource(dx11_resource, d3d11_resource_); - } - g.d3d11on12_->ReleaseWrappedResources(&dx11_resource, 1); - } - - // DX12 needs a flush call - { - PROFILE_SCOPE(markerFlush); - - g.d3d11Context_->Flush(); - } - } - - return 1; - } - - // Deactivate the object and release its internal resources. - void deactivate() - { - releaseInternals(); - } - - private: - - // Release internal objects. - void releaseInternals() - { - auto& g = Globals::get(); - - // Senders should unregister their own name on destruction. - if (type_ == Type::sender && d3d11_resource_) - g.sender_names_->ReleaseSenderName(name_.c_str()); - - // Release D3D11 objects. - if (d3d11_resource_) - { - d3d11_resource_->Release(); - d3d11_resource_ = nullptr; - } - - if (d3d11_resource_view_) - { - d3d11_resource_view_->Release(); - d3d11_resource_view_ = nullptr; - } - } - - // For DX12 only, not needed on DX11. - // Each resource that we use needs a DX11on12 representation. - // - // Creation of a DX11on12 representation is an expensive operation. - // - // There's no SharedObject to DX12 resource mapping possible because - // temporary RTs might be shared between multiple SharedObjects. - // - // For these reasons we use a cache. - ID3D11Resource* getWrappedResource(ID3D12Resource* dx12_resource, int frame_count) - { - ID3D11Resource* dx11_resource = nullptr; - - auto& g = Globals::get(); - auto it = g.wrap_cache_.find(dx12_resource); - - // Taken from spoutDX12::WrapDX12Resource - if (it == g.wrap_cache_.end()) - { - PROFILE_SCOPE(markerTextureWrap); - - HRESULT hr = S_OK; - - // A D3D11_RESOURCE_FLAGS structure that enables an application to override flags - // that would be inferred by the resource/heap properties. - // The D3D11_RESOURCE_FLAGS structure contains bind flags, misc flags, and CPU access flags. - D3D11_RESOURCE_FLAGS d3d11Flags = {}; - - // Create a wrapped resource to access our d3d12 resource from the d3d11 device - // Note: D3D12_RESOURCE_STATE variables are: - // (1) the state of the d3d12 resource when we acquire it - // (when the d3d12 pipeline is finished with it and we are ready to use it in d3d11) - // (2) when we are done using it in d3d11 (we release it back to d3d12) - // these are the states our resource will be transitioned into - hr = g.d3d11on12_->CreateWrappedResource( - dx12_resource, // A pointer to an already-created D3D12 resource or heap. - &d3d11Flags, - D3D12_RESOURCE_STATE_COMMON, // InState - D3D12_RESOURCE_STATE_COMMON, // OutState - IID_PPV_ARGS(&dx11_resource) - ); // Lazy - - if (FAILED(hr)) { - DEBUG_LOG("spoutDX12::WrapDX12Resource - failed to create wrapped resource (%d 0x%.7X)", LOWORD(hr), UINT(hr)); - return 0; - } - - DX12WrapCacheEntry entry; - entry.wrapped_resource = dx11_resource; - entry.last_usage_frame = frame_count; - g.wrap_cache_.insert(std::make_pair(dx12_resource, entry)); - - DEBUG_LOG( - "Added resource (%p), cache size: %d", - dx12_resource, - static_cast(g.wrap_cache_.size()) - ); - } - else - { - dx11_resource = it->second.wrapped_resource; - it->second.last_usage_frame = frame_count; - } - - return dx11_resource; - } - - // Set up as a sender. - bool setupSender() - { - auto& g = Globals::get(); - - // Avoid name duplication. - { - PROFILE_SCOPE(markerCheckSender); - - unsigned int width, height; HANDLE handle; DWORD format; // unused - if (g.sender_names_->CheckSender(name_.c_str(), width, height, handle, format)) - return false; - } - - // Currently we only support Unity's RGBA32 TextureFormat - // (which is the ARGB32 RenderTextureFormat). - format_ = DXGI_FORMAT_R8G8B8A8_UNORM; - - ID3D11Texture2D* texture = nullptr; - HANDLE handle; - bool res_spout; - - // Create a shared texture. - { - PROFILE_SCOPE(markerCreateSharedTexture); - - res_spout = g.spout_->CreateSharedDX11Texture(g.d3d11_, width_, height_, format_, &texture, handle); - } - - if (!res_spout) - { - DEBUG_LOG("CreateSharedDX11Texture failed (%s)", name_.c_str()); - return false; - } - - d3d11_resource_ = texture; - - HRESULT res_d3d = S_OK; - - // Create a resource view for the shared texture. - { - PROFILE_SCOPE(markerCreateSRV); - - res_d3d = g.d3d11_->CreateShaderResourceView(d3d11_resource_, nullptr, &d3d11_resource_view_); - } - - if (FAILED(res_d3d)) - { - d3d11_resource_->Release(); - d3d11_resource_ = nullptr; - DEBUG_LOG("CreateShaderResourceView failed (%s:%x)", name_.c_str(), res_d3d); - return false; - } - - // Create a Spout sender object for the shared texture. - { - PROFILE_SCOPE(markerCreateSender); - - res_spout = g.sender_names_->CreateSender(name_.c_str(), width_, height_, handle, format_); - } - - if (!res_spout) - { - d3d11_resource_view_->Release(); - d3d11_resource_view_ = nullptr; - d3d11_resource_->Release(); - d3d11_resource_ = nullptr; - DEBUG_LOG("CreateSender failed (%s)", name_.c_str()); - return false; - } - - DEBUG_LOG("Sender activated (%s)", name_.c_str()); - return true; - } - - // Set up as a receiver. - bool setupReceiver() - { - auto& g = Globals::get(); - - // Retrieve the sender information with the given name. - HANDLE handle; - DWORD format; - unsigned int w, h; - - bool res_spout = true; - - { - PROFILE_SCOPE(markerCheckSender); - - res_spout = g.sender_names_->CheckSender(name_.c_str(), w, h, handle, format); - } - - if (!res_spout) - { - // This happens really frequently. Avoid spamming the console. - // DEBUG_LOG("CheckSender failed (%s)", name_.c_str()); - return false; - } - - width_ = w; - height_ = h; - format_ = static_cast(format); - HRESULT res_d3d = S_OK; - - // Start sharing the texture. - { - PROFILE_SCOPE(markerOpenSharedTexture); - - void** ptr = reinterpret_cast(&d3d11_resource_); - res_d3d = g.d3d11_->OpenSharedResource(handle, __uuidof(ID3D11Resource), ptr); - } - - if (FAILED(res_d3d)) - { - DEBUG_LOG("OpenSharedResource failed (%s:%x)", name_.c_str(), res_d3d); - return false; - } - - // Create a resource view for the shared texture. - { - PROFILE_SCOPE(markerCreateSRV); - - res_d3d = g.d3d11_->CreateShaderResourceView(d3d11_resource_, nullptr, &d3d11_resource_view_); - } - - if (FAILED(res_d3d)) - { - d3d11_resource_->Release(); - d3d11_resource_ = nullptr; - DEBUG_LOG("CreateShaderResourceView failed (%s:%x)", name_.c_str(), res_d3d); - return false; - } - - DEBUG_LOG("Receiver activated (%s)", name_.c_str()); - return true; - } - }; -} diff --git a/Plugin/Makefile b/Plugin/Makefile new file mode 100644 index 0000000..882df7e --- /dev/null +++ b/Plugin/Makefile @@ -0,0 +1,50 @@ +# +# File listings +# + +TARGET = KlakSpout.dll + +DEST = ../Packages/jp.keijiro.klak.spout/Plugin/ + +SRCS = Plugin.cpp \ + Spout/SpoutSenderNames.cpp \ + Spout/SpoutSharedMemory.cpp \ + Spout/SpoutUtils.cpp + +OBJS = $(SRCS:.cpp=.o) + +LIBS = -Wl,--subsystem,windows -static -ldxgi -ld3d12 -ld3d11 -lole32 + +# +# Compiler/linker options +# + +TOOLCHAIN = x86_64-w64-mingw32 +CC = $(TOOLCHAIN)-g++-posix +STRIP = $(TOOLCHAIN)-strip + +CC_FLAGS = -O2 +CC_FLAGS += -I. -std=c++17 -DMINI_SPOUTUTILS +CC_FLAGS += -Wall -Wno-unknown-pragmas -Wno-conversion-null +CC_FLAGS += -Wno-format -Wno-unused-function + +LD_FLAGS = -shared + +# +# Building rules +# + +all: $(TARGET) + +clean: + rm -f $(TARGET) $(OBJS) + +copy: all + cp $(TARGET) $(DEST) + +$(TARGET): $(OBJS) + $(CC) $(LD_FLAGS) -o $@ $^ $(LIBS) + $(STRIP) $@ + +%.o: %.cpp + $(CC) $(CC_FLAGS) -c -o $@ $< diff --git a/Plugin/Plugin.cpp b/Plugin/Plugin.cpp new file mode 100644 index 0000000..a90e60d --- /dev/null +++ b/Plugin/Plugin.cpp @@ -0,0 +1,90 @@ +#include "Common.h" +#include "Event.h" +#include "Receiver.h" +#include "Sender.h" +#include "System.h" +#include "Util.h" +#include + +using namespace KlakSpout; + +namespace { + +// Local mutex object used to prevent race conditions between the main thread +// and the render thread. This should be locked at the following points: +// - OnRenderEvent (this is the only point called from the render thread) +// - Plugin functions that use the Spout API functions. +std::mutex lock_; + +// Graphics device event callback +void UNITY_INTERFACE_API + OnGraphicsDeviceEvent(UnityGfxDeviceEventType event_type) +{ + if (event_type == kUnityGfxDeviceEventShutdown) _system->shutdown(); +} + +// Render event (via IssuePluginEvent) callback +void UNITY_INTERFACE_API + OnRenderEvent(int event_id, void* event_data) +{ + std::lock_guard guard(lock_); + auto data = reinterpret_cast(event_data); + if (event_id == event_updateSender ) data->sender->update(data->texture); + if (event_id == event_updateReceiver) data->receiver->update(); + if (event_id == event_closeSender ) delete data->sender; + if (event_id == event_closeReceiver) delete data->receiver; +} + +} // anonymous namespace + +// Unity low-level native plugin interface + +extern "C" void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API + UnityPluginLoad(IUnityInterfaces* interfaces) +{ + // System object instantiation, callback registration + _system = std::make_unique(interfaces); + _system->getGraphics()->RegisterDeviceEventCallback(OnGraphicsDeviceEvent); +} + +extern "C" void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API UnityPluginUnload() +{ + // System object destruction + _system->getGraphics()->UnregisterDeviceEventCallback(OnGraphicsDeviceEvent); + _system.reset(); +} + +// Plugin functions + +extern "C" UnityRenderingEventAndData UNITY_INTERFACE_EXPORT + GetRenderEventCallback() +{ + return OnRenderEvent; +} + +extern "C" Sender UNITY_INTERFACE_EXPORT * + CreateSender(const char* name, int width, int height) +{ + return new Sender(name, width, height); +} + +extern "C" Receiver UNITY_INTERFACE_EXPORT * + CreateReceiver(const char* name) +{ + return new Receiver(name); +} + +extern "C" Receiver::InteropData UNITY_INTERFACE_EXPORT + GetReceiverData(Receiver* receiver) +{ + return receiver->getInteropData(); +} + +extern "C" void UNITY_INTERFACE_EXPORT + GetSenderNames(char*** names, int* count) +{ + std::lock_guard guard(lock_); + std::set senders; + _system->spout.GetSenderNames(&senders); + std::tie(*names, *count) = MarshalStringSet(senders); +} diff --git a/Plugin/Receiver.h b/Plugin/Receiver.h new file mode 100644 index 0000000..d2bd519 --- /dev/null +++ b/Plugin/Receiver.h @@ -0,0 +1,81 @@ +#pragma once + +#include "Common.h" +#include "System.h" + +namespace KlakSpout { + +// DX11/12 compatible Spout receiver class +class Receiver final +{ +public: + + Receiver(const char* name) + : _name(name) {} + + ~Receiver() + { + _texture = nullptr; + } + + void update() + { + // Search the Spout name list. + unsigned int width, height; + HANDLE handle; + DWORD format; + auto res = _system->spout + .CheckSender(_name.c_str(), width, height, handle, format); + if (!res) return; + + // Do nothing further if the current texture is valid. + if (_texture && _width == width && _height == height) return; + + HRESULT hres; + + if (_system->isD3D12) + { + // Handle -> D3D12Resource + WRL::ComPtr resource; + hres = _system->getD3D12Device() + ->OpenSharedHandle(handle, IID_PPV_ARGS(&resource)); + _texture = resource; + } + else + { + // Handle -> D3D11Resource + WRL::ComPtr resource; + hres = _system->getD3D11Device() + ->OpenSharedResource(handle, IID_PPV_ARGS(&resource)); + _texture = resource; + } + + _width = width; + _height = height; + + if (FAILED(hres)) LogError("OpenSharedResource", _name, hres); + } + + // Receiver interop data structure + // Should match with Klak.Spout.Plugin.ReceiverData (Plugin.cs) + struct InteropData + { + unsigned int width, height; + void* texture_pointer; + }; + + InteropData getInteropData() const + { + return InteropData + { .width = _width, .height = _height, + .texture_pointer = _texture.Get() }; + } + +private: + + std::string _name; + unsigned int _width, _height; + WRL::ComPtr _texture; +}; + +} // namespace KlakSpout diff --git a/Plugin/Sender.h b/Plugin/Sender.h new file mode 100644 index 0000000..8225266 --- /dev/null +++ b/Plugin/Sender.h @@ -0,0 +1,124 @@ +#pragma once + +#include "Common.h" +#include "System.h" + +namespace KlakSpout { + +// DX11/12 compatible Spout sender class +class Sender final +{ +public: + + Sender(const char* name, int width, int height) + : _name(name), _width(width), _height(height) {} + + ~Sender() + { + if (_texture) + { + _system->spout.ReleaseSenderName(_name.c_str()); + _texture = nullptr; + } + } + + void update(IUnknown* source) + { + // Lazy initialization + if (!_texture) initialize(); + + WRL::ComPtr unknown(source); + + if (_system->isD3D12) + { + // DX12: Texture update + WRL::ComPtr d3d12; + unknown.As(&d3d12); + updateTexture(d3d12.Get()); + } + else + { + // DX11: Texture update + WRL::ComPtr d3d11; + unknown.As(&d3d11); + updateTexture(d3d11.Get()); + } + } + +private: + + std::string _name; + int _width, _height; + WRL::ComPtr _texture; + + void initialize() + { + // Make a Spout-compatible texture description. + D3D11_TEXTURE2D_DESC desc = {}; + desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + desc.Width = _width; + desc.Height = _height; + desc.MipLevels = 1; + desc.ArraySize = 1; + desc.SampleDesc.Count = 1; + desc.BindFlags = D3D11_BIND_RENDER_TARGET | D3D11_BIND_SHADER_RESOURCE; + desc.MiscFlags = D3D11_RESOURCE_MISC_SHARED; + + // Create a shared texture. + auto hres = _system->getD3D11Device() + ->CreateTexture2D(&desc, nullptr, &_texture); + + if (FAILED(hres)) + { + LogError("CereateTexture2D", _name, hres); + return; + } + + // Retrieve the texture handle. + HANDLE handle; + WRL::ComPtr resource; + _texture.As(&resource); + resource->GetSharedHandle(&handle); + + // Create a Spout sender object for the shared texture. + auto res = _system->spout + .CreateSender(_name.c_str(), _width, _height, handle, desc.Format); + + if (!res) LogError("CreateSender", _name, 0); + } + + void updateTexture(ID3D11Resource* source) + { + // Texture copy + _system->getD3D11Context()->CopyResource(_texture.Get(), source); + } + + void updateTexture(ID3D12Resource* source) + { + auto d3d11on12 = _system->getD3D11On12Device(); + + // Wrapping: D3D12 -> D3D11 + D3D11_RESOURCE_FLAGS flags = {}; + WRL::ComPtr wrap; + auto hres = d3d11on12->CreateWrappedResource + (source, &flags, + D3D12_RESOURCE_STATE_COPY_SOURCE, + D3D12_RESOURCE_STATE_PRESENT, + IID_PPV_ARGS(&wrap)); + + if (FAILED(hres)) + { + LogError("CereateWrappedResource", _name, hres); + return; + } + + // Texture copy + auto ctx = _system->getD3D11Context(); + d3d11on12->AcquireWrappedResources(wrap.GetAddressOf(), 1); + ctx->CopyResource(_texture.Get(), wrap.Get()); + d3d11on12->ReleaseWrappedResources(wrap.GetAddressOf(), 1); + ctx->Flush(); + } +}; + +} // namespace KlakSpout diff --git a/Plugin/Spout/SpoutGL/SpoutCommon.h b/Plugin/Spout/SpoutCommon.h similarity index 98% rename from Plugin/Spout/SpoutGL/SpoutCommon.h rename to Plugin/Spout/SpoutCommon.h index 24f898b..cebad5b 100644 --- a/Plugin/Spout/SpoutGL/SpoutCommon.h +++ b/Plugin/Spout/SpoutCommon.h @@ -57,7 +57,7 @@ // This definition enables legacy OpenGL rendering code // used for shared texture Draw functions in SpoutGLDXinterop.cpp // Disabled by default for OpenGL 4 compliance -// #define legacyOpenGL +#define legacyOpenGL // Common utility functions namespace #include "SpoutUtils.h" diff --git a/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX.cpp b/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX.cpp deleted file mode 100644 index 31c3f17..0000000 --- a/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX.cpp +++ /dev/null @@ -1,1716 +0,0 @@ -// -// SpoutDX -// -// Send a DirectX11 shared texture -// Receive from a Spout sender DirectX11 shared texture -// DirectX9 not supported -// -// ==================================================================================== -// Revisions : -// -// 07.06.19 - started DirectX helper class -// 17.10.19 - For revison of SpoutCam from OpenGL to DirectX -// Added DirectX initialise and release functions -// Added support for pixel read via staging texture -// Added pixel copy functions -// Added memoryshare support -// 30.01.20 - Simplify names for Get received texture methods -// Revise CreateDX11Texture for user flags -// Add SetTextureFlags -// 07.01.20 - Correct immediate context in SendTexture -// 13.04.20 - Revise receiver methods -// 10.05.20 - Corrected format for ReceivedTexture and GetSenderFormat -// Cleanup Tutorial07 example code -// 05.06.20 - Get memoryshare mode from registry in constructor -// 06.06.20 - Working memoryshare -// 07.06.20 - Use application device exclusively -// Strip back to basic texture share only for simplicity -// Memoryshare use unlikely for DirectX applications -// Can be restored on request -// 09.06.20 - Updated 2.007 Spout SDK files -// Restored ReceiveRGBIMage and staging texture functions -// for DirectX version of SpoutCam -// 21.06.20 - Create basic windows example using SpoutDX class -// 22.06.20 - Add ReceiveImage and ReadRGBApixels - see also SpoutCopy -// 23.06.20 - SetSenderName revision and testing -// Clean up -// 25.06.20 - Include texture format in update checks -// 26.06.20 - Revise ReceiveTexture -// Remove local receiving texture -// Remove CreateDX11Texture -// More SetSenderName revision and testing -// General update throughout -// 26.06.20 - Restore revised CreateDX11texture -// 28.06.17 - Remove ReadRGBApixels -// Change to allow class or application device -// 30.06.20 - Due to hesitions with SpoutCam, move flush for staging texture map -// from ReceiveRGBimage to ReadRGBpixels and added to ReceiveImage. -// 03.07.20 - Change OpenDirectX11 so it can be repeatedly called (see ReceiveImage) -// 04.07.20 - OpenDirectX11 check in all sending functions -// 09.07.20 - Correct ReadRGBpixels for RGBA senders -// 02.08.20 - Remove console print from ReadRGBApixels -// 02.09.20 - Revise ReceiveRGBimage, ReadRGBpixels for SpoutCam -// Only use OpenDX11shareHandle if the sender texture changes size -// to avoid a memory leak (https://github.com/leadedge/SpoutCam/issues/2) -// Release m_pSharedTexture in all close functions -// 08.09.20 - Revise ReceiveTexture and ReceiveImage to avoid repeated OpenDX11shareHandle -// Revise ReceiveImage due to problems if the staging texture remains mapped -// SendImage do not release immediate context -// Made all class objects public -// 18.09.20 - Add GetSenderAdapter and SetSenderAdapter -// 21.09.20 - Add sender IsInitialized and GetName -// ReceiveTexture, ReceiveImage and ReceiveRGBimage - -// retrieve a new shared texture pointer in ReceiveSenderData() rather than afterwards -// SendTexture - set the current adapter index after creating sender -// Prevent sharing if the sender texture was created on a different adapter -// Some protections in GetSenderAdapter -// 23.09.20 - GetSenderAdapter : return -1 on failure. Remove logs due to repeats. -// ReceiveSenderData() : catch exception for OpenDX11shareHandle failure -// Initialize m_SenderInfo and m_ShExecInfo in constructor -// 24.09.20 - Move try/catch to OpenDX11shareHandle in SpoutDirectX class -// 25.09.20 - Clean up ReceiveSenderData to allow for failure of OpenDX11shareHandle -// Compare share handle to detect a new sender instead of the name -// 02.10.20 - Async readback from GPU using two staging textures -// 04.10.20 - Correct CheckStagingTextures for size change -// - Correct ReceiveSenderData to release texture before OpenSharedResource -// - Replace ReceiveRGBimage with ReceiveImage and rgb flag -// - Replace ReadRGBAimage, ReadRGBimage, ReadRGBApixels, ReadRGBpixels -// with ReadPixelData and rgb flag -// 06.10.20 - Allow for DX9 shared textures by creating receiving texture with compatible format -// - Mirror and swap red/blue options for SpoutCam via class flags m_bMirror, and m_bSwapRB -// Modifications to SpoutCopy rgba2rgb and rgba2rgbResample -// 29.10.20 - Add CheckSender for SendTexture and SendImage -// 08.12.20 - Add GetDX11Context -// 09.12.20 - Rename CleanupDX11 to CloseDirectX11 -// Add auto adapter switch into ReceiveSenderData if a class device was created. -// 10.01.21 - Add auto increment of sender name to SetSenderName if the sender already exists -// 11.01.21 - Add IsClassDevice() -// 12.01.21 - Release orphaned senders in SelectSenderPanel -// 15.01.21 - Add Flush to ReceiveTexture -// -// ==================================================================================== -/* - Copyright (c) 2014-2020, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ -#include "spoutDX.h" - -// -// Class: spoutDX -// -// Functions to manage DirectX11 texture sharing. -// -// Refer to source code for further details. -// - -spoutDX::spoutDX() -{ - // Initialize variables - m_pd3dDevice = nullptr; - m_pImmediateContext = nullptr; - m_pStaging[0] = nullptr; - m_pStaging[1] = nullptr; - m_Index = 0; - m_NextIndex = 0; - m_pSharedTexture = nullptr; - m_dxShareHandle = nullptr; - m_SenderNameSetup[0] = 0; - m_SenderName[0] = 0; - m_dwFormat = DXGI_FORMAT_B8G8R8A8_UNORM; // default; - m_Width = 0; - m_Height = 0; - m_bUpdated = false; - m_bConnected = false; - m_bNewFrame = false; - m_bSpoutInitialized = false; - m_bSpoutPanelOpened = false; - m_bSpoutPanelActive = false; - m_bClassDevice = false; - m_bMirror = false; - m_bSwapRB = false; - m_bAdapt = false; - ZeroMemory(&m_SenderInfo, sizeof(SharedTextureInfo)); - ZeroMemory(&m_ShExecInfo, sizeof(m_ShExecInfo)); - - // Receiver adapter switch selection - DWORD dwMode = 0; - ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "Adapt", &dwMode); - m_bAdapt = (dwMode == 1); - -} - -spoutDX::~spoutDX() -{ - ReleaseSender(); - ReleaseReceiver(); - CloseDirectX11(); -} - -//--------------------------------------------------------- -// DIRECTX -// - -// -// Group: DirectX -// - -// Function: OpenDirectX11 -// Initialize and prepare Directx 11 -bool spoutDX::OpenDirectX11(ID3D11Device* pDevice) -{ - if (!m_pd3dDevice) { - SpoutLogNotice("spoutDX::OpenDirectX11"); - if (pDevice) { - // Use the device pointer if it was was passed in - m_pd3dDevice = pDevice; - // Get the immediate context - pDevice->GetImmediateContext(&m_pImmediateContext); - m_bClassDevice = false; // An existing device pointer was used - SpoutLogNotice(" using device (0x%.7X)", PtrToUint(m_pd3dDevice)); - } - else { - // Create a DirectX 11 device if not already - if (spoutdx.OpenDirectX11()) { - // Retrieve the device and context pointer - m_pd3dDevice = spoutdx.GetDX11Device(); - m_pImmediateContext = spoutdx.GetDX11Context(); - m_bClassDevice = true; // A new class device pointer was created - SpoutLogNotice(" created device (0x%.7X)", PtrToUint(m_pd3dDevice)); - } - } - } - - return true; - -} - -// Function: OpenDirectX11 -// Return the DirectX11 device -ID3D11Device* spoutDX::GetDX11Device() -{ - return m_pd3dDevice; -} - -// Function: GetDX11Context -// Return the DirectX11 immediate context -ID3D11DeviceContext* spoutDX::GetDX11Context() -{ - return m_pImmediateContext; -} - -// Function: CloseDirectX11 -// Close DirectX11 and free resources -void spoutDX::CloseDirectX11() -{ - SpoutLogNotice("spoutDX::CloseDirectX11()"); - - if (m_pSharedTexture) m_pSharedTexture->Release(); - m_pSharedTexture = nullptr; - m_dxShareHandle = nullptr; - - if (m_pStaging[0]) m_pStaging[0]->Release(); - if (m_pStaging[1]) m_pStaging[1]->Release(); - m_pStaging[0] = nullptr; - m_pStaging[1] = nullptr; - m_Index = 0; - m_NextIndex = 0; - - if (m_pd3dDevice) { - if (m_bClassDevice) { - // A device was created using the SpoutDirectX class - spoutdx.CloseDirectX11(); - } - else { - // An application device was used - // Release the independently created m_pImmediateContext object - if (m_pImmediateContext) - m_pImmediateContext->Release(); - } - } - - m_pd3dDevice = nullptr; - m_pImmediateContext = nullptr; - -} - -// Function: CloseDirectX11 -// Was a device was created using the SpoutDirectX class -bool spoutDX::IsClassDevice() -{ - return m_bClassDevice; -} - -//--------------------------------------------------------- -// SENDER -// - -// -// Group: Sender -// -// SendTexture and SendImage create or update a sender as required. -// -// - If a sender has not been created yet : -// -// - Make sure DirectX has been initialized -// - Create a sender using the DX11 shared texture handle -// -// - If the sender exists, test for size change : -// -// - Update the class shared texture -// - Update the sender and class variables -// - - -//--------------------------------------------------------- -// Function: SetSenderName -// Set name for sender creation -// -// If no name is specified, the executable name is used. -bool spoutDX::SetSenderName(const char* sendername) -{ - if (!sendername) { - // Get executable name as default - GetModuleFileNameA(NULL, m_SenderName, 256); - PathStripPathA(m_SenderName); - PathRemoveExtensionA(m_SenderName); - } - else { - strcpy_s(m_SenderName, 256, sendername); - } - - // If a sender with this name is already registered, create an incremented name - int i = 1; - char name[256]; - strcpy_s(name, 256, m_SenderName); - if (sendernames.FindSenderName(name)) { - do { - sprintf_s(name, 256, "%s_%d", m_SenderName, i); - i++; - } while (sendernames.FindSenderName(name)); - } - // Re-set the global sender name - strcpy_s(m_SenderName, 256, name); - - return true; -} - -//--------------------------------------------------------- -// Function: SetSenderFormat -// Set the sender DX11 shared texture format -void spoutDX::SetSenderFormat(DXGI_FORMAT format) -{ - m_dwFormat = format; -} - -//--------------------------------------------------------- -// Function: ReleaseSender -// Close receiver and release resources. -// -// A new sender is created or updated by all sending functions -void spoutDX::ReleaseSender() -{ - if (m_pSharedTexture) - m_pSharedTexture->Release(); - - if (m_pStaging[0]) m_pStaging[0]->Release(); - if (m_pStaging[1]) m_pStaging[1]->Release(); - - if (m_bSpoutInitialized) - sendernames.ReleaseSenderName(m_SenderName); - - m_pStaging[0] = nullptr; - m_pStaging[1] = nullptr; - m_Index = 0; - m_NextIndex = 0; - m_pSharedTexture = nullptr; - m_dxShareHandle = nullptr; - - m_Width = 0; - m_Height = 0; - m_SenderName[0] = 0; - m_bSpoutInitialized = false; - -} - -//--------------------------------------------------------- -// Function: SendTexture -// Send DirectX11 texture -// -// - Default format : -// -// - DXGI_FORMAT_B8G8R8A8_UNORM (87) -// -// - DX9 compatible formats : -// -// - DXGI_FORMAT_R8G8B8A8_UNORM (28) -// - DXGI_FORMAT_B8G8R8A8_UNORM (87) -// - DXGI_FORMAT_B8G8R8X8_UNORM (88) -// -// - Other formats that work with DX11 but not with DX9 : -// -// - DXGI_FORMAT_R16G16B16A16_FLOAT -// - DXGI_FORMAT_R16G16B16A16_SNORM -// - DXGI_FORMAT_R10G10B10A2_UNORM -// -bool spoutDX::SendTexture(ID3D11Texture2D* pTexture) -{ - // Quit if no data - if (!pTexture) - return false; - - // Get the texture details - D3D11_TEXTURE2D_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - pTexture->GetDesc(&desc); - if (desc.Width == 0 || desc.Height == 0) - return false; - - // Create or update the sender - if (!CheckSender(desc.Width, desc.Height, (DWORD)desc.Format)) - return false; - - // Check the sender mutex for access the shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - // Copy the texture to the sender's shared texture - m_pImmediateContext->CopyResource(m_pSharedTexture, pTexture); - // Flush the command queue now because the shared texture has been updated on this device - m_pImmediateContext->Flush(); - // Signal a new frame while the mutex is locked - frame.SetNewFrame(); - // Allow access to the shared texture - frame.AllowTextureAccess(m_pSharedTexture); - } - - return true; -} - -//--------------------------------------------------------- -// Function: SendImage -// Send pixel image -bool spoutDX::SendImage(unsigned char * pData, unsigned int width, unsigned int height) -{ - // Quit if no data - if (!pData) - return false; - - // Create or update the sender - if (!CheckSender(width, height, m_dwFormat)) - return false; - - // Check the sender mutex for access the shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - // Update the shared texture resource with the pixel buffer - m_pImmediateContext->UpdateSubresource(m_pSharedTexture, 0, NULL, pData, m_Width * 4, 0); - // Flush the command queue because the shared texture has been updated on this device - m_pImmediateContext->Flush(); - // Signal a new frame while the mutex is locked - frame.SetNewFrame(); - // Allow access to the shared texture - frame.AllowTextureAccess(m_pSharedTexture); - } - - return true; -} - -//--------------------------------------------------------- -// Function: IsInitialized -// Initialization status -bool spoutDX::IsInitialized() -{ - return m_bSpoutInitialized; -} - -//--------------------------------------------------------- -// Function: GetName -// Sender name -const char * spoutDX::GetName() -{ - return m_SenderName; -} - -//--------------------------------------------------------- -// Function: GetWidth -// Sender width -unsigned int spoutDX::GetWidth() -{ - return m_Width; -} - -//--------------------------------------------------------- -// Function: GetHeight -// Sender height -unsigned int spoutDX::GetHeight() -{ - return m_Height; -} - -//--------------------------------------------------------- -// Function: GetFps -// Sender frame rate -double spoutDX::GetFps() -{ - return (frame.GetSenderFps()); -} - -//--------------------------------------------------------- -// Function: GetFrame -// Sender frame number -long spoutDX::GetFrame() -{ - return (frame.GetSenderFrame()); -} - - -//--------------------------------------------------------- -// RECEIVER -// - -// -// Group: Receiver -// -// ReceiveTexture and ReceiveImage -// -// - Connect to a sender -// - Set class variables for sender name, width and height -// - If the sender has changed size, set a flag for the application to update -// the receiving texture or imageif IsUpdated() returns true. -// - Copy the sender shared texture to the user texture or image. -// - -//--------------------------------------------------------- -// Function: SetReceiverName -// Specify sender for connection -// -// The application will not connect to any other unless the user selects one -// If that sender closes, the application will wait for the nominated sender to open -// If no name is specified, the receiver will connect to the active sender -void spoutDX::SetReceiverName(const char * SenderName) -{ - if (SenderName && SenderName[0]) { - strcpy_s(m_SenderNameSetup, 256, SenderName); - strcpy_s(m_SenderName, 256, SenderName); - } -} - -//--------------------------------------------------------- -// Function: ReleaseReceiver -// Close receiver and release resources ready to connect to another sender -void spoutDX::ReleaseReceiver() -{ - // Restore the sender name if one was specified by SetReceiverName - if (m_SenderNameSetup[0]) - strcpy_s(m_SenderName, 256, m_SenderNameSetup); - else - m_SenderName[0] = 0; - - if (!m_bSpoutInitialized) - return; - - // Wait 4 frames in case the same sender opens again - Sleep(67); - - if (m_pSharedTexture) - m_pSharedTexture->Release(); - m_pSharedTexture = nullptr; - m_dxShareHandle = nullptr; - - // Close the named access mutex and frame counting semaphore. - frame.CloseAccessMutex(); - frame.CleanupFrameCount(); - - // Zero width and height so that they are reset when a sender is found - m_Width = 0; - m_Height = 0; - m_SenderName[0] = 0; - - // Initialize again when a sender is found - m_bSpoutInitialized = false; - m_bUpdated = false; - -} - -//--------------------------------------------------------- -// Function: ReceiveTexture -// Copy the sender DX11 shared texture -// -// The receiving texture must be the same format -// and must be re-allocated if IsUpdated() returns true -// -bool spoutDX::ReceiveTexture(ID3D11Texture2D** ppTexture) -{ - // Return if flagged for update - // The update flag is reset when the receiving application calls IsUpdated() - if (m_bUpdated) - return true; - - // Try to receive texture details from a sender - if (ReceiveSenderData()) { - - // Was the shared texture pointer retrieved ? - if (!m_pSharedTexture) { - return false; - } - - // The sender name, width, height, format, shared texture handle and pointer have been retrieved. - if (m_bUpdated) { - // If the sender is new or changed, return to update the receiving texture. - // The application detects the change with IsUpdated(). - return true; - } - - // The application receiving texture is created - // by the application on the first update above - // ready for copy from the sender's shared texture. - ID3D11Texture2D* pTexture = *ppTexture; - if (!pTexture) { - return false; - } - - // - // Found a sender - // - - // Access the sender shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - m_bNewFrame = false; // For query of new frame - // Check if the sender has produced a new frame. - if (frame.GetNewFrame()) { - // Copy from the sender's shared texture to the receiving texture. - m_pImmediateContext->CopyResource(pTexture, m_pSharedTexture); - // Testing has shown that Flush is needed here for the texture - // to be immediately available for subsequent copy. - // May be removed if the texture is not immediately copied. - // Test for the individual application. - m_pImmediateContext->Flush(); - m_bNewFrame = true; // The application can query IsNewFrame() - } - } - // Allow access to the shared texture - frame.AllowTextureAccess(m_pSharedTexture); - - m_bConnected = true; - - } // sender exists - else { - // There is no sender or the connected sender closed. - ReleaseReceiver(); - // Let the application know. - m_bConnected = false; - } - - // ReceiveTexture fails if there is no sender or the connected sender closed. - return m_bConnected; - -} - -//--------------------------------------------------------- -// Function: ReceiveImage -// Receive from a sender via DX11 staging textures to an rgba or rgb buffer of variable size -// A new shared texture pointer (m_pSharedTexture) is retrieved if the sender changed -bool spoutDX::ReceiveImage(unsigned char * pixels, - unsigned int width, unsigned int height, bool bRGB, bool bInvert) -{ - // Return if flagged for update - // The update flag is reset when the receiving application calls IsUpdated() - if (m_bUpdated) - return true; - - // Try to receive texture details from a sender - if (ReceiveSenderData()) { - // The sender name, width, height, format, shared texture handle and pointer have been retrieved. - if (m_bUpdated) { - // A new sender has been found or the one connected has changed. - // The staging textures must be the same size and format as the sender - // Create new staging textures if it is a different size - CheckStagingTextures(m_Width, m_Height, m_dwFormat); - // The application detects the change with IsUpdated() - // and the receiving buiffer is updated to match the sender. - return true; - } - - // The receiving pixel buffer is created after the first update - // So check here instead of at the beginning - if (!pixels) - return false; - - // No staging textures - no copy - if (!m_pStaging[0] || !m_pStaging[1]) - return false; - - // - // Found a sender - // - // Access the sender shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - // Check if the sender has produced a new frame. - if (frame.GetNewFrame()) { - // Read from the sender GPU texture to CPU pixels via two staging textures - // One texture - approx 7 - 12 msec at 1920x1080 - // Two textures - approx 2.5 - 3.5 msec at 1920x1080 - m_Index = (m_Index + 1) % 2; - m_NextIndex = (m_Index + 1) % 2; - // Copy from the sender's shared texture to the first staging texture - m_pImmediateContext->CopyResource(m_pStaging[m_Index], m_pSharedTexture); - // Map and read from the second while the first is occupied - ReadPixelData(m_pStaging[m_NextIndex], pixels, width, height, bRGB, bInvert); - } - // Allow access to the shared texture - frame.AllowTextureAccess(m_pSharedTexture); - } - - m_bConnected = true; - } // sender exists - else { - // There is no sender or the connected sender closed. - ReleaseReceiver(); - // Let the application know. - m_bConnected = false; - } - - // ReceiveImage fails if there is no sender or the connected sender closed. - return m_bConnected; - -} - -//--------------------------------------------------------- -// Function: SelectSender -// Open sender selection dialog -void spoutDX::SelectSender() -{ - SelectSenderPanel(); -} - -//--------------------------------------------------------- -// Function: IsUpdated -// Query whether the sender has changed. -// -// Must be checked at every cycle before receiving data. -// -// If this is not done, the receiving functions fail. -bool spoutDX::IsUpdated() -{ - bool bRet = m_bUpdated; - m_bUpdated = false; // Reset the update flag - return bRet; -} - - -//--------------------------------------------------------- -// Function: IsConnected -// Query sender connection. -// -// If the sender closes, receiving functions return false, -// but connection can be tested at any time. -bool spoutDX::IsConnected() -{ - return m_bConnected; -} - -//--------------------------------------------------------- -// Function: IsFrameNew -// Query received frame status -// -// The receiving texture or pixel buffer is refreshed if the sender has produced a new frame -// This can be queried to process texture data only for new frames -bool spoutDX::IsFrameNew() -{ - return m_bNewFrame; -} - -//--------------------------------------------------------- -// Function: GetSenderHandle -// Received sender share handle -HANDLE spoutDX::GetSenderHandle() -{ - return m_dxShareHandle; -} - -//--------------------------------------------------------- -// Function: GetSenderFormat -// Get sender DirectX texture format -DXGI_FORMAT spoutDX::GetSenderFormat() -{ - return (DXGI_FORMAT)m_dwFormat; -} - - -//--------------------------------------------------------- -// Function: GetSenderName -// Get sender name -const char * spoutDX::GetSenderName() -{ - return m_SenderName; -} - -//--------------------------------------------------------- -// Function: GetSenderWidth -// Get sender width -unsigned int spoutDX::GetSenderWidth() -{ - return m_Width; -} - -//--------------------------------------------------------- -// Function: GetSenderHeight -// Get sender height -unsigned int spoutDX::GetSenderHeight() -{ - return m_Height; - -} - -//--------------------------------------------------------- -// Function: GetSenderFps -// Get sender frame rate -double spoutDX::GetSenderFps() -{ - return frame.GetSenderFps(); -} - -//--------------------------------------------------------- -// Function: GetSenderFrame -// Get sender frame number -long spoutDX::GetSenderFrame() -{ - return frame.GetSenderFrame(); -} - - -//--------------------------------------------------------- -// COMMON -// - -// -// Group: Frame counting -// - -//--------------------------------------------------------- -// Function: HoldFps -// Frame rate control -void spoutDX::HoldFps(int fps) -{ - frame.HoldFps(fps); -} - -// Function: DisableFrameCount -// Disable frame counting specifically for this application -void spoutDX::DisableFrameCount() -{ - frame.DisableFrameCount(); -} - -//--------------------------------------------------------- -// Function: IsFrameCountEnabled -// Return frame count status -bool spoutDX::IsFrameCountEnabled() -{ - return frame.IsFrameCountEnabled(); -} - -//--------------------------------------------------------- -// SenderNames -// - -// -// Group: Sender names -// - -//--------------------------------------------------------- -// Function: GetSenderCount -// Number of senders -int spoutDX::GetSenderCount() -{ - std::set SenderNameSet; - if (sendernames.GetSenderNames(&SenderNameSet)) { - return((int)SenderNameSet.size()); - } - return 0; -} - -//--------------------------------------------------------- -// Function: GetSender -// Sender item name in the sender names set -bool spoutDX::GetSender(int index, char* sendername, int sendernameMaxSize) -{ - std::set SenderNameSet; - std::set::iterator iter; - std::string namestring; - char name[256]; - int i; - - if (sendernames.GetSenderNames(&SenderNameSet)) { - if (SenderNameSet.size() < (unsigned int)index) { - return false; - } - i = 0; - for (iter = SenderNameSet.begin(); iter != SenderNameSet.end(); iter++) { - namestring = *iter; // the name string - strcpy_s(name, 256, namestring.c_str()); // the 256 byte name char array - if (i == index) { - strcpy_s(sendername, sendernameMaxSize, name); // the passed name char array - break; - } - i++; - } - return true; - } - return false; -} - -//--------------------------------------------------------- -// Function: GetSenderInfo -// Sender information -bool spoutDX::GetSenderInfo(const char* sendername, unsigned int &width, unsigned int &height, HANDLE &dxShareHandle, DWORD &dwFormat) -{ - return sendernames.GetSenderInfo(sendername, width, height, dxShareHandle, dwFormat); -} - -//--------------------------------------------------------- -// Function: GetActiveSender -// Current active sender name -bool spoutDX::GetActiveSender(char* Sendername) -{ - return sendernames.GetActiveSender(Sendername); -} - -//--------------------------------------------------------- -// Function: SetActiveSender -// Set sender as active -bool spoutDX::SetActiveSender(const char* Sendername) -{ - return sendernames.SetActiveSender(Sendername); -} - -//--------------------------------------------------------- -// Function: GetMaxSenders -// Get user Maximum senders allowed -int spoutDX::GetMaxSenders() -{ - return(sendernames.GetMaxSenders()); -} - -//--------------------------------------------------------- -// Function: SetMaxSenders -// Set user Maximum senders allowed -void spoutDX::SetMaxSenders(int maxSenders) -{ - sendernames.SetMaxSenders(maxSenders); -} - - -// -// Adapter functions -// - -// -// Group: Graphics adapter -// -// Note that both the Sender and Receiver must use the same graphics adapter. -// - -//--------------------------------------------------------- -// Function: GetNumAdapters -// The number of graphics adapters in the system -int spoutDX::GetNumAdapters() -{ - return spoutdx.GetNumAdapters(); -} - -//--------------------------------------------------------- -// Function: GetAdapterName -// Get adapter item name -bool spoutDX::GetAdapterName(int index, char *adaptername, int maxchars) -{ - return spoutdx.GetAdapterName(index, adaptername, maxchars); -} - -//--------------------------------------------------------- -// Function: GetAdapter -// Get adapter index -int spoutDX::GetAdapter() -{ - return spoutdx.GetAdapter(); -} - -//--------------------------------------------------------- -// Function: SetAdapter -// Set graphics adapter for output -bool spoutDX::SetAdapter(int index) -{ - if (spoutdx.SetAdapter(index)) { - return true; - } - SpoutLogError("spoutDX::SetAdapter(%d) failed", index); - spoutdx.SetAdapter(-1); // make sure globals are reset to default - return false; -} - -//--------------------------------------------------------- -// Function: GetAdapterInfo -// Get the current adapter description -int spoutDX::GetSenderAdapter(const char* sendername, char* adaptername, int maxchars) -{ - if (!sendername || !sendername[0]) - return -1; - - int senderadapter = -1; - ID3D11Texture2D* pSharedTexture = nullptr; - ID3D11Device* pDummyDevice = nullptr; - ID3D11DeviceContext* pContext = nullptr; - IDXGIAdapter* pAdapter = nullptr; - - // Get the current device adapter pointer (could be null default) - IDXGIAdapter* pCurrentAdapter = spoutdx.GetAdapterPointer(); - - SpoutLogNotice("spoutDX::GetSenderAdapter - testing for sender adapter (%s)", sendername); - - SharedTextureInfo info; - if (sendernames.getSharedInfo(sendername, &info)) { - int nAdapters = spoutdx.GetNumAdapters(); - for (int i = 0; i < nAdapters; i++) { - // printf("Adapter %d : %s : handle %d\n", i, name, sharehandle); - pAdapter = spoutdx.GetAdapterPointer(i); - if (pAdapter) { - SpoutLogNotice(" testing adapter %d", i); - // Set the adapter pointer for CreateDX11device to use - spoutdx.SetAdapterPointer(pAdapter); - // Create a dummy device using this adapter - pDummyDevice = spoutdx.CreateDX11device(); - if (pDummyDevice) { - // Try to open the share handle with the device created from the adapter - if (spoutdx.OpenDX11shareHandle(pDummyDevice, &pSharedTexture, LongToHandle((long)info.shareHandle))) { - // break as soon as it succeeds - // printf("Found sender (%s) adapter %d : %s\n", sendername, i, name); - SpoutLogNotice(" found sender adapter %d (0x%.7X)", i, PtrToUint(pAdapter)); - senderadapter = i; - spoutdx.GetAdapterName(i, adaptername, maxchars); - pDummyDevice->GetImmediateContext(&pContext); - if (pContext) pContext->Flush(); - pDummyDevice->Release(); - pAdapter->Release(); - break; - } - pDummyDevice->GetImmediateContext(&pContext); - if (pContext) pContext->Flush(); - pDummyDevice->Release(); - } - pAdapter->Release(); - } - } - } - - // Set the SpoutDirectX class adapter pointer back to what it was - spoutdx.SetAdapterPointer(pCurrentAdapter); - - return senderadapter; - -} - -// -// Sharing modes -// - -// -// Group: Retained for 2.006 compatibility -// - -//--------------------------------------------------------- -// Function: GetDX9 -// Get user DX9 mode -bool spoutDX::GetDX9() -{ - DWORD dwDX9 = 0; - ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "DX9", &dwDX9); - return (dwDX9 == 1); -} - -//--------------------------------------------------------- -// Function: GetMemoryShareMode -// Get user memory share mode -bool spoutDX::GetMemoryShareMode() -{ - bool bRet = false; - DWORD dwMem = 0; - if (ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "MemoryShare", &dwMem)) { - bRet = (dwMem == 1); - } - return bRet; -} - -// -// Utilities -// - -bool spoutDX::CreateDX11texture(ID3D11Device* pd3dDevice, - unsigned int width, unsigned int height, - DXGI_FORMAT format, ID3D11Texture2D** ppTexture) -{ - HANDLE hShare = NULL; - return spoutdx.CreateSharedDX11Texture(pd3dDevice, width, height, format, ppTexture, hShare); -} - - -// -// PRIVATE -// - - -// -------------------------------------------------------- -// If a sender has not been created yet -// o Make sure DirectX is initialized -// o Create a shared texture for the sender -// o Create a sender using the DX11 shared texture handle -// If the sender exists, test for size or format change -// o Re-create the class shared texture to the new size -// o Update the sender and class variables -bool spoutDX::CheckSender(unsigned int width, unsigned int height, DWORD dwFormat) -{ - if (width == 0 || height == 0) - return false; - - // The sender needs a name - // Default is the executable name - if (!m_SenderName[0]) { - printf("CheckSender - set sender name\n"); - SetSenderName(); - } - - if (!m_bSpoutInitialized) { - - // Make sure DirectX is initialized - if (!OpenDirectX11()) - return false; - - // Save width and height to test for sender size changes - m_Width = width; - m_Height = height; - m_dwFormat = dwFormat; - - // Create a shared texture for the sender - // A sender creates a new texture with a new share handle - m_dxShareHandle = nullptr; - spoutdx.CreateSharedDX11Texture(m_pd3dDevice, m_Width, m_Height, (DXGI_FORMAT)m_dwFormat, &m_pSharedTexture, m_dxShareHandle); - - // Create a sender using the DX11 shared texture handle (m_dxShareHandle) - // and specifying the same texture format - m_bSpoutInitialized = sendernames.CreateSender(m_SenderName, m_Width, m_Height, m_dxShareHandle, m_dwFormat); - - // LJ DEBUG - // This could be a separate function SetHostPath - SharedTextureInfo info; - if (!sendernames.getSharedInfo(m_SenderName, &info)) { - SpoutLogWarning("spoutGL::SetHostPath(%s) - could not get sender info", m_SenderName); - // printf("spoutGL::SetHostPath(%s) - could not get sender info\n", m_SenderName); - return false; - } - char exepath[256]; - GetModuleFileNameA(NULL, exepath, sizeof(exepath)); - // Description is defined as wide chars, but the path is stored as byte chars - strcpy_s((char*)info.description, 256, exepath); - if (!sendernames.setSharedInfo(m_SenderName, &info)) { - SpoutLogWarning("spoutGL::SetHostPath(%s) - could not set sender info", m_SenderName); - // printf("spoutGL::SetHostPath(%s) - could not set sender info\n", m_SenderName); - } - - // printf("exepath = [%s]\n", exepath); - - - // Create a sender mutex for access to the shared texture - frame.CreateAccessMutex(m_SenderName); - - // Enable frame counting so the receiver gets frame number and fps - frame.EnableFrameCount(m_SenderName); - } - // Initialized but has the source texture changed size ? - else if (m_Width != width || m_Height != height || m_dwFormat != dwFormat) { - - // Re-create the class shared texture with the new size - if (m_pSharedTexture) m_pSharedTexture->Release(); - m_pSharedTexture = nullptr; - m_dxShareHandle = nullptr; - spoutdx.CreateSharedDX11Texture(m_pd3dDevice, width, height, (DXGI_FORMAT)dwFormat, &m_pSharedTexture, m_dxShareHandle); - - // Update the sender and class variables - sendernames.UpdateSender(m_SenderName, width, height, m_dxShareHandle, dwFormat); - m_Width = width; - m_Height = height; - m_dwFormat = dwFormat; - - } // endif initialization or size checks - - return true; - -} - - -//--------------------------------------------------------- -// Used when the sender was there but the texture pointer could not be retrieved from the share handle. -// Try using the sender adapter in case it's different. -ID3D11Texture2D* spoutDX::CheckSenderTexture(char *sendername, HANDLE dxShareHandle) -{ - // If the user has not selected adapter switching, return a NULL pointer - if (!m_bAdapt) { - SpoutLogNotice("spoutDX::CheckSenderTexture - user selected no change to sender adapter"); - return nullptr; - } - - ID3D11Texture2D* pTexture = nullptr; - int receiverindex = GetAdapter(); // Save the current adapter index - char senderadapter[128]; - int senderindex = GetSenderAdapter(sendername, senderadapter, 128); // Find the sender adapter index and name - - CloseDirectX11(); // Close the current DX11 device - SetAdapter(senderindex); // Change to the same adapter as the sender - OpenDirectX11(); // Create a new device with that adapter - - // Try again to get the texture pointer - if (!spoutdx.OpenDX11shareHandle(m_pd3dDevice, &pTexture, dxShareHandle)) { - // If that didn't work, change back to the original adapter - CloseDirectX11(); - SetAdapter(receiverindex); - OpenDirectX11(); - SpoutLogWarning("spoutDX::CheckSenderTexture - could not change to sender adapter %d (%s)", senderindex, senderadapter); - return nullptr; - } - - SpoutLogNotice("spoutDX::CheckSenderTexture - changed to sender adapter %d (%s)", senderindex, senderadapter); - - return pTexture; - -} - -//--------------------------------------------------------- -// o Connect to a sender and inform the application to update texture dimensions -// o Check for user sender selection -// o Receive texture details from the sender for write to the user texture -// o Retrieve width, height, format, share handle and texture pointer -bool spoutDX::ReceiveSenderData() -{ - m_bUpdated = false; - - // Make sure DirectX is initialized - if (!OpenDirectX11()) - return false; - - // Initialization is recorded in this class for sender or receiver - // m_Width or m_Height are established when the receiver connects to a sender - char sendername[256]; - strcpy_s(sendername, 256, m_SenderName); - - // Check the entered Sender name to see if it exists - if (sendername[0] == 0) { - // Passed name was null, so find the active sender - if (!GetActiveSender(sendername)) - return false; // No sender - } - - // If SpoutPanel has been opened, the active sender name could be different - if (CheckSpoutPanel(sendername, 256)) { - // Disable the setup name - m_SenderNameSetup[0] = 0; - } - - // Now we have either an existing sender name or the active sender name - - // Save current sender name and dimensions to test for change - unsigned int width = m_Width; - unsigned int height = m_Height; - DWORD dwFormat = m_dwFormat; - HANDLE dxShareHandle = m_dxShareHandle; - - // Try to get the sender information - // Retreive width, height, sharehandle and format. - SharedTextureInfo info; - if (sendernames.getSharedInfo(sendername, &info)) { - - // Memoryshare not supported (no texture share handle) - if (info.shareHandle == 0) { - ReleaseReceiver(); - return false; - } - - width = info.width; - height = info.height; - dxShareHandle = (HANDLE)(LongToHandle((long)info.shareHandle)); - dwFormat = info.format; - - // printf("Found sender (%dx%d) format = %d\n", width, height, dwFormat); - - // Compatible DX9 formats - // 21 = D3DFMT_A8R8G8B8 - // 22 = D3DFMT_X8R8G8B8 - if (dwFormat == 21 || dwFormat == 21) { - // Create a DX11 receiving texture with compatible format - dwFormat = (DWORD)DXGI_FORMAT_B8G8R8A8_UNORM; - } - - // The shared texture handle will be different - // o for a new sender - // o for texture size or format change - if (dxShareHandle != m_dxShareHandle) { - - // printf("Found new sender (%dx%d) format = %d\n", width, height, dwFormat); - - // Release everything and start again - ReleaseReceiver(); - - // Update the sender share handle - m_dxShareHandle = dxShareHandle; - - // Get a new shared texture pointer (m_pSharedTexture) - ID3D11Texture2D* pTexture = nullptr; - if (!spoutdx.OpenDX11shareHandle(m_pd3dDevice, &m_pSharedTexture, dxShareHandle) ) { - - // If this fails, the sender graphics adapter might be different - SpoutLogWarning("SpoutReceiver::ReceiveSenderData - could not retrieve sender texture from share handle"); - - // - // If a class device has been created within this class, - // we can re-create it on the fly using a different adapter. - // However, this can't be done if an application device was used. - // In that case, the adapter has to be changed and the device - // re-created within the application itself. - // - // Refer to the SpoutDX examples Tutorial07 and Windows Receiver. - // - if (m_bClassDevice) { - // If the the sender adapter is different, switch to it and retrieve the shared texture pointer. - // nullptr is returned if the user has not selected adapter switching with SpoutSettings. - pTexture = CheckSenderTexture(sendername, dxShareHandle); - if (!pTexture) { - // Retain the share handle so we don't query it again. - // m_pSharedTexture is null but will not be used. - // Return true and wait until another sender is selected. - return true; - } - // Use the new sender texture pointer retrieved by CheckSenderTexture - m_pSharedTexture = pTexture; - } - else { - // Wait until another sender is selected or the shared texture handle is valid. - return true; - } - } - - // Initialize again with the newly connected sender values - CreateReceiver(sendername, width, height, dwFormat); - - m_bUpdated = true; // Return to update the receiving texture or image - - } - - // Connected and intialized - // Sender name, width, height, format, texture pointer and share handle have been retrieved - - // The application can now access and copy the sender texture - return true; - - } // end find sender - - // There is no sender or the connected sender closed - return false; - -} - -// Create receiver resources for a new sender -void spoutDX::CreateReceiver(const char * SenderName, unsigned int width, unsigned int height, DWORD dwFormat) -{ - SpoutLogNotice("CreateReceiver(%s, %d x %d)", SenderName, width, height); - - if (m_bSpoutInitialized) - ReleaseReceiver(); - - // Create a named sender mutex for access to the sender's shared texture - frame.CreateAccessMutex(SenderName); - - // Enable frame counting to get the sender frame number and fps - frame.EnableFrameCount(SenderName); - - // Set class globals - strcpy_s(m_SenderName, 256, SenderName); - m_Width = width; - m_Height = height; - m_dwFormat = dwFormat; - - m_bSpoutInitialized = true; - -} - -// -// COPY FROM A DX11 STAGING TEXTURE TO A USER RGBA/RGB/BGR PIXEL BUFFER OF GIVEN SIZE -// -// A class device and context must have been created using OpenDirectX11() -// -bool spoutDX::ReadPixelData(ID3D11Texture2D* pStagingTexture, unsigned char* pixels, - unsigned int width, unsigned int height, bool bRGB, bool bInvert) -{ - if (!m_pImmediateContext || !pStagingTexture || !pixels) - return false; - - // Map the resource so we can access the pixels - D3D11_MAPPED_SUBRESOURCE mappedSubResource; - // Make sure all commands are done before mapping the staging texture - m_pImmediateContext->Flush(); - // Map waits for GPU access - HRESULT hr = m_pImmediateContext->Map(pStagingTexture, 0, D3D11_MAP_READ, 0, &mappedSubResource); - if (SUCCEEDED(hr)) { - - // Copy the staging texture pixels to the user buffer - if (!bRGB) { - // RGBA buffer - // TODO : test rgba-rgba resample - if (width != m_Width || height != m_Height) { - spoutcopy.rgba2rgbaResample(mappedSubResource.pData, pixels, m_Width, m_Height, mappedSubResource.RowPitch, width, height, bInvert); - } - else { - spoutcopy.rgba2rgba(mappedSubResource.pData, pixels, width, height, mappedSubResource.RowPitch, bInvert); - } - } - else if (m_dwFormat == 28) { - // RGB buffer - // If the texture format is RGBA it has to be converted to BGR by the staging texture copy - if (width != m_Width || height != m_Height) { - spoutcopy.rgba2bgrResample(mappedSubResource.pData, pixels, m_Width, m_Height, mappedSubResource.RowPitch, width, height, bInvert); - } - else { - spoutcopy.rgba2bgr(mappedSubResource.pData, pixels, m_Width, m_Height, mappedSubResource.RowPitch, bInvert); - } - } - else { - // Used for SpoutCam to receive RGB images - if (width != m_Width || height != m_Height) { - spoutcopy.rgba2rgbResample(mappedSubResource.pData, pixels, m_Width, m_Height, mappedSubResource.RowPitch, width, height, bInvert, m_bMirror, m_bSwapRB); - } - else { - // Approx 5 msec at 1920x1080 - spoutcopy.rgba2rgb(mappedSubResource.pData, pixels, m_Width, m_Height, mappedSubResource.RowPitch, bInvert, m_bMirror, m_bSwapRB); - } - } - - // 0.03 msec - m_pImmediateContext->Unmap(pStagingTexture, 0); - - return true; - } // endif DX11 map OK - - return false; - -} // end ReadPixelData - - -// Create new class staging textures if changed size or do not exist yet -bool spoutDX::CheckStagingTextures(unsigned int width, unsigned int height, DWORD dwFormat) -{ - if (!m_pd3dDevice) { - return false; - } - - D3D11_TEXTURE2D_DESC desc = { 0 }; - - if (m_pStaging[0] && m_pStaging[1]) { - // Get the size to test for change - m_pStaging[0]->GetDesc(&desc); - if (desc.Width != width || desc.Height != height || desc.Format != (DXGI_FORMAT)dwFormat) { - - // Staging textures must not be mapped before release - m_pStaging[0]->Release(); - m_pStaging[1]->Release(); - m_pStaging[0] = nullptr; - m_pStaging[1] = nullptr; - m_Index = 0; - m_NextIndex = 0; - // Drop through to create new textures - } - else { - return true; - } - } - - if (CreateDX11StagingTexture(width, height, (DXGI_FORMAT)dwFormat, &m_pStaging[0]) - && CreateDX11StagingTexture(width, height, (DXGI_FORMAT)dwFormat, &m_pStaging[1])) { - return true; - } - - return false; -} - - -// Create a DirectX 11 staging texture for read and write -bool spoutDX::CreateDX11StagingTexture(unsigned int width, unsigned int height, DXGI_FORMAT format, ID3D11Texture2D** pStagingTexture) -{ - if (!m_pd3dDevice) - return false; - - ID3D11Texture2D* pTexture = nullptr; - - pTexture = *pStagingTexture; // The texture pointer - if (pTexture) { - pTexture->Release(); - pTexture = nullptr; - } - - D3D11_TEXTURE2D_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.Width = width; - desc.Height = height; - desc.MipLevels = 1; - desc.ArraySize = 1; - desc.Format = format; - desc.SampleDesc.Count = 1; - desc.CPUAccessFlags = D3D11_CPU_ACCESS_READ | D3D11_CPU_ACCESS_WRITE; - desc.Usage = D3D11_USAGE_STAGING; - desc.BindFlags = 0; - - HRESULT res = m_pd3dDevice->CreateTexture2D(&desc, NULL, &pTexture); - - if (res != S_OK) { - // http://msdn.microsoft.com/en-us/library/windows/desktop/ff476174%28v=vs.85%29.aspx - char tmp[256]; - sprintf_s(tmp, 256, "spoutDirectX::CreateDX11StagingTexture ERROR : [0x%lx] : ", res); - switch (res) { - case D3DERR_INVALIDCALL: - strcat_s(tmp, 256, "D3DERR_INVALIDCALL"); - break; - case E_INVALIDARG: - strcat_s(tmp, 256, "E_INVALIDARG"); - break; - case E_OUTOFMEMORY: - strcat_s(tmp, 256, "E_OUTOFMEMORY"); - break; - default: - strcat_s(tmp, 256, "Unlisted error"); - break; - } - SpoutLogFatal("%s", tmp); - return false; - } - - *pStagingTexture = pTexture; - - return true; - -} - -// -// The following functions are adapted from equivalents in SpoutSDK.cpp -// for applications not using the entire Spout SDK. -// - -// Pop up SpoutPanel to allow the user to select a sender -// Usually activated by RH click -void spoutDX::SelectSenderPanel() -{ - HANDLE hMutex1 = NULL; - HMODULE module = NULL; - char path[MAX_PATH], drive[MAX_PATH], dir[MAX_PATH], fname[MAX_PATH]; - - // The selected sender is then the "Active" sender and this receiver switches to it. - // If Spout is not installed, SpoutPanel.exe has to be in the same folder - // as this executable. This rather complicated process avoids having to use a dialog - // which causes problems with host GUI messaging. - - // First find if there has been a Spout installation >= 2.002 with an install path for SpoutPanel.exe - if (!ReadPathFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\SpoutPanel", "InstallPath", path)) { - // Path not registered so find the path of the host program - // where SpoutPanel should have been copied - module = GetModuleHandle(NULL); - GetModuleFileNameA(module, path, MAX_PATH); - _splitpath_s(path, drive, MAX_PATH, dir, MAX_PATH, fname, MAX_PATH, NULL, 0); - _makepath_s(path, MAX_PATH, drive, dir, "SpoutPanel", ".exe"); - // Does SpoutPanel.exe exist in this path ? - if (!PathFileExistsA(path)) { - // Try the current working directory - if (_getcwd(path, MAX_PATH)) { - strcat_s(path, MAX_PATH, "\\SpoutPanel.exe"); - // Does SpoutPanel exist here? - if (!PathFileExistsA(path)) { - SpoutLogWarning("spoutDX::SelectSender - SpoutPanel path not found"); - return; - } - } - } - } - - // Check whether the panel is already running - // Try to open the application mutex. - hMutex1 = OpenMutexA(MUTEX_ALL_ACCESS, 0, "SpoutPanel"); - if (!hMutex1) { - // No mutex, so not running, so can open it - - // First release any orphaned senders if the name exists - // in the sender list but the shared memory info does not - // So that the sender list is clean - sendernames.CleanSenders(); - - // Use ShellExecuteEx so we can test its return value later - ZeroMemory(&m_ShExecInfo, sizeof(m_ShExecInfo)); - m_ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); - m_ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; - m_ShExecInfo.hwnd = NULL; - m_ShExecInfo.lpVerb = NULL; - m_ShExecInfo.lpFile = (LPCSTR)path; - m_ShExecInfo.lpDirectory = NULL; - m_ShExecInfo.nShow = SW_SHOW; - m_ShExecInfo.hInstApp = NULL; - ShellExecuteExA(&m_ShExecInfo); - - // - // The flag "m_bSpoutPanelOpened" is set here to indicate that the user - // has opened the panel to select a sender. This flag is local to - // this process so will not affect any other receiver instance - // Then when the selection panel closes, sender name is tested - // - m_bSpoutPanelOpened = true; - } - else { - // The mutex exists, so another instance is already running. - // Find the SpoutPanel window and bring it to the top. - // SpoutPanel is opened as topmost anyway but pop it to - // the front in case anything else has stolen topmost. - HWND hWnd = FindWindowA(NULL, (LPCSTR)"SpoutPanel"); - if (hWnd && IsWindow(hWnd)) { - SetForegroundWindow(hWnd); - // prevent other windows from hiding the dialog - // and open the window wherever the user clicked - SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_ASYNCWINDOWPOS | SWP_SHOWWINDOW | SWP_NOSIZE | SWP_NOMOVE); - } - else if (path[0]) { - // If the window was not found but the mutex exists - // and SpoutPanel is installed, it has crashed. - // Terminate the process and the mutex or the mutex will remain - // and SpoutPanel will not be started again. - PROCESSENTRY32 pEntry; - pEntry.dwSize = sizeof(pEntry); - bool done = false; - // Take a snapshot of all processes and threads in the system - HANDLE hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPALL, NULL); - if (hProcessSnap == INVALID_HANDLE_VALUE) { - SpoutLogError("spoutDX::OpenSpoutPanel - CreateToolhelp32Snapshot error"); - } - else { - // Retrieve information about the first process - BOOL hRes = Process32First(hProcessSnap, &pEntry); - if (!hRes) { - SpoutLogError("spoutDX::OpenSpoutPanel - Process32First error"); - CloseHandle(hProcessSnap); - } - else { - // Look through all processes - while (hRes && !done) { - int value = _tcsicmp(pEntry.szExeFile, _T("SpoutPanel.exe")); - if (value == 0) { - HANDLE hProcess = OpenProcess(PROCESS_TERMINATE, 0, (DWORD)pEntry.th32ProcessID); - if (hProcess != NULL) { - // Terminate SpoutPanel and it's mutex - TerminateProcess(hProcess, 9); - CloseHandle(hProcess); - done = true; - } - } - if (!done) - hRes = Process32Next(hProcessSnap, &pEntry); // Get the next process - else - hRes = NULL; // found SpoutPanel - } - CloseHandle(hProcessSnap); - } - } - // Now SpoutPanel will start the next time the user activates it - } // endif SpoutPanel crashed - } // endif SpoutPanel already open - - // If we opened the mutex, close it now or it is never released - if (hMutex1) CloseHandle(hMutex1); - - return; - -} // end SelectSenderPanel - -// -// Check whether SpoutPanel opened and return the new sender name -// -bool spoutDX::CheckSpoutPanel(char *sendername, int maxchars) -{ - // If SpoutPanel has been activated, test if the user has clicked OK - if (m_bSpoutPanelOpened) { // User has activated spout panel - - SharedTextureInfo TextureInfo; - HANDLE hMutex = NULL; - DWORD dwExitCode; - char newname[256]; - bool bRet = false; - - // Must find the mutex to signify that SpoutPanel has opened - // and then wait for the mutex to close - hMutex = OpenMutexA(MUTEX_ALL_ACCESS, 0, "SpoutPanel"); - - // Has it been activated - if (!m_bSpoutPanelActive) { - // If the mutex has been found, set the active flag true and quit - // otherwise on the next round it will test for the mutex closed - if (hMutex) m_bSpoutPanelActive = true; - } - else if (!hMutex) { // It has now closed - m_bSpoutPanelOpened = false; // Don't do this part again - m_bSpoutPanelActive = false; - // call GetExitCodeProcess() with the hProcess member of - // global SHELLEXECUTEINFO to get the exit code from SpoutPanel - if (m_ShExecInfo.hProcess) { - GetExitCodeProcess(m_ShExecInfo.hProcess, &dwExitCode); - // Only act if exit code = 0 (OK) - if (dwExitCode == 0) { - // SpoutPanel has been activated and OK clicked - // Test the active sender which should have been set by SpoutPanel - newname[0] = 0; - if (!sendernames.GetActiveSender(newname)) { - // Otherwise the sender might not be registered. - // SpoutPanel always writes the selected sender name to the registry. - if (ReadPathFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\SpoutPanel", "Sendername", newname)) { - // Register the sender if it exists - if (newname[0] != 0) { - if (sendernames.getSharedInfo(newname, &TextureInfo)) { - // Register in the list of senders and make it the active sender - sendernames.RegisterSenderName(newname); - sendernames.SetActiveSender(newname); - } - } - } - } - // Now do we have a valid sender name ? - if (newname[0] != 0) { - // Pass back the new name - strcpy_s(sendername, maxchars, newname); - bRet = true; - } // endif valid sender name - } // endif SpoutPanel OK - } // got the exit code - } // endif no mutex so SpoutPanel has closed - // If we opened the mutex, close it now or it is never released - if (hMutex) CloseHandle(hMutex); - return bRet; - } // SpoutPanel has not been opened - - return false; - -} - diff --git a/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX.h b/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX.h deleted file mode 100644 index 0d4e22e..0000000 --- a/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX.h +++ /dev/null @@ -1,249 +0,0 @@ -/* - - SpoutDX.h - - Sender and receiver for DirectX applications - - Copyright (c) 2014-2020, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ -#pragma once - -#ifndef __spoutDX__ -#define __spoutDX__ - -// Change the path as required -#include "..\..\SpoutGL\SpoutCommon.h" // for dll build -#include "..\..\SpoutGL\SpoutSenderNames.h" // for sender creation and update -#include "..\..\SpoutGL\SpoutDirectX.h" // for creating DX11 textures -#include "..\..\SpoutGL\SpoutFrameCount.h" // for mutex lock and new frame signal -#include "..\..\SpoutGL\SpoutCopy.h" // for pixel copy -#include "..\..\SpoutGL\SpoutUtils.h" // Registry utiities - -#include // for _getcwd -#include // for PROCESSENTRY32 -#include // for _tcsicmp - -class SPOUT_DLLEXP spoutDX { - - public: - - spoutDX(); - ~spoutDX(); - - // - // DIRECTX - // - bool OpenDirectX11(ID3D11Device* pDevice = nullptr); - ID3D11Device* GetDX11Device(); - ID3D11DeviceContext* GetDX11Context(); - void CloseDirectX11(); - bool IsClassDevice(); - - // - // SENDER - // - - // Set the sender name - bool SetSenderName(const char* sendername = nullptr); - // Set the sender texture format - void SetSenderFormat(DXGI_FORMAT format); - // Close sender and free resources - void ReleaseSender(); - // Send a texture - bool SendTexture(ID3D11Texture2D* pTexture); - // Send an image - bool SendImage(unsigned char * pData, unsigned int width, unsigned int height); - // Sender status - bool IsInitialized(); - // Sender name - const char * GetName(); - // Get width - unsigned int GetWidth(); - // Get height - unsigned int GetHeight(); - // Get frame rate - double GetFps(); - // Get frame number - long GetFrame(); - - // - // RECEIVER - // - - // Set the sender to connect to - void SetReceiverName(const char * sendername); - // Close receiver and free resources - void ReleaseReceiver(); - // Receive a texture from a sender - bool ReceiveTexture(ID3D11Texture2D** ppTexture = nullptr); - // Receive an image - bool ReceiveImage(unsigned char * pixels, unsigned int width, unsigned int height, bool bRGB = false, bool bInvert = false); - // Open sender selection dialog - void SelectSender(); - // Sender has changed - bool IsUpdated(); - // Connected to a sender - bool IsConnected(); - // Received frame is new - bool IsFrameNew(); - // Received sender share handle - HANDLE GetSenderHandle(); - // Received sender texture format - DXGI_FORMAT GetSenderFormat(); - // Received sender name - const char * GetSenderName(); - // Received sender width - unsigned int GetSenderWidth(); - // Received sender height - unsigned int GetSenderHeight(); - // Received sender frame rate - double GetSenderFps(); - // Received sender frame number - long GetSenderFrame(); - - // - // COMMON - // - - // Hold frame rate - void HoldFps(int fps); - // Disable frame counting for this application - void DisableFrameCount(); - // Return frame count status - bool IsFrameCountEnabled(); - - // - // Sender names - // - - // Get number of senders - int GetSenderCount(); - // Get sender name for a given index - bool GetSender(int index, char* sendername, int MaxSize = 256); - // Get sender details - bool GetSenderInfo(const char* sendername, unsigned int &width, unsigned int &height, HANDLE &dxShareHandle, DWORD &dwFormat); - // Get active sender name - bool GetActiveSender(char* sendername); - // set active sender name - bool SetActiveSender(const char* sendername); - // Get maximum senders allowed - int GetMaxSenders(); - // Set maximum senders allowed - void SetMaxSenders(int maxSenders); - - // - // Adapter functions - // - - // Get the number of graphics adapters in the system - int GetNumAdapters(); - // Get the adapter name for a given index - bool GetAdapterName(int index, char *adaptername, int maxchars); - // Get the current adapter index - int GetAdapter(); - // Set required graphics adapter for output - bool SetAdapter(int index = 0); - // Get sender adapter index and name fro a given sender - int GetSenderAdapter(const char* sendername, char* adaptername, int maxchars); - - // - // Sharing modes (2.006 compatibility) - // - - - - // Get user selected DX9 mode (2.006) - bool GetDX9(); - bool GetMemoryShareMode(); - - // - // Utility - // - - bool CreateDX11texture(ID3D11Device* pd3dDevice, - unsigned int width, unsigned int height, - DXGI_FORMAT format, ID3D11Texture2D** ppTexture); - - // - // Public for external access - // - - spoutSenderNames sendernames; - spoutFrameCount frame; - spoutDirectX spoutdx; - spoutCopy spoutcopy; - - // - // Options used for SpoutCam - // - - // Mirror image - bool m_bMirror; - // RGB <> BGR - bool m_bSwapRB; - -protected : - - ID3D11Device* m_pd3dDevice; - ID3D11DeviceContext* m_pImmediateContext; - ID3D11Texture2D* m_pSharedTexture; - ID3D11Texture2D* m_pStaging[2]; - int m_Index; - int m_NextIndex; - - HANDLE m_dxShareHandle; - DWORD m_dwFormat; - SharedTextureInfo m_SenderInfo; - char m_SenderNameSetup[256]; - char m_SenderName[256]; - unsigned int m_Width; - unsigned int m_Height; - bool m_bUpdated; - bool m_bConnected; - bool m_bNewFrame; - bool m_bSpoutInitialized; - bool m_bSpoutPanelOpened; - bool m_bSpoutPanelActive; - bool m_bClassDevice; - bool m_bAdapt; - SHELLEXECUTEINFOA m_ShExecInfo; - - bool CheckSender(unsigned int width, unsigned int height, DWORD dwFormat); - ID3D11Texture2D* CheckSenderTexture(char *sendername, HANDLE dxShareHandle); - - bool ReceiveSenderData(); - void CreateReceiver(const char * sendername, unsigned int width, unsigned int height, DWORD dwFormat); - - // Read pixels via staging texture - bool ReadPixelData(ID3D11Texture2D* pStagingTexture, unsigned char* pixels, unsigned int width, unsigned int height, bool bRGB, bool bInvert); - bool CheckStagingTextures(unsigned int width, unsigned int height, DWORD dwFormat = DXGI_FORMAT_B8G8R8A8_UNORM); - bool CreateDX11StagingTexture(unsigned int width, unsigned int height, DXGI_FORMAT format, ID3D11Texture2D** pStagingTexture); - - void SelectSenderPanel(); - bool CheckSpoutPanel(char *sendername, int maxchars = 256); - - -}; - -#endif diff --git a/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX12/SpoutDX12.cpp b/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX12/SpoutDX12.cpp deleted file mode 100644 index 9b5bd44..0000000 --- a/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX12/SpoutDX12.cpp +++ /dev/null @@ -1,558 +0,0 @@ -// -// spoutDX12.cpp -// -// Functions to manage DirectX 12 texture sharing by way of D3D11On12 -// Base class spoutDX for sending and receiving functions. -// -// ==================================================================================== -// Revisions : -// 04.12.20 - start class -// 26.01.21 - First working version -// -// ==================================================================================== -/* - - Copyright (c) 2014-2021. Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "SpoutDX12.h" - -spoutDX12::spoutDX12() { - - m_pd3dDevice12 = nullptr;// D3D12 device - m_pd3dDevice11 = nullptr; // D3D11 device - m_pd3dDeviceContext11 = nullptr; // D3D11 context - m_pd3d11On12Device = nullptr; // D3D11on12 device - m_bClassDevice = false; // External or class D3D12 device - m_pReceivedResource11 = nullptr; // The wrapped D3D11 resource for D3D12 - -} - -spoutDX12::~spoutDX12() { - - if (m_pd3dDevice12) m_pd3dDevice12->Release(); - if (m_pd3dDevice11) m_pd3dDevice11->Release(); - if (m_pd3dDeviceContext11) m_pd3dDeviceContext11->Release(); - if (m_pd3d11On12Device) m_pd3d11On12Device->Release(); - -} - -bool spoutDX12::OpenDirectX12() -{ - return OpenDirectX12(nullptr, nullptr); -} - -bool spoutDX12::OpenDirectX12(ID3D12Device* pd3dDevice12, IUnknown** ppCommandQueue) -{ - if (!m_pd3dDevice12) { - if (pd3dDevice12) { - SpoutLogNotice("spoutDX12::OpenDirectX12(0x%.7X)", PtrToUint(pd3dDevice12)); - m_pd3dDevice12 = pd3dDevice12; - // Create a class 11on12 device using the dx12 device and command queue - if (!CreateDX11on12device(m_pd3dDevice12, ppCommandQueue)) { - SpoutLogWarning("spoutDX12::OpenDirectX12 - CreateDX11on12device 1 failed"); - CloseDirectX12(); - return false; - } - m_bClassDevice = false; // An existing device pointer was used - } - else { - // Create a class DirectX 12 device - m_pd3dDevice12 = CreateDX12device(); - if (!m_pd3dDevice12) { - SpoutLogWarning("spoutDX12::OpenDirectX12 - Could not create DX12 device"); - return false; - } - // Create a class 11on12 device using the class dx12 device and no command queue - if (!CreateDX11on12device(m_pd3dDevice12)) { - CloseDirectX12(); - SpoutLogWarning("spoutDX12::OpenDirectX12 - CreateDX11on12device 2 failed"); - return false; - } - SpoutLogNotice("spoutDX12::OpenDirectX12() - (%.7X)", PtrToUint(pd3dDevice12)); - } - } - else { - SpoutLogNotice("spoutDX12::OpenDirectX12 device already created - (%.7X)", PtrToUint(pd3dDevice12)); - } - - // Initialize DirectX11 using the D3D11 device created by CreateDX11on12device - // so that textures are created with that device and can be copied. - OpenDirectX11(m_pd3dDevice11); - - return true; -} - - -void spoutDX12::CloseDirectX12() -{ - SpoutLogNotice("spoutDX12::CloseDirectX12()"); - - // Quit if already released - if (!m_pd3dDevice12) { - SpoutLogNotice(" Device already released"); - return; - } - - // Release class D3D11on12 - if (m_pd3dDevice11) m_pd3dDevice11->Release(); // D3D11 device - if (m_pd3dDeviceContext11) m_pd3dDeviceContext11->Release(); // D3D11 context - if (m_pd3d11On12Device) m_pd3d11On12Device->Release(); // D3D11on12 device - m_pd3dDevice11 = nullptr; - m_pd3dDeviceContext11 = nullptr; - m_pd3d11On12Device = nullptr; - - // Release class D3D12 - if(m_pd3dDevice12) m_pd3dDevice12->Release(); - m_pd3dDevice12 = nullptr; - - // Release D3D11 - CloseDirectX11(); - -} - -// Send wrapped D3D11on12 D3D11 texture resource -bool spoutDX12::SendDX11Resource(ID3D11Resource *pWrappedResource) -{ - if (!pWrappedResource || !m_pd3d11On12Device || !m_pd3dDeviceContext11) - return false; - - m_pd3d11On12Device->AcquireWrappedResources(&pWrappedResource, 1); - // SendTexture handles sender creation and resizing - bool bRet = SendTexture((ID3D11Texture2D*)pWrappedResource); - m_pd3d11On12Device->ReleaseWrappedResources(&pWrappedResource, 1); - // Flush to submit the 11 command list to the shared command queue. - m_pd3dDeviceContext11->Flush(); - - return bRet; - -} - - -// Receive a texture from a sender to a D3D12 texture resource -bool spoutDX12::ReceiveDX12Resource(ID3D12Resource** ppDX12Resource) -{ - // Return if flagged for update - // The update flag is reset when the receiving application calls IsUpdated() - if (m_bUpdated) - return true; - - // Try to receive texture details from a sender - if (ReceiveSenderData()) { - - // Was the shared texture pointer retrieved ? - if (!m_pSharedTexture) { - return false; - } - - // The sender name, width, height, format, shared texture handle and pointer have been retrieved. - if (m_bUpdated) { - - // If the sender is new or changed, return to update the receiving D3D12 texture resource. - // The application detects the change with IsUpdated(). - - // Release the wrapped 11On12 D3D11 resource because - // it has to be re-created for the new receiving texture - if (m_pReceivedResource11) - m_pReceivedResource11->Release(); - m_pReceivedResource11 = nullptr; - return true; - } - - // The application receiving texture is created - // by the application on the first update above - // ready for copy from the sender's shared texture. - ID3D12Resource* pDX12Resource = *ppDX12Resource; - if (!pDX12Resource) { - // SpoutLog - return false; - } - - // Is a wrapped resource created yet? - if (!m_pReceivedResource11) { - if (!WrapDX12Resource(pDX12Resource, &m_pReceivedResource11)) { - // SpoutLog - return false; - } - } - - - // - // Found a sender - // - - // Access the sender shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - m_bNewFrame = false; // For query of new frame - // Check if the sender has produced a new frame. - if (frame.GetNewFrame()) { - // Copy from the sender's shared texture to the wrapped receiving texture. - UpdateWrappedResource(m_pReceivedResource11, m_pSharedTexture); - m_bNewFrame = true; // The application can query IsNewFrame() - } - } - // Allow access to the shared texture - frame.AllowTextureAccess(m_pSharedTexture); - - m_bConnected = true; - - } // sender exists - else { - // There is no sender or the connected sender closed. - ReleaseReceiver(); - // Release the wrapped 11On12 D3D11 resource - if (m_pReceivedResource11) - m_pReceivedResource11->Release(); - m_pReceivedResource11 = nullptr; - // Let the application know. - m_bConnected = false; - } - - // ReceiveTexture fails if there is no sender or the connected sender closed. - return m_bConnected; - -} - - -// Create a D3D11on12 device -ID3D11On12Device* spoutDX12::CreateDX11on12device(ID3D12Device* pDevice12, IUnknown** ppCommandQueue) -{ - ID3D11Device* pDevice11 = nullptr; - ID3D11DeviceContext* pContext11 = nullptr; - ID3D11On12Device* pd3d11On12Device = nullptr; // D3D11on12 device - - // Only allowing for one queue - int numQueues = 0; - if (ppCommandQueue) - numQueues = 1; - - // Release the class device - if (m_pd3d11On12Device) - m_pd3d11On12Device->Release(); - m_pd3d11On12Device = nullptr; - - UINT DeviceFlags11 = D3D11_CREATE_DEVICE_BGRA_SUPPORT; - - HRESULT hRes = D3D11On12CreateDevice( - pDevice12, // DX12 device - DeviceFlags11, // FLAGS - nullptr, // Feature level table - 0, // Feature levels - ppCommandQueue, // command queues - numQueues, // Num queues - 0, // NodeMask - &pDevice11, // D3D11 device - &pContext11, // D3D11 context - nullptr - ); - - if (FAILED(hRes)) { - SpoutLogError("spoutDX12::CreateDX11on12device fail"); - return false; - } - - // Grab interface to the d3d11on12 device from the newly created d3d11 device - hRes = pDevice11->QueryInterface(__uuidof(ID3D11On12Device), (void**)&pd3d11On12Device); - if (FAILED(hRes)) { - SpoutLogError("failed to query 11on12 device"); - return false; - } - - SpoutLogNotice("spoutDX12::CreateDX11on12device - (0x%.7X)", PtrToUint(pd3d11On12Device)); - - // Update globals - m_pd3d11On12Device = pd3d11On12Device; - m_pd3dDevice11 = pDevice11; - m_pd3dDeviceContext11 = pContext11; - - return pd3d11On12Device; - -} - -// Wrap a D3D12 resource for use with D3D11 -bool spoutDX12::WrapDX12Resource(ID3D12Resource* pDX12Resource, ID3D11Resource** ppWrapped11Resource) -{ - HRESULT hr = S_OK; - - if (!m_pd3d11On12Device || !pDX12Resource || !ppWrapped11Resource) - return false; - - // A D3D11_RESOURCE_FLAGS structure that enables an application to override flags - // that would be inferred by the resource/heap properties. - // The D3D11_RESOURCE_FLAGS structure contains bind flags, misc flags, and CPU access flags. - D3D11_RESOURCE_FLAGS d3d11Flags = {}; // { D3D11_BIND_RENDER_TARGET }; - - // Create a wrapped resource to access our d3d12 resource from the d3d11 device - // Note: D3D12_RESOURCE_STATE variables are: - // (1) the state of the d3d12 resource when we acquire it - // (when the d3d12 pipeline is finished with it and we are ready to use it in d3d11) - // (2) when we are done using it in d3d11 (we release it back to d3d12) - // these are the states our resource will be transitioned into - hr = m_pd3d11On12Device->CreateWrappedResource( - pDX12Resource, // A pointer to an already-created D3D12 resource or heap. - &d3d11Flags, - D3D12_RESOURCE_STATE_COPY_DEST, // D3D12_RESOURCE_STATE_RENDER_TARGET, // InState - D3D12_RESOURCE_STATE_PRESENT, // OutState - IID_PPV_ARGS(ppWrapped11Resource)); // Lazy - - if (FAILED(hr)) { - SpoutLogError("spoutDX12::WrapDX12Resource - failed to create wrapped resource (%d 0x%.7X)", LOWORD(hr), UINT(hr)); - // TODO - error reports - // E_INVALIDARG 0x57 - // E_NOTIMPL 0x4001 - // DXGI_ERROR_INVALID_CALL 0xa001 - // D3DERR_INVALIDCALL - return false; - } - - SpoutLogNotice("spoutDX12::WrapDX12Resource (0x%.7X, 0x%.7X)", PtrToUint(pDX12Resource), PtrToUint(*ppWrapped11Resource)); - - return true; -} - - -// Update a wrapped D3D11 texture resource with a D3D11 texture -void spoutDX12::UpdateWrappedResource(ID3D11Resource* pWrappedResource, ID3D11Resource *pResource) -{ - if (!pResource || !pWrappedResource || !m_pd3d11On12Device || !m_pd3dDeviceContext11) - return; - - m_pd3d11On12Device->AcquireWrappedResources(&pWrappedResource, 1); - m_pd3dDeviceContext11->CopyResource(pWrappedResource, pResource); - m_pd3d11On12Device->ReleaseWrappedResources(&pWrappedResource, 1); - m_pd3dDeviceContext11->Flush(); -} - - -// Create a D3D12 texture resource -bool spoutDX12::CreateDX12texture(ID3D12Device* pd3dDevice12, - unsigned int width, - unsigned int height, - D3D12_RESOURCE_STATES InitialState, - DXGI_FORMAT *format, - ID3D12Resource** ppTexture) -{ - if (!pd3dDevice12) { - SpoutLogFatal("spoutDX12::CreateSharedDX12Texture NULL device"); - return false; - } - - if (!ppTexture) { - SpoutLogWarning("spoutDX12::CreateDX12Texture NULL texture pointer"); - return false; - } - SpoutLogNotice("spoutDX12::CreateDX12Texture"); - - ID3D12Resource* pTexture12 = *ppTexture; - - // Release the texture if it already exists - if (pTexture12) - pTexture12->Release(); - - // Use the format passed in. If that is zero or DX9, use the default format. - DXGI_FORMAT texformat = DXGI_FORMAT_B8G8R8A8_UNORM; - if (*format != 0 && *format != 21) // D3DFMT_A8R8G8B8 = 21 - texformat = *format; - - // Describe and create a Texture2D - D3D12_RESOURCE_DESC textureDesc = {}; - textureDesc.MipLevels = 1; - textureDesc.Format = texformat; - textureDesc.Width = width; - textureDesc.Height = height; - textureDesc.Flags = D3D12_RESOURCE_FLAG_NONE; - textureDesc.DepthOrArraySize = 1; - textureDesc.SampleDesc.Count = 1; - textureDesc.SampleDesc.Quality = 0; - textureDesc.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D; - - DX12_HEAP_PROPERTIES heapprop = DX12_HEAP_PROPERTIES(D3D12_HEAP_TYPE_DEFAULT); - try { - pd3dDevice12->CreateCommittedResource( - &heapprop, - D3D12_HEAP_FLAG_NONE, - &textureDesc, - InitialState, - nullptr, - IID_PPV_ARGS(&pTexture12)); - } - catch (...) { - SpoutLogError("spoutDX12::CreateDX12Texture - exception"); - return false; - } - - SpoutLogNotice("spoutDX12::CreateDX12Texture - 0x%.7X", PtrToUint(pTexture12)); - - *format = texformat; - *ppTexture = pTexture12; - - return true; - -} - -// D3D12 device -ID3D12Device* spoutDX12::GetD3D12device() -{ - return m_pd3dDevice12; -} - -// D3D11on12 D3D11 device -ID3D11Device* spoutDX12::GetD3D11device() -{ - return m_pd3dDevice11; -} - -// D3D11on12 D3D11 context -ID3D11DeviceContext* spoutDX12::GetD3D11context() -{ - return m_pd3dDeviceContext11; -} - -// D3D11on12 device -ID3D11On12Device* spoutDX12::GetD3D11On12device() -{ - return m_pd3d11On12Device; -} - - -// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -// -// Private functions -// - -// Create DX12 device -ID3D12Device* spoutDX12::CreateDX12device() -{ - - ID3D12Device* pd3dDevice12 = nullptr; - HRESULT hRes = S_OK; - - IDXGIFactory1* factory1 = nullptr; - if (FAILED(CreateDXGIFactory1(__uuidof(IDXGIFactory1), (void**)&factory1))) - return false; - - // Release the class device - if (m_pd3dDevice12) - m_pd3dDevice12->Release(); - m_pd3dDevice12 = nullptr; - - IDXGIAdapter1* hardwareAdapter = nullptr; - GetHardwareAdapter(factory1, &hardwareAdapter); - factory1->Release(); - - DXGI_ADAPTER_DESC desc; - hardwareAdapter->GetDesc(&desc); - // printf("hardwareAdapter : %S\n", desc.Description); - - hRes = D3D12CreateDevice(hardwareAdapter, - D3D_FEATURE_LEVEL_11_0, - _uuidof(ID3D12Device), - (void **)&pd3dDevice12); - - if (FAILED(hRes)) { - SpoutLogError("spoutDX12::CreateDX12device fail"); - return false; - } - SpoutLogNotice("spoutDX12::CreateDX12device - 0x%.7X", PtrToUint(pd3dDevice12)); - - // Set the class device - m_pd3dDevice12 = pd3dDevice12; - - return pd3dDevice12; - -} // end CreateDX12device - - -// Helper function for acquiring the first available hardware adapter that supports Direct3D 12. -// If no such adapter can be found, *ppAdapter will be set to nullptr. -// _Use_decl_annotations_ -// Copied from Microsoft examples. -void spoutDX12::GetHardwareAdapter(IDXGIFactory1* pFactory, - IDXGIAdapter1** ppAdapter, - bool requestHighPerformanceAdapter) -{ - *ppAdapter = nullptr; - - IDXGIAdapter1* adapter; - IDXGIFactory6* factory6; - - if (SUCCEEDED(pFactory->QueryInterface(IID_PPV_ARGS(&factory6)))) - { - for ( - UINT adapterIndex = 0; - DXGI_ERROR_NOT_FOUND != factory6->EnumAdapterByGpuPreference( - adapterIndex, - requestHighPerformanceAdapter == true ? DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE : DXGI_GPU_PREFERENCE_UNSPECIFIED, - IID_PPV_ARGS(&adapter)); - ++adapterIndex) - { - DXGI_ADAPTER_DESC1 desc; - adapter->GetDesc1(&desc); - // printf("adapter %d : %S\n", adapterIndex, desc.Description); - if (desc.Flags & DXGI_ADAPTER_FLAG_SOFTWARE) - { - // Don't select the Basic Render Driver adapter. - // If you want a software adapter, pass in "/warp" on the command line. - continue; - } - - // Check to see whether the adapter supports Direct3D 12, but don't create the - // actual device yet. - if (SUCCEEDED(D3D12CreateDevice(adapter, D3D_FEATURE_LEVEL_11_0, _uuidof(ID3D12Device), nullptr))) - { - break; - } - } - } - else - { - for (UINT adapterIndex = 0; DXGI_ERROR_NOT_FOUND != pFactory->EnumAdapters1(adapterIndex, &adapter); ++adapterIndex) - { - DXGI_ADAPTER_DESC1 desc; - adapter->GetDesc1(&desc); - - if (desc.Flags & DXGI_ADAPTER_FLAG_SOFTWARE) - { - // Don't select the Basic Render Driver adapter. - // If you want a software adapter, pass in "/warp" on the command line. - continue; - } - - // Check to see whether the adapter supports Direct3D 12, but don't create the - // actual device yet. - HRESULT hr = D3D12CreateDevice(adapter, - D3D_FEATURE_LEVEL_11_0, - _uuidof(ID3D12Device), - nullptr); - - if (SUCCEEDED(hr)) - { - break; - } - } - } - - *ppAdapter = adapter; - -} diff --git a/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX12/SpoutDX12.h b/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX12/SpoutDX12.h deleted file mode 100644 index 6ed3dd2..0000000 --- a/Plugin/Spout/SpoutDirectX/SpoutDX/SpoutDX12/SpoutDX12.h +++ /dev/null @@ -1,138 +0,0 @@ -/* - - spoutDX12.h - - Functions to manage DirectX 12 texture sharing by way of the D3D11On12 - - Copyright (c) 2014 - 2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ -#pragma once -#ifndef __spoutDX12__ -#define __spoutDX12__ - -#include "..\SpoutDX.h" // Base class - -#include -#include -#include // for IDXGIFactory6 in GetHardwareAdapter -#pragma comment (lib, "d3d12.lib")// the Direct3D 11 Library file -#pragma comment (lib, "DXGI.lib") // for CreateDXGIFactory1 - - -// Copied from Microsoft examples -struct DX12_HEAP_PROPERTIES : public D3D12_HEAP_PROPERTIES -{ - DX12_HEAP_PROPERTIES() = default; - explicit DX12_HEAP_PROPERTIES(const D3D12_HEAP_PROPERTIES &o) noexcept : - D3D12_HEAP_PROPERTIES(o) - {} - DX12_HEAP_PROPERTIES( - D3D12_CPU_PAGE_PROPERTY cpuPageProperty, - D3D12_MEMORY_POOL memoryPoolPreference, - UINT creationNodeMask = 1, - UINT nodeMask = 1) noexcept - { - Type = D3D12_HEAP_TYPE_CUSTOM; - CPUPageProperty = cpuPageProperty; - MemoryPoolPreference = memoryPoolPreference; - CreationNodeMask = creationNodeMask; - VisibleNodeMask = nodeMask; - } - explicit DX12_HEAP_PROPERTIES( - D3D12_HEAP_TYPE type, - UINT creationNodeMask = 1, - UINT nodeMask = 1) noexcept - { - Type = type; - CPUPageProperty = D3D12_CPU_PAGE_PROPERTY_UNKNOWN; - MemoryPoolPreference = D3D12_MEMORY_POOL_UNKNOWN; - CreationNodeMask = creationNodeMask; - VisibleNodeMask = nodeMask; - } - bool IsCPUAccessible() const noexcept - { - return Type == D3D12_HEAP_TYPE_UPLOAD || Type == D3D12_HEAP_TYPE_READBACK || (Type == D3D12_HEAP_TYPE_CUSTOM && - (CPUPageProperty == D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE || CPUPageProperty == D3D12_CPU_PAGE_PROPERTY_WRITE_BACK)); - } -}; - - -class spoutDX12 : public spoutDX { - - public: - - spoutDX12(); - ~spoutDX12(); - - // Initialize and prepare DirectX 12 - bool OpenDirectX12(); - bool OpenDirectX12(ID3D12Device* pd3dDevice12, IUnknown** ppCommandQueue); - - // Release DirectX 12 - void CloseDirectX12(); - - // Send wrapped D3D11on12 D3D11 texture resource - bool SendDX11Resource(ID3D11Resource *pWrappedResource); - - // Receive a texture from a sender to a D3D12 texture resource - bool ReceiveDX12Resource(ID3D12Resource** ppDX12Resource); - - // Create a D3D11on12 device - ID3D11On12Device* CreateDX11on12device(ID3D12Device* pDevice12, IUnknown** ppCommandQueue = nullptr); - - // Wrap a D3D12 resource for use with D3D11 - bool WrapDX12Resource(ID3D12Resource* pDX12Resource, ID3D11Resource** ppWrapped11Resource); - - // Update a wrapped D3D11 texture resource with a D3D11 texture - void UpdateWrappedResource(ID3D11Resource* pWrappedResource, ID3D11Resource *pResource); - - // Create a D3D12 texture resource - bool CreateDX12texture(ID3D12Device* pDevice12, - unsigned int width, unsigned int height, - D3D12_RESOURCE_STATES InitialState, - DXGI_FORMAT *format, ID3D12Resource** ppTexture); - - // Device pointers - ID3D12Device* GetD3D12device(); // D3D12 device - ID3D11Device* GetD3D11device(); // D3D11 device - ID3D11DeviceContext* GetD3D11context(); // D3D11 context - ID3D11On12Device* GetD3D11On12device(); // D3D11on12 device - - protected: - - ID3D12Device* CreateDX12device(); - void GetHardwareAdapter(IDXGIFactory1* pFactory, IDXGIAdapter1** ppAdapter, bool requestHighPerformanceAdapter = false); - - ID3D12Device* m_pd3dDevice12; // D3D12 device - ID3D11Device* m_pd3dDevice11; // D3D11 device - ID3D11DeviceContext* m_pd3dDeviceContext11; // D3D11 context - ID3D11On12Device* m_pd3d11On12Device; // D3D11on12 device - bool m_bClassDevice; // Using a class or application device - - // The wrapped D3D11 resource for D3D12 - ID3D11Resource* m_pReceivedResource11; - -}; - -#endif diff --git a/Plugin/Spout/SpoutGL/Spout.cpp b/Plugin/Spout/SpoutGL/Spout.cpp deleted file mode 100644 index 4f7cf1d..0000000 --- a/Plugin/Spout/SpoutGL/Spout.cpp +++ /dev/null @@ -1,1964 +0,0 @@ -// -// SpoutSDK -// -// Documentation -// -// ==================================================================================== -// Revisions : -// -// 14-07-14 - SelectSenderPanel - return true was missing. -// 16-07-14 - deleted fbo & texture in SpoutCleanup - test for OpenGL context -// - used CopyMemory in FlipVertical instead of memcpy -// - cleanup -// 18-07-14 - removed SpoutSDK local fbo and texture - used in the interop class now -// 22-07-14 - added option for DX9 or DX11 -// 25-07-14 - Malcolm Bechard mods to header to enable compilation as a dll -// - ReceiveTexture - release receiver if the sender no longer exists -// - ReceiveImage same change - to be tested -// 27-07-14 - CreateReceiver - bUseActive flag instead of null name -// 31-07-14 - Corrected DrawTexture aspect argument -// 01-08-14 - TODO - work on OpenReceiver for memoryshare -// 03-08-14 - CheckSpoutPanel allow for unregistered sender -// 04-08-14 - revise CheckSpoutPanel -// 05-08-14 - default true for setverticalsync in sender and receiver classes -// 11-08-14 - fixed incorrect name arg in OpenReceiver for ReceiveTexture / ReceiveImage -// 2.004 release 19-08-14 -// 24-08-14 - changed back to WM_PAINT message instead of RedrawWindow due to FFGL receiver bug appearing again -// 27-08-14 - removed texture init check from SelectSenderPanel -// 29-08-14 - changed SelectSenderPanel to use revised SpoutPanel with user message support -// 03.09.14 - cleanup -// 15.09.14 - protect against null string copy in SelectSenderPanel -// 22.09.14 - checking of bUseAspect function in CreateReceiver -// 23.09.14 - test for DirectX 11 support in SetDX9 and GetDX9 -// 24.09.14 - updated project file for DLL to include SpoutShareMemory class -// 28.09.14 - Added GL format for SendImage and FlipVertical -// - Added bAlignment (4 byte alignment) flag for SendImage -// - Added Host FBO for SendTexture, DrawToSharedTexture -// - Added Host FBO for ReceiveTexture -// 11.10.14 - Corrected UpdateSender to recreate sender using CreateInterop -// - Corrected SelectSenderpanel so that an un-initialized string is not used -// 12.10.14 - Included SpoutPanel always bring to topmost in SelectSenderPanel -// - allowed for change of sender size in DrawToSharedTexture -// 15.10.14 - added debugging aid for texture access locks -// 29.10.14 - changes to SendImage -// 23.12.14 - added host fbo arg to ReceiveImage -// 30.01.15 - Read SpoutPanel path from registry (dependent on revised installer) -// Next path checked is module path, then current working directory -// 06.02.15 - added #pragma comment(lib,.. for "Shell32.lib" and "Advapi32.lib" -// 10.02.15 - added Optimus NvOptimusEnablement export to Spout.h - should apply to all apps including this SDK. -// 22.02.15 - added FindFileVersion for future use -// 24.05.15 - Registry read of sender name for CheckSpoutPanel (see SpoutPanel) -// 29.05.15 - Included SetAdapter for multiple adapters - Franz Hildgen. -// 01.06.15 - Read/Write DX9 mode from registry -// 02.06.15 - Added GetAdapter, GetNumAdapters, GetAdapterName -// 04.07.15 - corrected "const char *" arg for GetSenderInfo -// 08.07.15 - Recompile for global DX9 flag -// 01.08.15 - OpenReceiver - safety in case no opengl context -// 22.08.15 - Change to CheckSpoutPanel to wait for SpoutPanel mutex to open and then close -// 24.08.15 - Added GetHostPath to retrieve the path of the host that produced the sender -// 01.09.15 - added MessageBox error warnings in InitSender for better user diagnostics -// also added MessageBox warnings in SpoutGLDXinterop::CreateInterop -// 09.09.15 - included g_ShareHandle in CheckSpoutPanel -// - removed bGLDXcompatibleShareInitOK becasue there is no single initialization any more -// 12.09.15 - Incremented application sender name if one already exists with the same name -// - Finalised revised SpoutMemoryShare class and functions -// 15.09.15 - Disable memoryshare if the 2.005 installer has not set the "MemoryShare" key -// to avoid problems with 2.004 apps. -// - Change logic of OpenSpout so that fails for incompatible hardware -// if memoryshare is not set. Only 2.005 apps can set memoryshare.\ -// 19.09.15 - Changed GetImageSize to look for NULL sharehandle of a sender to determine -// if it is memoryshare. Used by SpoutCam. -// 22.09.15 - Fixed memoryshare sender update in UpdateSender -// 25.09.15 - Changed SetMemoryShareMode for 2.005 - now will only set true for 2.005 and above -// 09.10.15 - DrawToSharedTexture - invert default false instead of true -// 10.10.15 - CreateSender - introduced a temporary DX shared texture for 2.005 memoryshare to prevent -// a crash with existing 2.004 apps -// 22.10.15 - Changed CheckSpoutPanel so that function variables are only created if SpoutPanel has been opened -// 26.10.15 - Added bIsSending and bIsReceiving for safety release of sender in destructor. -// 14.11.15 - changed functions to "const char *" where required -// 18.11.15 - added CheckReceiver so that DrawSharedTexture can be used by a receiver -// 24.11.15 - changes to CheckSpoutPanel to favour ActiveSender over the Registry sender name (used by VVVV) -// - Reintroduced 250msec sleep after SpoutPanel activation -// 29.11.15 - fixed const char problem in ReadPathFromRegistry -// 18.01.16 - added CleanSenders before opening a new sender in case of orphaned sender names in the list -// 10.02.16 - added RemovePathFromRegistry -// 26.02.16 - recompile for Processing library 2.0.5.2 release -// 06.03.16 - added GetSpoutSenderName() and IsSpoutInitialized() for access to globals -// 17.03.16 - removed alignment argument from ReceiveImage -// Check for bgra extensions in receiveimage and sendimage -// Support only for rgba or bgra -// Changed to const unsigned char for Sendimage buffer -// 21.03.16 - Added glFormat and bInvert to SendImage -// - Included LoadGLextensions in InitSender and InitReceiver for memoryshare mode. -// 24.03.16 - Added HostFBO argument to WriteMemory and ReadMemory function calls. -// 04.04.16 - Added HostFBO argument to SendImage - only used for texture share -// Merge from Smokhov https://github.com/leadedge/Spout2/pull/14 -// - Changed default invert flag for SendImage to true. -// 24.04.16 - Added IsPBOavailable to test for PBO support. -// 04.05.16 - SetPBOavailable(true/false) added to enable/disable pbo functions -// 07.05.16 - SetPBOavailable changed to SetBufferMode -// 18.06.16 - Add invert to ReceiveImage -// 2.005 release 23-06-16 -// 29.06.16 - Added ReportMemory() for debugging -// - Changed OpenSpout to fail for DX9 if no hwnd -// https://github.com/leadedge/Spout2/issues/18 -// 03.07.16 - Fix dwFormat repeat declaration in InitSender -// 15.01.17 - Add GetShareMode, SetShareMode -// 18.01.17 - GetImageSize redundant for 2.006 -// 22.01.17 - include zero char in SelectSenderPanel NULL arg checks -// 25.05.17 - corrected SendImage UpdateSender to use passed width and height -// 2.006 release 08-02-17 -// -// VS2015 -// -// 02.06.17 - Registry functions moved to SpoutUtils -// 06.06.17 - Added GLDXavailable to OpenSpout -// 09.06.17 - removed g_TexID - not used -// 05.10.17 - https://github.com/leadedge/Spout2/issues/24 -// - OpenReceiver simplify code -// - CheckSpoutPanel simplify code, remove text file sender retrieval -// - Add InitReceiver override to include sharehandle and format args -// 10.03.18 - Noted that change to OpenReceiver for offscreen rendering -// not needed because hwnd can be null for spoutdx.CreateDX9device -// https://github.com/leadedge/Spout2/issues/18 -// -// VS2017 -// -// 23.08.18 - Add SendFboTexture - see changes to WriteGLDXtexture in SpoutGLDXinterop.cpp -// 17.10.18 - Retrieve global render window handle in OpenSpout -// 01.11.18 - SendImage bInvert default false to align with SpoutSender.cpp -// 01.11.18 - Changes to SelectSenderPanel to terminate SpoutPanel if it has crashed. -// 03.11.18 - Texture creation patch for compatibility with 2.004 removed for Spout 2.007 -// 13.11.18 - Remove CPU mode -// 24.11.18 - Remove redundant GetImageSize -// 27.11.18 - Add RemovePadding for correction of image stride -// 28.11.18 - Add IsFrameNew and HasNewFrame -// 14.12.18 - Clean up for SpoutLibrary -// 15.12.18 - UpdateSender - release and re-create sender to avoid memory leak -// 17.12.18 - Change Spout dll Project properties to / MT -// 28.12.18 - Check mutex handle before close in CheckSpoutPanel -// 28.12.18 - Rebuild Spout.dll 32 / 64bit - Version 2.007 -// 03.01.19 - Changed to revised registry functions in SpoutUtils -// 04.01.19 - Add OpenGL window creation functions for SpoutLibrary -// 05.01.19 - Change names for high level receiver functions for SpoutLibrary -// 16.01.19 - Fix ReceiveTextureData for sender name change -// 22.01.19 - Remove unsused bIsReceiving flag -// 05.03.19 - Add log notice for ReleaseSender -// 05.04.19 - Change GetSenderName to GetSender -// Reserve const char * GetSenderName for receiver class -// 17.06.19 - Fix missing log warning argument in UpdateSender -// 26.06.19 - Cleanup changes to UpdateSender -// 13.01.20 - Removed sleep time for SpoutPanel to open -// 19.01.20 - Change SendFboTexture to SendFbo -// 20.01.20 - Corrected SendFbo for width/height < shared texture -// 21.01.20 - Remove auto sender update in send functions -// Remove debug print from InitSender -// 25.05.20 - Correct filename case for all #includes throughout -// 14.07.20 - Removed unused bChangeRequested flag -// 18.07.20 - Rebuild binaries Win32 and x64 /MT VS2017 -// 04.09.20 - Dynamic switch between memory and texture share modes -// 05.09.20 - OpenReceiver - Switch to memoryshare if receiver and sender use different GPU -// See SpoutGLDXinterop to set adapter index to "usage" field in sender shared memory -// 06.09.20 - Do not change share mode flags in SpoutCleanup -// 07.09.20 - Correct receiver switch from memory to texture if texture compatible -// 08.09.20 - OpenReceiver - remove warning log for receiver and sender using a different GPU -// InitSender - switch to memoryshare on CreateInterop failure -// 09.09.20 - SetAdapter - reset and perform compatibility test -// 15.09.20 - Remove SpoutMessageBox from OpenSpout() -// Failure must be handled by the application -// 17.09.20 - Change GetMemoryShare(const char* sendername) to -// GetSenderMemoryShare(const char* sendername) for compatibility with SpoutLibrary -// Add GetSenderAdapter -// 18.09.20 - Add SetSenderAdapter -// 22.09.20 - OpenReceiver sender/receiver GPU check -// 23.09.20 - Corrected SetSenderAdapter -// Logic corrections -// 24.09.20 - Correction of SetSenderAdapter as bool not void -// 25.09.20 - Remove GetSenderAdapter/SetSenderAdapter - not reliable -// 17.10.20 - Change SetDX9format from D3D_FORMAT to DWORD -// -// 27.12.20 - Multiple changes for SpoutGL base class - see SpoutSDK.cpp -// Remove DX9 support -// CPU backup enhanced using dual DirectX staging textures -// Auto switch to CPU backup if GL/DX incompatible -// 10.01.21 - SetSenderName - auto increment of sender name if the sender already exists -// 12.01.21 - Release orphaned senders in SelectSenderPanel -// - CheckSender : write host path to the sender shared memory Description field -// in spoutSenderNames::CreateSender -// 13.01.21 - Release orphaned senders in SpoutPanel.exe instead of SelectSenderPanel -// Additional checks for un-registered senders -// -// ==================================================================================== -/* - - Copyright (c) 2014-2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ -#include "Spout.h" - -// Class: Spout -// -// -// -// Main class for Spout OpenGL texture sharing -// -// Contains both Sender and Receiver functions. -// -// This class and other source files are included in a project -// -// Files required are (.h and .cpp) : -// -// - Spout -// - SpoutCommon -// - SpoutCopy -// - SpoutDirectX -// - SpoutFramecount -// - SpoutGL -// - SpoutGLextensions -// - SpoutSenderNames -// - SpoutSharedMemory -// - SpoutUtils -// -// Note that Sender and Receiver functions cannot be used within the same object. -// The SpoutSender and SpoutReceiver classes are convenience wrappers which -// insulate the sending and receiving functions for the programmer. -// -// - SpoutSender -// - SpoutReceiver -// -// You can also use the Spout SDK as a dll. To build the dll, refer to the -// Visual Studio project in the VS2017 folder and the CMake build documentation. -// Also refer to the SpoutLibrary folder for a C-compatible dll which can be -// used with compilers other than Visual Studio. -// -// More detailed information can be found in the header files SpoutSDK.h and SpoutGL.h. -// Functions for individual classes are documented within the respective source files. -// You can access these from the following objects included in the Spout class. -// -// - spoutDirectX spoutdx; (DirectX 11 texture sharing) -// - spoutCopy spoutcopy; (Pixel buffer copying) -// - spoutSenderNames sendernames; (Spout sender management) -// - spoutFrameCount frame; (Frame counting management) -// -// Details for practical use can be found in the source code for the Openframeworks examples. -// The methods are simple and you should be able to quickly extend to your own application -// or to other frameworks. -// -Spout::Spout() -{ - // Get graphics adapter number, index and name - m_AdapterNumber = GetNumAdapters(); - m_AdapterIndex = spoutdx.GetAdapter(); - GetAdapterName(m_AdapterIndex, m_AdapterName, 256); - -} - -Spout::~Spout() -{ - -} - -// -// Group: Sender -// -// SendFbo, SendTexture and SendImage create or update a sender as required. -// -// - If a sender has not been created yet : -// -// - Make sure Spout has been initialized and OpenGL context is available -// - Perform a compatibility check for GL/DX interop -// - If compatible, create interop for GL/DX transfer -// - If not compatible, create a shared texture for the sender -// - Create a sender using the DX11 shared texture handle -// -// - If the sender exists, test for size change : -// -// - If compatible, update the shared textures and GL/DX interop -// - If not compatible, re-create the class shared texture to the new size -// - Update the sender and class variables -// - -//--------------------------------------------------------- -// Function: SetSenderName -// Set name for sender creation -// -// If no name is specified, the executable name is used. -void Spout::SetSenderName(const char* sendername) -{ - if (!sendername) { - // Get executable name as default - GetModuleFileNameA(NULL, m_SenderName, 256); - PathStripPathA(m_SenderName); - PathRemoveExtensionA(m_SenderName); - } - else { - strcpy_s(m_SenderName, 256, sendername); - } - - // If a sender with this name is already registered, create an incremented name - int i = 1; - char name[256]; - strcpy_s(name, 256, m_SenderName); - if (sendernames.FindSenderName(name)) { - do { - sprintf_s(name, 256, "%s_%d", m_SenderName, i); - i++; - } while (sendernames.FindSenderName(name)); - } - // Re-set the global sender name - strcpy_s(m_SenderName, 256, name); - -} - -//--------------------------------------------------------- -// Function: SetSenderFormat -// Set the sender DX11 shared texture format -void Spout::SetSenderFormat(DWORD dwFormat) -{ - m_dwFormat = dwFormat; - m_DX11format = (DXGI_FORMAT)dwFormat; -} - -//--------------------------------------------------------- -// Function: ReleaseSender -// Close receiver and release resources. -// -// A new sender is created or updated by all sending functions -void Spout::ReleaseSender() -{ - if (m_bInitialized) { - sendernames.ReleaseSenderName(m_SenderName); - frame.CleanupFrameCount(); - frame.CloseAccessMutex(); - } - - CleanupGL(); - -} - -//--------------------------------------------------------- -// Function: SendFbo -// Send texture attached to fbo. -// -// The fbo must be currently bound. -// The sending texture can be larger than the size that the sender is set up for. -// For example, if the application is using only a portion of the allocated texture space, -// such as for Freeframe plugins. (The 2.006 equivalent is DrawToSharedTexture). -bool Spout::SendFbo(GLuint FboID, unsigned int width, unsigned int height, bool bInvert) -{ - // For texture sharing, the fbo must be equal to or larger than the shared texture - if (FboID <= 0 || width == 0 || height == 0) - return false; - - // Create or update the sender - if (!CheckSender(width, height)) - return false; - - // All clear to send the fbo texture - if (m_bUseGLDX) { - // 3840-2160 - 60fps (0.45 msec per frame) - return WriteGLDXtexture(0, 0, width, height, bInvert, FboID); - } - else if (m_bAuto) { - // Auto share enabled for DirectX CPU backup - // 3840-2160 - 43fps (5-7msec/frame) - // Create a local class texture if not already - CheckOpenGLTexture(m_TexID, GL_RGBA, width, height); - // Copy from the texture attached to the bound fbo to the class texture - glBindTexture(GL_TEXTURE_2D, m_TexID); - glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, width, height); - glBindTexture(GL_TEXTURE_2D, 0); - // Copy from the OpenGL class texture to the shared DX11 texture by way of staging texture - return WriteDX11texture(m_TexID, GL_TEXTURE_2D, width, height, bInvert, 0); - } - - return false; - -} - -//--------------------------------------------------------- -// Function: SendTexture -// Send OpenGL texture -// -bool Spout::SendTexture(GLuint TextureID, GLuint TextureTarget, - unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO) -{ - // Quit if no data - if (TextureID <= 0 || width == 0 || height == 0) - return false; - - // Create or update the sender - if (!CheckSender(width, height)) - return false; - - if (m_bUseGLDX) { - // Send OpenGL texture if GL/DX interop compatible - // 3840-2160 - 60fps (0.45 msec per frame) - return WriteGLDXtexture(TextureID, TextureTarget, width, height, bInvert, HostFBO); - } - else if (m_bAuto) { - // Auto share enabled for DirectX CPU backup - // 3840-2160 47fps (6-7 msec per frame with PBOs) - return WriteDX11texture(TextureID, TextureTarget, width, height, bInvert, HostFBO); - } - - return false; - -} - -//--------------------------------------------------------- -// Function: SendImage -// Send pixel image -bool Spout::SendImage(const unsigned char* pixels, unsigned int width, unsigned int height, GLenum glFormat, bool bInvert, GLuint HostFBO) -{ - - // Dimensions should be the same as the sender - if (!pixels || width == 0 || height == 0) - return false; - - // Only RGBA, BGRA, RGB, BGR supported - if (!(glFormat == GL_RGBA || glFormat == GL_BGRA_EXT || glFormat == GL_RGB || glFormat == GL_BGR_EXT)) - return false; - - // Check for BGRA support - GLenum glformat = glFormat; - if (!m_bBGRAavailable) { - // If the bgra extensions are not available and the user - // provided GL_BGR_EXT or GL_BGRA_EXT do not use them - if (glFormat == GL_BGR_EXT) glformat = GL_RGB; - if (glFormat == GL_BGRA_EXT) glformat = GL_RGBA; - } - - // Create or update the sender - if (!CheckSender(width, height)) - return false; - - // - // Write pixel data to the rgba shared texture according to pixel format - // - if (m_bUseGLDX) { - // Texture share compatible - return WriteGLDXpixels(pixels, width, height, glformat, bInvert, HostFBO); - } - else if (m_bAuto) { - // Auto share enabled for DirectX CPU backup - return WriteDX11pixels(pixels, width, height, glformat, bInvert); - } - - return false; - -} - -//--------------------------------------------------------- -// Function: IsInitialized -// Initialization status -bool Spout::IsInitialized() -{ - return m_bInitialized; -} - -//--------------------------------------------------------- -// Function: GetName -// Sender name -const char * Spout::GetName() -{ - return m_SenderName; -} - -//--------------------------------------------------------- -// Function: GetWidth -// Sender width -unsigned int Spout::GetWidth() -{ - return m_Width; -} - -//--------------------------------------------------------- -// Function: GetHeight -// Sender height -unsigned int Spout::GetHeight() -{ - return m_Height; -} - -//--------------------------------------------------------- -// Function: GetFps -// Sender frame rate -double Spout::GetFps() -{ - return frame.GetSenderFps(); -} - -//--------------------------------------------------------- -// Function: GetFrame -// Sender frame number -long Spout::GetFrame() -{ - return frame.GetSenderFrame(); -} - -//--------------------------------------------------------- -// Function: GetHandle -// Sender share handle -HANDLE Spout::GetHandle() -{ - return m_dxShareHandle; -} - -// -// Group: Receiver -// -// ReceiveTexture and ReceiveImage -// -// - Connect to a sender -// - Set class variables for sender name, width and height -// - If the sender has changed size, set a flag for the application to update receiving -// texture or image which is re-allocated if IsUpdated() returns true. -// - Copy the sender shared texture to the user texture or image. -// - -//--------------------------------------------------------- -// Function: SetReceiverName -// Specify sender for connection -// -// The application will not connect to any other unless the user selects one -// If that sender closes, the application will wait for the nominated sender to open -// If no name is specified, the receiver will connect to the active sender -void Spout::SetReceiverName(const char * SenderName) -{ - if (SenderName && SenderName[0]) { - strcpy_s(m_SenderNameSetup, 256, SenderName); - strcpy_s(m_SenderName, 256, SenderName); - } -} - -//--------------------------------------------------------- -// Function: ReleaseReceiver -// Close receiver and release resources ready to connect to another sender -void Spout::ReleaseReceiver() -{ - if (!m_bInitialized) - return; - - // Restore the starting sender name if the user specified one in SetReceiverName - if (m_SenderNameSetup[0]) { - strcpy_s(m_SenderName, 256, m_SenderNameSetup); - } - else { - m_SenderName[0] = 0; - } - - // Wait 4 frames in case the same sender opens again - Sleep(67); - - // Close the named access mutex and frame counting semaphore. - frame.CloseAccessMutex(); - frame.CleanupFrameCount(); - - // Zero width and height so that they are reset when a sender is found - m_Width = 0; - m_Height = 0; - - // Reset the received sender texture - if (m_pSharedTexture) - m_pSharedTexture->Release(); - m_pSharedTexture = nullptr; - m_dxShareHandle = nullptr; - - // Reset receiver detected share mode - m_bSenderCPUmode = false; - - // Release staging textures if they have been used - if (m_pStaging[0]) spoutdx.ReleaseDX11Texture(spoutdx.GetDX11Device(), m_pStaging[0]); - if (m_pStaging[1]) spoutdx.ReleaseDX11Texture(spoutdx.GetDX11Device(), m_pStaging[1]); - m_pStaging[0] = nullptr; - m_pStaging[1] = nullptr; - m_Index = 0; - m_NextIndex = 0; - - m_bConnected = false; - m_bInitialized = false; - -} - -//--------------------------------------------------------- -// Function: ReceiveTexture -// Connect to a sender and retrieve shared texture details -// -// The texture can then be accessed using : -// -// - BindSharedTexture(); -// - UnBindSharedTexture(); -// - GetSharedTextureID(); -bool Spout::ReceiveTexture() -{ - return ReceiveTexture(0, 0); -} - -//--------------------------------------------------------- -// Function: ReceiveTexture -// Copy the sender shared texture -// -// The receiving texture can only be RGBA of dimension (width * height) -// and must be re-allocated if IsUpdated() returns true -// -bool Spout::ReceiveTexture(GLuint TextureID, GLuint TextureTarget, bool bInvert, GLuint HostFbo) -{ - // Return if flagged for update - // The update flag is reset when the receiving application calls IsUpdated() - if (m_bUpdated) { - return true; - } - - // Make sure OpenGL and DirectX are initialized - if (!OpenSpout()) { - return false; - } - - // Try to receive texture details from a sender - if (ReceiveSenderData()) { - - // Found a sender - // The sender name, width, height, format, shared texture handle - // and shared texture pointer have been retrieved - // Let the application know - m_bConnected = true; - - if (m_bUpdated) { - // If the sender is new or changed, reset shared textures and - // return to update the receiving texture. - // The application detects the change with IsUpdated(). - if (m_bUseGLDX) { - // CreateInterop set "true" for receiver - if (!CreateInterop(m_Width, m_Height, m_dwFormat, true)) { - return false; - } - } - } - - // Was the sender's shared texture handle null ? - if (!m_dxShareHandle) { - // Possible existence of sender memory share map - ReadMemory(m_SenderName, TextureID, TextureTarget, m_Width, m_Height, bInvert, HostFbo); - } - else if (m_bUseGLDX) { - // Texture share compatible - // 3840x2160 60 fps - 0.45 msec/frame - ReadGLDXtexture(TextureID, TextureTarget, m_Width, m_Height, bInvert, HostFbo); - } - else if (m_bAuto) { - // Auto share enabled for DirectX CPU backup - // 3840x2160 33 fps - 5-7 msec/frame - ReadDX11texture(TextureID, TextureTarget, m_Width, m_Height, bInvert, HostFbo); - } - } // endif sender exists - else { - // ReceiveSenderData fails if there is no sender or the connected sender closed. - ReleaseReceiver(); - // Let the application know. - m_bConnected = false; - } - - return m_bConnected; -} - -//--------------------------------------------------------- -// Function: ReceiveImage -// Copy the sender texture to image pixels. -// -// The receiving image can be RGBA, RGB or BGR of dimension (width * height) -// and must be re-allocated if IsUpdated() returns true -bool Spout::ReceiveImage(char* Sendername, unsigned int &width, unsigned int &height, - unsigned char* pixels, GLenum glFormat, bool bInvert, GLuint HostFBO) -{ - if (ReceiveImage(pixels, glFormat, bInvert, HostFBO)) { - strcpy_s(Sendername, 256, m_SenderName); - width = m_Width; - height = m_Height; - return true; - } - return false; -} - -//--------------------------------------------------------- -// Function: IsUpdated -// Query whether the sender has changed. -// -// Must be checked at every cycle before receiving data. -// -// If this is not done, the receiving functions fail. -bool Spout::IsUpdated() -{ - bool bRet = m_bUpdated; - m_bUpdated = false; // Reset the update flag - return bRet; -} - -//--------------------------------------------------------- -// Function: IsConnected -// Query sender connection. -// -// If the sender closes, receiving functions return false, -// but connection can be tested at any time. -bool Spout::IsConnected() -{ - return m_bConnected; -} - -//--------------------------------------------------------- -// Function: IsFrameNew -// Query received frame status -// -// The receiving texture or pixel buffer is refreshed if the sender has produced a new frame -// This can be queried to process texture data only for new frames -bool Spout::IsFrameNew() -{ - return m_bNewFrame; -} - -//--------------------------------------------------------- -// Function: GetSenderFormat -// Get sender DirectX texture format -DWORD Spout::GetSenderFormat() -{ - return m_dwFormat; -} - -//--------------------------------------------------------- -// Function: GetSenderName -// Get sender name -const char * Spout::GetSenderName() -{ - return m_SenderName; -} - -//--------------------------------------------------------- -// Function: GetSenderWidth -// Get sender width -unsigned int Spout::GetSenderWidth() -{ - return m_Width; -} - -//--------------------------------------------------------- -// Function: GetSenderHeight -// Get sender height -unsigned int Spout::GetSenderHeight() -{ - return m_Height; - -} - -//--------------------------------------------------------- -// Function: GetSenderFps -// Get sender frame rate -double Spout::GetSenderFps() -{ - return frame.GetSenderFps(); -} - -//--------------------------------------------------------- -// Function: GetSenderFrame -// Get sender frame number -long Spout::GetSenderFrame() -{ - return frame.GetSenderFrame(); -} - -//--------------------------------------------------------- -// Function: GetSenderHandle -// Received sender share handle -HANDLE Spout::GetSenderHandle() -{ - return m_dxShareHandle; -} - -//--------------------------------------------------------- -// Function: GetSenderCPUmode -// Received sender sharing mode -bool Spout::GetSenderCPUmode() -{ - return m_bSenderCPUmode; -} - -//--------------------------------------------------------- -// Function: SelectSender -// Open sender selection dialog -void Spout::SelectSender() -{ - SelectSenderPanel(); -} - -// -// Group: Frame counting -// - -//--------------------------------------------------------- -// Function: SetFrameCount -// Enable or disable frame counting globally -void Spout::SetFrameCount(bool bEnable) -{ - frame.SetFrameCount(bEnable); -} - -// Function: DisableFrameCount -// Disable frame counting specifically for this application -void Spout::DisableFrameCount() -{ - frame.DisableFrameCount(); -} - -//--------------------------------------------------------- -// Function: IsFrameCountEnabled -// Return frame count status -bool Spout::IsFrameCountEnabled() -{ - return frame.IsFrameCountEnabled(); -} - -//--------------------------------------------------------- -// Function: HoldFps -// Frame rate control -void Spout::HoldFps(int fps) -{ - frame.HoldFps(fps); -} - -// -// Group: Sender names -// - -//--------------------------------------------------------- -// Function: GetSenderCount -// Number of senders -int Spout::GetSenderCount() -{ - std::set SenderNameSet; - if (sendernames.GetSenderNames(&SenderNameSet)) { - return((int)SenderNameSet.size()); - } - return 0; -} - -//--------------------------------------------------------- -// Function: GetSender -// Sender item name in the sender names set -bool Spout::GetSender(int index, char* sendername, int sendernameMaxSize) -{ - std::set SenderNameSet; - std::set::iterator iter; - std::string namestring; - char name[256]; - int i; - - if (sendernames.GetSenderNames(&SenderNameSet)) { - if (SenderNameSet.size() < (unsigned int)index) { - return false; - } - i = 0; - for (iter = SenderNameSet.begin(); iter != SenderNameSet.end(); iter++) { - namestring = *iter; // the name string - strcpy_s(name, 256, namestring.c_str()); // the 256 byte name char array - if (i == index) { - strcpy_s(sendername, sendernameMaxSize, name); // the passed name char array - break; - } - i++; - } - return true; - } - return false; -} - -//--------------------------------------------------------- -// Function: GetSenderInfo -// Sender information -bool Spout::GetSenderInfo(const char* sendername, unsigned int &width, unsigned int &height, HANDLE &dxShareHandle, DWORD &dwFormat) -{ - return sendernames.GetSenderInfo(sendername, width, height, dxShareHandle, dwFormat); -} - -//--------------------------------------------------------- -// Function: GetActiveSender -// Current active sender -bool Spout::GetActiveSender(char* Sendername) -{ - return sendernames.GetActiveSender(Sendername); -} - -//--------------------------------------------------------- -// Function: SetActiveSender -// Set sender as active -bool Spout::SetActiveSender(const char* Sendername) -{ - return sendernames.SetActiveSender(Sendername); -} - -// -// Group: Graphics adapter -// -// Note that both the Sender and Receiver must use the same graphics adapter. -// - -//--------------------------------------------------------- -// Function: GetNumAdapters -// The number of graphics adapters in the system -int Spout::GetNumAdapters() -{ - return spoutdx.GetNumAdapters(); -} - -//--------------------------------------------------------- -// Function: GetAdapterName -// Get adapter item name -bool Spout::GetAdapterName(int index, char *adaptername, int maxchars) -{ - char name[256]; - if (spoutdx.GetAdapterName(index, name, 256)) { - strcpy_s(adaptername, maxchars, name); - return true; - } - return false; -} - -//--------------------------------------------------------- -// Function: GetAdapter -// Get adapter index -int Spout::GetAdapter() -{ - return spoutdx.GetAdapter(); -} - -//--------------------------------------------------------- -// Function: SetAdapter -// Set graphics adapter for output -bool Spout::SetAdapter(int index) -{ - // Return if already set - if (index == m_AdapterIndex) - return true; - - // Set the adapter as requested - if (!spoutdx.SetAdapter(index)) { - SpoutLogError("Spout::SetAdapter(%d) failed", index); - return false; - } - - // SetAdapter has tested DirectX, but the adapter is different - // so check again for GL/DX compatibility - if (!GLDXready()) { - SpoutLogWarning("Spout::SetAdapter - Graphics not GL/DX compatible. Switching to CPU share mode"); - m_bUseGLDX = false; - } - - // Update current adapter index and name - m_AdapterIndex = spoutdx.GetAdapter(); - GetAdapterName(m_AdapterIndex, m_AdapterName, 256); - - return true; -} - -//--------------------------------------------------------- -// Function: GetAdapterInfo -// Get the current adapter description -bool Spout::GetAdapterInfo(char *renderdescription, char *displaydescription, int maxchars) -{ - return spoutdx.GetAdapterInfo(renderdescription, displaydescription, maxchars); -} - -//--------------------------------------------------------- -// Function: Adapter -// Current adapter -int Spout::Adapter() -{ - return m_AdapterIndex; -} - -//--------------------------------------------------------- -// Function: AdapterName -// Current adapter name -char * Spout::AdapterName() -{ - return m_AdapterName; -} - -// -// Group: 2.006 compatibility -// -// These functions are not necessary for Version 2.007. -// But are retained for compatibility with existing 2.006 code. -// - -//--------------------------------------------------------- -// Function: FindNVIDIA -// Find the index of the NVIDIA adapter in a multi-adapter system -bool Spout::FindNVIDIA(int &nAdapter) -{ - return spoutdx.FindNVIDIA(nAdapter); -} - -//--------------------------------------------------------- -// Function: GetAdapterInfo -// Get detailed information for the current graphics adapter -// -// Must be called after DirectX initialization, not before -// -// https://code.google.com/p/chromium/issues/detail?id=106438 -// -// NOTES : On a “normal†system EnumDisplayDevices and IDXGIAdapter::GetDesc always concur -// i.e. the device that owns the head will be the device that performs the rendering. -// On an Optimus system IDXGIAdapter::GetDesc will return whichever device has been selected for rendering. -// So on an Optimus system it is possible that IDXGIAdapter::GetDesc will return the dGPU whereas -// EnumDisplayDevices will return the iGPU. -// -// This function compares the adapter descriptions of the two -// The string "Intel" reveals that it is an Intel device but -// the Vendor ID could also be used -// -// 0x10DE NVIDIA -// 0x163C intel -// 0x8086 Intel -// 0x8087 Intel -// -// See also the DirectX only version : -// bool spoutDirectX::GetAdapterInfo(char *adapter, char *display, int maxchars) -// -bool Spout::GetAdapterInfo(char* renderadapter, - char* renderdescription, char* renderversion, - char* displaydescription, char* displayversion, - int maxsize, bool &bDX9) -{ - // DirectX9 not supported - UNREFERENCED_PARAMETER(bDX9); - - IDXGIDevice * pDXGIDevice = nullptr; - - renderadapter[0] = 0; // DirectX adapter - renderdescription[0] = 0; - renderversion[0] = 0; - displaydescription[0] = 0; - displayversion[0] = 0; - if (!spoutdx.GetDX11Device()) { - SpoutLogError("spoutGLDXinterop::GetAdapterInfo - no DX11 device"); - return false; - } - - spoutdx.GetDX11Device()->QueryInterface(__uuidof(IDXGIDevice), (void **)&pDXGIDevice); - IDXGIAdapter * pDXGIAdapter; - pDXGIDevice->GetAdapter(&pDXGIAdapter); - DXGI_ADAPTER_DESC adapterinfo; - pDXGIAdapter->GetDesc(&adapterinfo); - // WCHAR Description[ 128 ]; - // UINT VendorId; - // UINT DeviceId; - // UINT SubSysId; - // UINT Revision; - // SIZE_T DedicatedVideoMemory; - // SIZE_T DedicatedSystemMemory; - // SIZE_T SharedSystemMemory; - // LUID AdapterLuid; - char output[256]; - size_t charsConverted = 0; - wcstombs_s(&charsConverted, output, 129, adapterinfo.Description, 128); - // printf(" Description = [%s]\n", output); - // printf(" VendorId = [%d] [%x]\n", adapterinfo.VendorId, adapterinfo.VendorId); - // printf("SubSysId = [%d] [%x]\n", adapterinfo.SubSysId, adapterinfo.SubSysId); - // printf("DeviceId = [%d] [%x]\n", adapterinfo.DeviceId, adapterinfo.DeviceId); - // printf("Revision = [%d] [%x]\n", adapterinfo.Revision, adapterinfo.Revision); - strcpy_s(renderadapter, (rsize_t)maxsize, output); - - if (!renderadapter[0]) - return false; - - // TODO - check default Windows render adapter is the DirectX one ? - strcpy_s(renderdescription, (rsize_t)maxsize, renderadapter); - - // Use Windows functions to look for Intel graphics to see if it is - // the same render adapter that was detected with DirectX - char driverdescription[256]; - char driverversion[256]; - char regkey[256]; - - // Additional info - DISPLAY_DEVICE DisplayDevice; - DisplayDevice.cb = sizeof(DISPLAY_DEVICE); - - // 31.10.14 detect the adapter attached to the desktop - // To query all display devices in the current session, - // call this function in a loop, starting with iDevNum set to 0, - // and incrementing iDevNum until the function fails. - // To select all display devices in the desktop, use only the display devices - // that have the DISPLAY_DEVICE_ATTACHED_TO_DESKTOP flag in the DISPLAY_DEVICE structure. - - int nDevices = 0; - for (int i = 0; i < 10; i++) { // should be much less than 10 adapters - if (EnumDisplayDevices(NULL, (DWORD)i, &DisplayDevice, 0)) { - // This will list all the devices - nDevices++; - // Get the registry key - wcstombs_s(&charsConverted, regkey, 129, (const wchar_t *)DisplayDevice.DeviceKey, 128); - // This is the registry key with all the information about the adapter - OpenDeviceKey(regkey, 256, driverdescription, driverversion); - // Is it a render adapter ? - if (renderadapter && strcmp(driverdescription, renderadapter) == 0) { - // printf("Windows render adapter matches : [%s] Vers [%s]\n", driverdescription, driverversion); - strcpy_s(renderdescription, (rsize_t)maxsize, driverdescription); - strcpy_s(renderversion, (rsize_t)maxsize, driverversion); - } - // Is it a display adapter - if (DisplayDevice.StateFlags & DISPLAY_DEVICE_ATTACHED_TO_DESKTOP) { - // printf("Display adapter : [%s] Vers: %s ", driverdescription, driverversion); - strcpy_s(displaydescription, 256, driverdescription); - strcpy_s(displayversion, 256, driverversion); - // printf("(Attached to desktop)\n"); - } // endif attached to desktop - - } // endif EnumDisplayDevices - } // end search loop - - // The render adapter description - if (renderdescription) trim(renderdescription); - - // 16-06-18 - if (pDXGIDevice) pDXGIDevice->Release(); - - return true; -} - -//--------------------------------------------------------- -// Function: CreateSender -// Create a sender -bool Spout::CreateSender(const char* name, unsigned int width, unsigned int height, DWORD dwFormat) -{ - // Pass on to CheckSender - SetSenderName(name); - if (dwFormat > 0) - m_dwFormat = dwFormat; - return CheckSender(width, height); - -} - -//--------------------------------------------------------- -// Function: UpdateSender -// Update a sender -bool Spout::UpdateSender(const char* name, unsigned int width, unsigned int height) -{ - // No update unless already created - if (!IsInitialized()) { - return false; - } - - // For a name change, close the sender and set up again - if (strcmp(name, m_SenderName) != 0) - ReleaseSender(); - - // CheckSender sets m_Width and m_Height on success - return CheckSender(width, height); -} - -// Legacy OpenGL DrawTo function -#ifdef legacyOpenGL -//--------------------------------------------------------- -// Function: DrawToSharedTexture -// Render OpenGL texture to the sender shared OpenGL texture -// -// Legacy OpenGL function -// -// Enabled for build with "legacyOpenGL" defined in SpoutCommon.h -bool Spout::DrawToSharedTexture(GLuint TextureID, GLuint TextureTarget, - unsigned int width, unsigned int height, - float max_x, float max_y, float aspect, - bool bInvert, GLuint HostFBO) -{ - GLenum status; - bool bRet = false; - - if (!m_hInteropDevice || !m_hInteropObject) - return false; - - if (width != (unsigned int)m_Width || height != (unsigned int)m_Height) - return false; - - // Wait for access to the shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - if (LockInteropObject(m_hInteropDevice, &m_hInteropObject) == S_OK) { - // Draw the input texture into the shared texture via an fbo - // Bind our fbo and attach the shared texture to it - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, m_fbo); - glClearColor(0.f, 0.f, 0.f, 1.f); - glClear(GL_COLOR_BUFFER_BIT); - glFramebufferTexture2DEXT(GL_READ_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, m_glTexture, 0); - status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); - if (status == GL_FRAMEBUFFER_COMPLETE_EXT) { - glColor4f(1.f, 1.f, 1.f, 1.f); - glEnable(TextureTarget); - glBindTexture(TextureTarget, TextureID); - GLfloat tc[4][2] = { 0 }; - // Invert texture coord to user requirements - if (bInvert) { - tc[0][0] = 0.0; tc[0][1] = max_y; - tc[1][0] = 0.0; tc[1][1] = 0.0; - tc[2][0] = max_x; tc[2][1] = 0.0; - tc[3][0] = max_x; tc[3][1] = max_y; - } - else { - tc[0][0] = 0.0; tc[0][1] = 0.0; - tc[1][0] = 0.0; tc[1][1] = max_y; - tc[2][0] = max_x; tc[2][1] = max_y; - tc[3][0] = max_x; tc[3][1] = 0.0; - } - GLfloat verts[] = { - -aspect, -1.0, // bottom left - -aspect, 1.0, // top left - aspect, 1.0, // top right - aspect, -1.0 }; // bottom right - glEnableClientState(GL_TEXTURE_COORD_ARRAY); - glTexCoordPointer(2, GL_FLOAT, 0, tc); - glEnableClientState(GL_VERTEX_ARRAY); - glVertexPointer(2, GL_FLOAT, 0, verts); - glDrawArrays(GL_TRIANGLE_FAN, 0, 4); - glDisableClientState(GL_VERTEX_ARRAY); - glDisableClientState(GL_TEXTURE_COORD_ARRAY); - glBindTexture(TextureTarget, 0); - glDisable(TextureTarget); - bRet = true; // success - } - else { - PrintFBOstatus(status); - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO); - UnlockInteropObject(m_hInteropDevice, &m_hInteropObject); - } - // restore the previous fbo - default is 0 - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO); - UnlockInteropObject(m_hInteropDevice, &m_hInteropObject); - } // end interop lock - // Release mutex and allow access to the texture - frame.AllowTextureAccess(m_pSharedTexture); - } // mutex access failed - - return bRet; - -} // end DrawToSharedTexture -#endif - -//--------------------------------------------------------- -// Function: CreateReceiver -// Create receiver connection -bool Spout::CreateReceiver(char* sendername, unsigned int &width, unsigned int &height, bool bUseActive) -{ - // Make sure OpenGL and DirectX are initialized - if (!OpenSpout()) - return false; - - // Use the active sender if the user wants it or the sender name is not set - if (bUseActive || sendername[0] == 0) { - m_SenderNameSetup[0] = 0; - } - else { - // Try to find the sender with the name sent - strcpy_s(m_SenderNameSetup, 256, sendername); - } - - if (ReceiveSenderData()) { - // The sender name, width, height, format, shared texture handle - // and shared texture pointer have been retrieved. - if (m_bUpdated) { - // If the sender is new or changed, create or re-create interop - if (m_bUseGLDX) { - // Flag "true" for receive - if (!CreateInterop(m_Width, m_Height, m_dwFormat, true)) - return false; - } - // 2.006 receivers check for changed sender size - m_bUpdated = false; - } - strcpy_s(sendername, 256, m_SenderName); - width = m_Width; - height = m_Height; - - return true; - } - - return false; - -} - -//--------------------------------------------------------- -// Function: CheckReceiver -// Check receiver connection -bool Spout::CheckReceiver(char* name, unsigned int &width, unsigned int &height, bool &bConnected) -{ - if (ReceiveSenderData()) { - strcpy_s(name, 256, m_SenderName); - width = m_Width; - height = m_Height; - bConnected = m_bConnected; - return true; - } - return false; -} - -//--------------------------------------------------------- -// Function: ReceiveTexture -// Receive OpenGL texture -bool Spout::ReceiveTexture(char* name, unsigned int &width, unsigned int &height, - GLuint TextureID, GLuint TextureTarget, bool bInvert, GLuint HostFBO) -{ - if (ReceiveTexture(TextureID, TextureTarget, bInvert, HostFBO)) { - - // 2.006 receivers have to restart for a new sender name - if (m_SenderName[0] && strcmp(m_SenderName, name) != 0) { - return false; - } - - strcpy_s(name, 256, m_SenderName); - width = m_Width; - height = m_Height; - return true; - } - - return false; - -} - -//--------------------------------------------------------- -// Function: ReceiveImage -// Receive image pixels -bool Spout::ReceiveImage(unsigned char *pixels, GLenum glFormat, bool bInvert, GLuint HostFbo) -{ - // Return if flagged for update - // The update flag is reset when the receiving application calls IsUpdated() - if (m_bUpdated) { - return true; - } - - // Make sure OpenGL and DirectX are initialized - if (!OpenSpout()) - return false; - - // Only RGBA, BGRA, RGB, BGR supported - if (!(glFormat == GL_RGBA || glFormat == GL_BGRA_EXT || glFormat == GL_RGB || glFormat == GL_BGR_EXT)) - return false; - - // Check for BGRA support - GLenum glformat = glFormat; - if (!m_bBGRAavailable) { - // If the bgra extensions are not available and the user - // provided GL_BGR_EXT or GL_BGRA_EXT do not use them - if (glFormat == GL_BGR_EXT) glformat = GL_RGB; // GL_BGR_EXT - if (glFormat == GL_BGRA_EXT) glformat = GL_RGBA; // GL_BGRA_EXT - } - - // Try to receive texture details from a sender - if (ReceiveSenderData()) { - - // The sender name, width, height, format, shared texture handle and pointer have been retrieved. - if (m_bUpdated) { - - // If the sender is new or changed, return to update the receiving texture. - // The application detects the change with IsUpdated(). - if (m_bUseGLDX) { - // Flag "true" for receive - if (!CreateInterop(m_Width, m_Height, m_dwFormat, true)) - return false; - } - - return true; - } - - // The receiving pixel buffer is created after the first update - // So check here instead of at the beginning - if (!pixels) - return false; - - // - // Found a sender - // - // Read the shared texture into the pixel buffer - // Copy functions handle the formats supported - // - - // Was the sender's shared texture handle null ? - if (!m_dxShareHandle) { - // Possible existence of sender memory share map - ReadMemoryPixels(m_SenderName, pixels, m_Width, m_Height, glFormat, bInvert); - } - else if (m_bUseGLDX && m_bPBOavailable) { - // Texture share compatible - // Read pixels using OpenGL via PBO - // PBO (UnloadTexturePixels) - // 1920x1080 RGB 1.4 msec/frame RGBA 1.6 msec/frame - // 3840x2160 RGB 5 msec/frame RGBA 6 msec/frame - // FBO (ReadTextureData) - slower than DirectX method - // 3840x2160 RGB 30-60 msec/frame RGBA 30-60 msec/frame - ReadGLDXpixels(pixels, m_Width, m_Height, glformat, bInvert, HostFbo); - } - else if (m_bAuto) { - // Auto share enabled for DirectX CPU backup - // Read pixels via DX11 staging textures to an rgba or rgb buffer - // 1920x1080 RGB 7 msec/frame RGBA 2 msec/frame - // 3840x2160 RGB 30 msec/frame RGBA 9 msec/frame - ReadDX11pixels(pixels, m_Width, m_Height, glformat, bInvert); - } - m_bConnected = true; - } // sender exists - else { - // There is no sender or the connected sender closed. - ReleaseReceiver(); - // Let the application know. - m_bConnected = false; - } - - // ReceiveImage fails if there is no sender or the connected sender closed. - return m_bConnected; - -} // end ReceiveImage - -//--------------------------------------------------------- -// Function: SelectSenderPanel -// Open dialog for the user to select a sender -// -// Optional message argument -// -// Replaced by SelectSender for 2.007 -bool Spout::SelectSenderPanel(const char *message) -{ - HANDLE hMutex1 = NULL; - HMODULE module = NULL; - char path[MAX_PATH], drive[MAX_PATH], dir[MAX_PATH], fname[MAX_PATH]; - char UserMessage[512]; - - if (message != NULL && message[0] != 0) - strcpy_s(UserMessage, 512, message); // could be an arg or a user message - else - UserMessage[0] = 0; // make sure SpoutPanel does not see an un-initialized string - - // The selected sender is then the "Active" sender and this receiver switches to it. - // If Spout is not installed, SpoutPanel.exe has to be in the same folder - // as this executable. This rather complicated process avoids having to use a dialog - // which causes problems with host GUI messaging. - - // First find if there has been a Spout installation >= 2.002 with an install path for SpoutPanel.exe - if (!ReadPathFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\SpoutPanel", "InstallPath", path)) { - // Path not registered so find the path of the host program - // where SpoutPanel should have been copied - module = GetModuleHandle(NULL); - GetModuleFileNameA(module, path, MAX_PATH); - _splitpath_s(path, drive, MAX_PATH, dir, MAX_PATH, fname, MAX_PATH, NULL, 0); - _makepath_s(path, MAX_PATH, drive, dir, "SpoutPanel", ".exe"); - // Does SpoutPanel.exe exist in this path ? - if (!PathFileExistsA(path)) { - // Try the current working directory - if (_getcwd(path, MAX_PATH)) { - strcat_s(path, MAX_PATH, "\\SpoutPanel.exe"); - // Does SpoutPanel exist here? - if (!PathFileExistsA(path)) { - SpoutLogWarning("spoutDX::SelectSender - SpoutPanel path not found"); - return false; - } - } - } - } - - // Check whether the panel is already running - // Try to open the application mutex. - hMutex1 = OpenMutexA(MUTEX_ALL_ACCESS, 0, "SpoutPanel"); - if (!hMutex1) { - // No mutex, so not running, so can open it - // Use ShellExecuteEx so we can test its return value later - ZeroMemory(&m_ShExecInfo, sizeof(m_ShExecInfo)); - m_ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); - m_ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; - m_ShExecInfo.hwnd = NULL; - m_ShExecInfo.lpVerb = NULL; - m_ShExecInfo.lpFile = (LPCSTR)path; - m_ShExecInfo.lpParameters = UserMessage; - m_ShExecInfo.lpDirectory = NULL; - m_ShExecInfo.nShow = SW_SHOW; - m_ShExecInfo.hInstApp = NULL; - ShellExecuteExA(&m_ShExecInfo); - - // - // The flag "m_bSpoutPanelOpened" is set here to indicate that the user - // has opened the panel to select a sender. This flag is local to - // this process so will not affect any other receiver instance - // Then when the selection panel closes, sender name is tested - // - m_bSpoutPanelOpened = true; - } - else { - // The mutex exists, so another instance is already running. - // Find the SpoutPanel window and bring it to the top. - // SpoutPanel is opened as topmost anyway but pop it to - // the front in case anything else has stolen topmost. - HWND hWnd = FindWindowA(NULL, (LPCSTR)"SpoutPanel"); - if (hWnd && IsWindow(hWnd)) { - SetForegroundWindow(hWnd); - // prevent other windows from hiding the dialog - // and open the window wherever the user clicked - SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_ASYNCWINDOWPOS | SWP_SHOWWINDOW | SWP_NOSIZE | SWP_NOMOVE); - } - else if (path[0]) { - // If the window was not found but the mutex exists - // and SpoutPanel is installed, it has crashed. - // Terminate the process and the mutex or the mutex will remain - // and SpoutPanel will not be started again. - PROCESSENTRY32 pEntry; - pEntry.dwSize = sizeof(pEntry); - bool done = false; - // Take a snapshot of all processes and threads in the system - HANDLE hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPALL, NULL); - if (hProcessSnap == INVALID_HANDLE_VALUE) { - SpoutLogError("spoutDX::OpenSpoutPanel - CreateToolhelp32Snapshot error"); - } - else { - // Retrieve information about the first process - BOOL hRes = Process32First(hProcessSnap, &pEntry); - if (!hRes) { - SpoutLogError("spoutDX::OpenSpoutPanel - Process32First error"); - CloseHandle(hProcessSnap); - } - else { - // Look through all processes - while (hRes && !done) { - int value = _tcsicmp(pEntry.szExeFile, _T("SpoutPanel.exe")); - if (value == 0) { - HANDLE hProcess = OpenProcess(PROCESS_TERMINATE, 0, (DWORD)pEntry.th32ProcessID); - if (hProcess != NULL) { - // Terminate SpoutPanel and it's mutex - TerminateProcess(hProcess, 9); - CloseHandle(hProcess); - done = true; - } - } - if (!done) - hRes = Process32Next(hProcessSnap, &pEntry); // Get the next process - else - hRes = NULL; // found SpoutPanel - } - CloseHandle(hProcessSnap); - } - } - // Now SpoutPanel will start the next time the user activates it - } // endif SpoutPanel crashed - } // endif SpoutPanel already open - - // If we opened the mutex, close it now or it is never released - if (hMutex1) CloseHandle(hMutex1); - - return true; - -} // end SelectSenderPanel - - -// Legacy OpenGL Draw function -#ifdef legacyOpenGL -//--------------------------------------------------------- -// Function: DrawSharedTexture -// Render the sender shared OpenGL texture -// -// Legacy OpenGL function -// -// Enabled for build with "legacyOpenGL" defined in SpoutCommon.h -//--------------------------------------------------------- -bool Spout::DrawSharedTexture(float max_x, float max_y, float aspect, bool bInvert, GLuint HostFBO) -{ - UNREFERENCED_PARAMETER(HostFBO); - if (!m_hInteropDevice || !m_hInteropObject) - return false; - - bool bRet = false; - - // Wait for access to the shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - // go ahead and access the shared texture to draw it - if (LockInteropObject(m_hInteropDevice, &m_hInteropObject) == S_OK) { - SaveOpenGLstate(m_Width, m_Height); - glEnable(GL_TEXTURE_2D); - glBindTexture(GL_TEXTURE_2D, m_glTexture); // bind shared texture - glColor4f(1.f, 1.f, 1.f, 1.f); - // Tried to convert to vertex array, but Processing crash - glBegin(GL_QUADS); - if (bInvert) { - glTexCoord2f(0.0, max_y); glVertex2f(-aspect, -1.0); // lower left - glTexCoord2f(0.0, 0.0); glVertex2f(-aspect, 1.0); // upper left - glTexCoord2f(max_x, 0.0); glVertex2f(aspect, 1.0); // upper right - glTexCoord2f(max_x, max_y); glVertex2f(aspect, -1.0); // lower right - } - else { - glTexCoord2f(0.0, 0.0); glVertex2f(-aspect, -1.0); // lower left - glTexCoord2f(0.0, max_y); glVertex2f(-aspect, 1.0); // upper left - glTexCoord2f(max_x, max_y); glVertex2f(aspect, 1.0); // upper right - glTexCoord2f(max_x, 0.0); glVertex2f(aspect, -1.0); // lower right - } - glEnd(); - glBindTexture(GL_TEXTURE_2D, 0); - glDisable(GL_TEXTURE_2D); - RestoreOpenGLstate(); - UnlockInteropObject(m_hInteropDevice, &m_hInteropObject); // unlock dx object - bRet = true; - } // lock failed - // Release mutex and allow access to the texture - frame.AllowTextureAccess(m_pSharedTexture); - } // mutex lock failed - - return bRet; - -} // end DrawSharedTexture -#endif - -// -// Protected functions -// - -//--------------------------------------------------------- -// If a sender has not been created yet -// o Make sure Spout has been initialized and OpenGL context is available -// o Perform a compatibility check for GL/DX interop -// o If compatible, create interop for GL/DX transfer -// o If not compatible, create a shared texture for the sender -// o Create a sender using the DX11 shared texture handle -// If the sender exists, test for size change -// o If compatible, update the shared textures and GL/DX interop -// o If not compatible, re-create the class shared texture to the new size -// o Update the sender and class variables -bool Spout::CheckSender(unsigned int width, unsigned int height) -{ - if (width == 0 || height == 0) { - return false; - } - - // The sender needs a name - // Default is the executable name - if (!m_SenderName[0]) { - SetSenderName(); - } - - // If not initialized, create a new sender - if (!m_bInitialized) { - // Make sure that Spout has been initialized and an OpenGL context is available - if (OpenSpout()) { - if (m_bUseGLDX) { - // Create interop for GL/DX transfer - // Flag "false" for sender so that a new shared texture is created - // (for a receiver the shared texture is cretaed from the sender share handle) - if (!CreateInterop(width, height, m_dwFormat, false)) - return false; - } - else { - // Create a shared texture for the sender within this class. - // A sender creates a new texture with a new share handle - m_dxShareHandle = nullptr; - if (!spoutdx.CreateSharedDX11Texture(spoutdx.GetDX11Device(), - width, height, (DXGI_FORMAT)m_dwFormat, &m_pSharedTexture, m_dxShareHandle)) { - return false; - } - } - - // Create a sender using the DX11 shared texture handle (m_dxShareHandle) - if (sendernames.CreateSender(m_SenderName, width, height, m_dxShareHandle, m_dwFormat)) { - - m_Width = width; - m_Height = height; - - // TODO : not optimal - - // SetSenderCPUmode reads and writes to the sender shared texture memory. - // TODO : do when the sender is created and before this is called using a global. - // spoutSenderNames::CreateSender(m_SenderName, width, height, m_dxSharehandle, m_dwFormat, m_bCPU); - // Need m_bCPU = !m_bUseGLDX ? - - // Set CPU sharing mode (i.e. not GL/DX compatible) - // to the top bit of 32 bit partnerID field in sender shared memory - SetSenderCPUmode(m_SenderName, !m_bUseGLDX); - - // Write host path to the sender shared memory Description field - // (Now done in spoutSenderNames::CreateSender) - // SetHostPath(m_SenderName); - - // Get current adapter index and name - m_AdapterIndex = spoutdx.GetAdapter(); - GetAdapterName(m_AdapterIndex, m_AdapterName, 256); - m_Width = width; - m_Height = height; - - // Create a sender mutex for access to the shared texture - frame.CreateAccessMutex(m_SenderName); - - // Enable frame counting so the receiver gets frame number and fps - frame.EnableFrameCount(m_SenderName); - - m_bInitialized = true; - } - else { - ReleaseSender(); - m_SenderName[0] = 0; - m_Width = 0; - m_Height = 0; - m_dwFormat = m_DX11format; - m_AdapterIndex = 0; - m_AdapterName[0] = 0; - return false; - } - } - } - // The sender is initialized but has the sending texture changed size ? - else if (m_Width != width || m_Height != height) { - // Update the shared textures and interop - if (m_bUseGLDX) { - // Flag "false" for sender to create a new shared texture - if (!CreateInterop(width, height, m_dwFormat, false)) - return false; - } - else { - // Re-create the class shared texture to the new size - if (m_pSharedTexture) m_pSharedTexture->Release(); - m_pSharedTexture = nullptr; - m_dxShareHandle = nullptr; - if (!spoutdx.CreateSharedDX11Texture(spoutdx.GetDX11Device(), - width, height, (DXGI_FORMAT)m_dwFormat, &m_pSharedTexture, m_dxShareHandle)) { - return false; - } - } - // Update the sender with the new texture and size - sendernames.UpdateSender(m_SenderName, width, height, m_dxShareHandle, m_dwFormat); - m_Width = width; - m_Height = height; - } - else { - - } - // endif initialization or size checks - - return true; -} - -//--------------------------------------------------------- -void Spout::InitReceiver(const char * SenderName, unsigned int width, unsigned int height, DWORD dwFormat) -{ - SpoutLogNotice("Spout::InitReceiver(%s, %d x %d)", SenderName, width, height); - - // Create a named sender mutex for access to the sender's shared texture - frame.CreateAccessMutex(SenderName); - - // Enable frame counting to get the sender frame number and fps - frame.EnableFrameCount(SenderName); - - // Set class globals - strcpy_s(m_SenderName, 256, SenderName); - m_Width = width; - m_Height = height; - m_dwFormat = dwFormat; - - // Get graphics adapter number, index and name - m_AdapterNumber = GetNumAdapters(); - m_AdapterIndex = spoutdx.GetAdapter(); - GetAdapterName(m_AdapterIndex, m_AdapterName, 256); - - // printf("Spout::CreateReceiver(%s, %d x %d) - format = %d\n", SenderName, width, height, m_dwFormat); - - m_bInitialized = true; - -} - -//--------------------------------------------------------- -// o Connect to a sender and inform the application to update texture dimensions -// o Check for user sender selection -// o Receive texture details from the sender for write to the user texture -// o Retrieve width, height, format, share handle and texture pointer -bool Spout::ReceiveSenderData() -{ - m_bUpdated = false; - - // Initialization is recorded in this class for sender or receiver - // m_Width or m_Height are established when the receiver connects to a sender - char sendername[256]; - strcpy_s(sendername, 256, m_SenderName); - - // Check the entered Sender name to see if it exists - if (sendername[0] == 0) { - // Passed name was null, so find the active sender - if (!GetActiveSender(sendername)) - return false; // No sender - } - - // If SpoutPanel has been opened, the active sender name could be different - if (CheckSpoutPanel(sendername, 256)) { - // Disable the setup name - m_SenderNameSetup[0] = 0; - } - - // Now we have either an existing sender name or the active sender name - // Save current sender name and dimensions to test for change - unsigned int width = m_Width; - unsigned int height = m_Height; - DWORD dwFormat = m_dwFormat; - HANDLE dxShareHandle = m_dxShareHandle; - - // Try to get the sender information - // Retrieve width, height, sharehandle and format. - SharedTextureInfo info; - if (sendernames.getSharedInfo(sendername, &info)) { - - // Received sender share mode - if (info.partnerId & 0x80000000) // CPU mode - top bit of 32 bit partner ID field - m_bSenderCPUmode = true; - else - m_bSenderCPUmode = false; // Texture share default - - width = info.width; - height = info.height; - dxShareHandle = (HANDLE)(LongToHandle((long)info.shareHandle)); - dwFormat = info.format; - - // printf(" info.width = %d\n", info.width); - // printf(" info.height = %d\n", info.height); - // printf(" info.shareHandle = %d\n", info.shareHandle); - // printf(" info.format = %d\n", info.format); - - // Compatible DX9 formats - // 21 = D3DFMT_A8R8G8B8 - // 22 = D3DFMT_X8R8G8B8 - if (dwFormat == 21 || dwFormat == 21) { - // Create a DX11 receiving texture with compatible format - dwFormat = (DWORD)DXGI_FORMAT_B8G8R8A8_UNORM; - } - - // printf(" Found new sender (%dx%d) : dxShareHandle = 0x%.7X\n", width, height, LOWORD(dxShareHandle)); - - // The shared texture handle will be different - // o for texture size or format change - // o for a new sender - if (dxShareHandle != m_dxShareHandle || strcmp(sendername, m_SenderName) != 0) { - - // Release everything and start again - ReleaseReceiver(); - - // Update the sender share handle - m_dxShareHandle = dxShareHandle; - - // We have a valid share handle - if (m_dxShareHandle) { - // Get a new shared texture pointer (m_pSharedTexture) - if (!spoutdx.OpenDX11shareHandle(spoutdx.GetDX11Device(), &m_pSharedTexture, dxShareHandle)) { - // If this fails, something is wrong - // the sender graphics adapter might be different or some other reason - SpoutLogWarning("Spout::ReceiveSenderData - could not retrieve sender texture from share handle"); - // Retain the share handle so we don't query it again. - // m_pSharedTexture is null but will not be used. - // Return true and wait until another sender is selected. - return true; - } - } - - // Now we have a shared texture pointer or a null share handle. - - // For a null share handle from a 2.006 memoryshare sender - // ReceiveTexture and ReceiveImage will look for the shared memory map - - // Initialize again with the newly connected sender values - InitReceiver(sendername, width, height, dwFormat); - - m_bUpdated = true; // Return to update the receiving texture or image - - } - - // Connected and intialized - // Sender name, width, height, format, texture pointer and share handle have been retrieved - - // The application can now access and copy the sender texture - return true; - - } // end find sender - - // There is no sender or the connected sender closed - return false; - -} - -//--------------------------------------------------------- -// Check whether SpoutPanel opened and return the new sender name -bool Spout::CheckSpoutPanel(char *sendername, int maxchars) -{ - // If SpoutPanel has been activated, test if the user has clicked OK - if (m_bSpoutPanelOpened) { // User has activated spout panel - - SharedTextureInfo TextureInfo; - HANDLE hMutex = NULL; - DWORD dwExitCode; - char newname[256]; - bool bRet = false; - - // Must find the mutex to signify that SpoutPanel has opened - // and then wait for the mutex to close - hMutex = OpenMutexA(MUTEX_ALL_ACCESS, 0, "SpoutPanel"); - - // Has it been activated - if (!m_bSpoutPanelActive) { - // If the mutex has been found, set the active flag true and quit - // otherwise on the next round it will test for the mutex closed - if (hMutex) m_bSpoutPanelActive = true; - } - else if (!hMutex) { // It has now closed - m_bSpoutPanelOpened = false; // Don't do this part again - m_bSpoutPanelActive = false; - // call GetExitCodeProcess() with the hProcess member of - // global SHELLEXECUTEINFO to get the exit code from SpoutPanel - if (m_ShExecInfo.hProcess) { - GetExitCodeProcess(m_ShExecInfo.hProcess, &dwExitCode); - // Only act if exit code = 0 (OK) - if (dwExitCode == 0) { - // SpoutPanel has been activated and OK clicked - // Test the active sender which should have been set by SpoutPanel - newname[0] = 0; - if (!sendernames.GetActiveSender(newname)) { - // Otherwise the sender might not be registered. - // SpoutPanel always writes the selected sender name to the registry. - if (ReadPathFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\SpoutPanel", "Sendername", newname)) { - // Register the sender if it exists - if (newname[0] != 0) { - if (sendernames.getSharedInfo(newname, &TextureInfo)) { - // Register in the list of senders and make it the active sender - sendernames.RegisterSenderName(newname); - sendernames.SetActiveSender(newname); - } - } - } - } - // Now do we have a valid sender name ? - if (newname[0] != 0) { - // Pass back the new name - strcpy_s(sendername, maxchars, newname); - bRet = true; - } // endif valid sender name - } // endif SpoutPanel OK - } // got the exit code - } // endif no mutex so SpoutPanel has closed - // If we opened the mutex, close it now or it is never released - if (hMutex) CloseHandle(hMutex); - return bRet; - } // SpoutPanel has not been opened - - return false; - -} diff --git a/Plugin/Spout/SpoutGL/Spout.h b/Plugin/Spout/SpoutGL/Spout.h deleted file mode 100644 index 208e2d2..0000000 --- a/Plugin/Spout/SpoutGL/Spout.h +++ /dev/null @@ -1,254 +0,0 @@ -/* - - Spout.h - - Documentation - https://spoutgl-site.netlify.app/ - - Copyright (c) 2014-2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ -#pragma once - -#ifndef __Spout__ -#define __Spout__ - -#include "SpoutGL.h" - -class SPOUT_DLLEXP Spout : public spoutGL { - - public: - - Spout(); - ~Spout(); - - // - // ===================== SENDER ========================= - // - - // Set name for sender creation - // If no name is specified, the executable name is used. - void SetSenderName(const char* sendername = nullptr); - // Set the sender DX11 shared texture format - void SetSenderFormat(DWORD dwFormat); - // Close sender and free resources - // A sender is created or updated by all sending functions - void ReleaseSender(); - // Send texture attached to fbo. - // The fbo must be currently bound. - // The sending texture can be larger than the size that the sender is set up for. - // For example, if the application is using only a portion of the allocated texture space, - // such as for Freeframe plugins. (The 2.006 equivalent is DrawToSharedTexture). - bool SendFbo(GLuint FboID, unsigned int width, unsigned int height, bool bInvert = true); - // Send OpenGL texture - bool SendTexture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert = true, GLuint HostFBO = 0); - // Send image pixels - bool SendImage(const unsigned char* pixels, unsigned int width, unsigned int height, GLenum glFormat = GL_RGBA, bool bInvert = false, GLuint HostFBO = 0); - // Sender status - bool IsInitialized(); - // Sender name - const char * GetName(); - // Sender width - unsigned int GetWidth(); - // Sender height - unsigned int GetHeight(); - // Sender frame rate - double GetFps(); - // Sender frame number - long GetFrame(); - // Sender share handle - HANDLE GetHandle(); - - // - // ====================== RECEIVER =========================== - // - - // Specify sender for connection - // The application will not connect to any other unless the user selects one - // If that sender closes, the application will wait for the nominated sender to open - // If no name is specified, the receiver will connect to the active sender - void SetReceiverName(const char * sendername); - // Close receiver and release resources ready to connect to another sender - void ReleaseReceiver(); - // Receive shared texture - // Connect to a sender and retrieve texture details ready for access - // (see BindSharedTexture and UnBindSharedTexture) - bool ReceiveTexture(); - // Receive OpenGL texture - // Connect to a sender and inform the application to update - // the receiving texture if it has changed dimensions - // For no change, copy the sender shared texture to the application texture. - // The texture must be RGBA of dimension (width * height) - bool ReceiveTexture(GLuint TextureID, GLuint TextureTarget, bool bInvert = false, GLuint HostFbo = 0); - // Receive image pixels - // Connect to a sender and inform the application to update - // the receiving buffer if it has changed dimensions - // For no change, copy the sender shared texture to the pixel buffer - // The receiving image can be RGBA, BGRA, RGB or BGR formats of dimension (width * height) - bool ReceiveImage(unsigned char* pixels, GLenum glFormat = GL_RGBA, bool bInvert = false, GLuint HostFbo = 0); - // Query whether the sender has changed - // Checked at every cycle before receiving data - bool IsUpdated(); - // Query sender connection - // If the sender closes, receiving functions return false, - bool IsConnected(); - // Query received frame status - // The receiving texture or pixel buffer is only refreshed if the sender has produced a new frame - // This can be queried to process texture data only for new frames - bool IsFrameNew(); - // Received sender name - const char * GetSenderName(); - // Received sender width - unsigned int GetSenderWidth(); - // Received sender height - unsigned int GetSenderHeight(); - // Received sender DX11 texture format - DWORD GetSenderFormat(); - // Received sender frame rate - double GetSenderFps(); - // Received sender frame number - long GetSenderFrame(); - // Received sender share handle - HANDLE GetSenderHandle(); - // Received sender sharing mode - bool GetSenderCPUmode(); - // Open sender selection dialog - void SelectSender(); - - // - // Frame count - // - - // Enable or disable frame counting globally - void SetFrameCount(bool bEnable); - // Disable frame counting specifically for this application - void DisableFrameCount(); - // Return frame count status - bool IsFrameCountEnabled(); - // Frame rate control - void HoldFps(int fps); - - // - // Sender names - // - - // Number of senders - int GetSenderCount(); - // Sender item name - bool GetSender(int index, char* sendername, int MaxSize = 256); - // Sender information - bool GetSenderInfo(const char* sendername, unsigned int &width, unsigned int &height, HANDLE &dxShareHandle, DWORD &dwFormat); - // Current active sender - bool GetActiveSender(char* sendername); - // Set sender as active - bool SetActiveSender(const char* sendername); - - // - // Adapter functions - // - - // The number of graphics adapters in the system - int GetNumAdapters(); - // Get adapter item name - bool GetAdapterName(int index, char *adaptername, int maxchars = 256); - // Get adapter index - int GetAdapter(); - // Set graphics adapter for output - bool SetAdapter(int index = 0); - // Get the current adapter description - bool GetAdapterInfo(char *renderdescription, char *displaydescription, int maxchars); - // Current adapter - int Adapter(); - // Current adapter name - char * AdapterName(); - - // - // 2.006 compatibility - // - - // Find the index of the NVIDIA adapter in a multi-adapter system - bool FindNVIDIA(int &nAdapter); - // Graphics adapter details - bool GetAdapterInfo(char* renderadapter, - char* renderdescription, char* renderversion, - char* displaydescription, char* displayversion, - int maxsize, bool &bUseDX9); - - // Create a sender - bool CreateSender(const char *Sendername, unsigned int width = 0, unsigned int height = 0, DWORD dwFormat = 0); - // Update a sender - bool UpdateSender(const char* Sendername, unsigned int width, unsigned int height); - - // Legacy OpenGL DrawTo function - // See _SpoutCommon.h_ #define legacyOpenGL -#ifdef legacyOpenGL - // Render a texture to the shared texture. - bool DrawToSharedTexture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, float max_x = 1.0, float max_y = 1.0, float aspect = 1.0, bool bInvert = false, GLuint HostFBO = 0); -#endif - - // - // 2.006 compatibility - // - - // Create receiver connection - bool CreateReceiver(char* Sendername, unsigned int &width, unsigned int &height, bool bUseActive = false); - // Check receiver connection - bool CheckReceiver(char* Sendername, unsigned int &width, unsigned int &height, bool &bConnected); - // Receive OpenGL texture - bool ReceiveTexture(char* Sendername, unsigned int &width, unsigned int &height, GLuint TextureID = 0, GLuint TextureTarget = 0, bool bInvert = false, GLuint HostFBO = 0); - // Receive image pixels - bool ReceiveImage(char* Sendername, unsigned int &width, unsigned int &height, unsigned char* pixels, GLenum glFormat = GL_RGBA, bool bInvert = false, GLuint HostFBO = 0); - // Open dialog for the user to select a sender - // Optional message argument - bool SelectSenderPanel(const char* message = nullptr); - - // Legacy OpenGL Draw function - // See _SpoutCommon.h_ #define legacyOpenGL -#ifdef legacyOpenGL - // Render the shared texture - bool DrawSharedTexture(float max_x = 1.0, float max_y = 1.0, float aspect = 1.0, bool bInvert = true, GLuint HostFBO = 0); -#endif - -protected: - - // Sender creation and change - bool CheckSender(unsigned int width, unsigned int height); - // Create receiver connection - void InitReceiver(const char * sendername, unsigned int width, unsigned int height, DWORD dwFormat); - // Receiver find sender and retrieve information - bool ReceiveSenderData(); - // Receiver detect sender selection - bool CheckSpoutPanel(char *sendername, int maxchars = 256); - - // - // Class globals - // - - // Graphics adapters - int m_AdapterNumber; - int m_AdapterIndex; - char m_AdapterName[256]; - - -}; - -#endif diff --git a/Plugin/Spout/SpoutGL/SpoutControls.cpp b/Plugin/Spout/SpoutGL/SpoutControls.cpp deleted file mode 100644 index 4c5a826..0000000 --- a/Plugin/Spout/SpoutGL/SpoutControls.cpp +++ /dev/null @@ -1,1265 +0,0 @@ -// -// SpoutControls -// -// Allows an application to control a Spout sender -// -// ==================================================================================== -// Revisions : -// -// 21.06.15 - project start -// 08.07.15 - project Version 1 -// 16.07.15 - changed CheckControls to return the control index that was changed -// int SpoutControls::CheckControls(vector &controls) -// 17.07.15 - introduced two versions of CheckControls -// introduced Lesser GPL licence -// 22.07.15 - included CreateControl -// - removed clear control file path from the registry -// so that it remains for controllers to find the last sender started -// 27.07.15 - Added "OpenSpoutController" -// 18.08.15 - Cleanup for 1.002 release -// 24.09.15 - re-ordering in cleanup -// 24.12.15 - added executable path to registry "ControlPath" -// 30.12.15 - restored CopyControlFile -// - Moved GetControls public -// 13.01.16 - Changed OpenSpoutController to look for executable host path -// as well as SpoutControls installation path. -// 15.01.16 - Added fixed "NoClose" argument for opening SpoutController from an application -// so that the Close button is hidden. -// 17.01.16 - Added commandline argument to the OpenController function -// "NoClose" is now a key word -// - CloseControls - look for the SpoutController window and close it -// 18.01.16 - added getcwd to OpenSpoutController -// - cleanup on exit confirmed for Processing -// - Instead of closecontrols, close the controller in CleanUp if it has been opened -// 26.01.16 - added default empty string for OpenSpoutController - then needs SpoutControls installation -// 27.01.16 - brought SpoutController.exe topmost before close to prevent freeze if hidden -// 19.02.16 - fixed command line for OpenSpoutController -// 08.05.16 - fixed OpenSpoutController function to detect SpoutController.exe -// 11.05.16 - 1.007 -// 02.09.16 - safety checks for mailslot handle. Code cleanup. -// 17.01.17 - 1.008 release for Spout 2.006 - no code changes -// 27.01.17 - Changes to OpenSpoutController to find a SpoutControls installation -// 02.06.17 - Registry functions called from SpoutUtils -// 13.12.17 - OpenControls - returns false if no controls - no registry write -// 28.12.17 - Added GetFileControls -// 04.12.18 - corrected return value for GetFileControls -// 03.01.19 - Changed to revised registry functions in SpoutUtils -// 28.04.19 - Rebuild VS2017 - 2.007 - /MT -// 27.12.20 - Remove from Spout SDK and use for Processing library -// Rebuild Win32/x64 - /MT : VS2017 - 2.007 -// -// -// ==================================================================================== -// -// Copyright (C) 2015-2021. Lynn Jarvis, Leading Edge. Pty. Ltd. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You will receive a copy of the GNU Lesser General Public License along -// with this program. If not, see http://www.gnu.org/licenses/. -// -#include "SpoutControls.h" - -SpoutControls::SpoutControls() -{ - m_sharedMemoryName = ""; // Memory map name sring - m_hSharedMemory = NULL; // Memory map handle - m_pBuffer = NULL; // Shared memory pointer - m_hAccessMutex = NULL; // Map access mutex - m_hSlot = NULL; // Handle to the mailslot - m_dwSize = 0; // Size of the memory map - -} - - -//--------------------------------------------------------- -SpoutControls::~SpoutControls() -{ - Cleanup(); -} - - -// ====================================================================== -// Public -// ====================================================================== - - -// ===================================================================== // -// CONTROLLER // -// ===================================================================== // - - -//--------------------------------------------------------- -// Find a control map name in the registry -// This will only exist if the sender has created it and is running -// It is erased when the sender closes. -bool SpoutControls::FindControls(std::string &mapname) -{ - char path[MAX_PATH]; - - // Find the if controller map name exists the registry - if(ReadPathFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "ControlMap", path) ) { - if(path[0] > 0) { - mapname = path; - return true; - } - } - - return false; - -} - - -//--------------------------------------------------------- -// Create a controls memory map, existence mutex and access mutex -// and fill the memory map with the control vector -bool SpoutControls::CreateControls(std::string mapname, std::vector controls) -{ - std::string mutexName; - std::string sharedMemoryName; - - // Create a mutex to control the write / read - mutexName = mapname; - mutexName += "ControlsAccess"; - mutexName += "_mutex"; - m_hAccessMutex = CreateMutexA(NULL, true, mutexName.c_str()); // initial ownership - if (!m_hAccessMutex) { - printf("CreateControls : Mutex creation failed\n"); - return false; - } - - // Create a memory map that will contain the updated control information - m_sharedMemoryName = mapname; // Global shared memory name used throughout - - sharedMemoryName = mapname; - sharedMemoryName += "Controls"; - sharedMemoryName += "_map"; - - // Calculate the size required for the memory map - // First 4 bytes on the first line are the size of the control array - // Next the information for each control - // Type DWORD (4 bytes) Name (16 bytes) Data (256 bytes) - total 276 bytes per control - // Total : 276 + size *(276) - m_dwSize = 276 + (DWORD)(controls.size()*276); - - // Create or open the shared memory map - m_hSharedMemory = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, m_dwSize, (LPCSTR)sharedMemoryName.c_str()); - if (m_hSharedMemory == NULL || m_hSharedMemory == INVALID_HANDLE_VALUE) { - printf("CreateControls : error occured while creating file mapping object : %d\n", GetLastError() ); - CloseHandle(m_hAccessMutex); - return false; - } - - - // Map a view to get a pointer to write to - m_pBuffer = (LPTSTR)MapViewOfFile(m_hSharedMemory, FILE_MAP_ALL_ACCESS, 0, 0, m_dwSize); - if (m_pBuffer == NULL) { - printf("CreateControls : error occured while mapping view of the file : %d\n", GetLastError() ); - CloseHandle(m_hSharedMemory); - CloseHandle(m_hAccessMutex); - return false; - } - - WriteControls(m_pBuffer, controls); - - UnmapViewOfFile(m_pBuffer); - - // End of creation so unlock the access mutex - // If the reader tries to access the memory there will be nothing in it - ReleaseMutex(m_hAccessMutex); - - return true; -} - - -//--------------------------------------------------------- -// Set the changed controls to the memory map and inform the sender -bool SpoutControls::SetControls(std::vector controls) -{ - - if(UpdateControls(controls)) { - // Inform the sender that new control data is ready - WriteMail(m_sharedMemoryName, "Ready"); - return true; - } - - return false; -} - - - -//--------------------------------------------------------- -// Find a control map and update it with the controls -bool SpoutControls::UpdateControls(std::vector controls) -{ - std::string mutexName; - std::string memoryMapName; // local name of the shared memory - HANDLE hMemory = NULL; // local handle to shared memory - LPTSTR pBuf = NULL; // local shared memory pointer - HANDLE hAccessMutex = NULL; - DWORD dwWaitResult; - DWORD dwMapSize = 0; - char *buf = NULL; - char temp[256]; - - // - // Controller writes to the memory map to update control data - // - - // Check the access mutex - mutexName = m_sharedMemoryName; // mapname; - mutexName += "ControlsAccess"; - mutexName += "_mutex"; - hAccessMutex = OpenMutexA(MUTEX_ALL_ACCESS, 0, mutexName.c_str()); - if(!hAccessMutex) { - printf("UpdateControls - access mutex does not exist\n"); - CloseHandle(hAccessMutex); - return false; - } - - dwWaitResult = WaitForSingleObject(m_hAccessMutex, 67); - if (dwWaitResult != WAIT_OBJECT_0) { // reader is accessing it - CloseHandle(hAccessMutex); - return false; - } - - // The mutex is now locked so that the reader does not read while writing - - // The memory map name is defined by the global mapname - memoryMapName = m_sharedMemoryName; // local name; - memoryMapName += "Controls"; - memoryMapName += "_map"; - - // ==================================== - // At this stage the map size is not known, but it's size - // is the first 4 bytes of the map, so read that first to get the size - hMemory = CreateFileMappingA ( INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, 4, (LPCSTR)memoryMapName.c_str()); - if (hMemory == NULL || hMemory == INVALID_HANDLE_VALUE) { - printf("UpdateControls : Error occured while opening file mapping object : %d\n", GetLastError() ); - CloseHandle(hAccessMutex); - return false; - } - - pBuf = (LPTSTR)MapViewOfFile(hMemory, FILE_MAP_ALL_ACCESS, 0, 0, 4); // only 4 bytes to read - if (pBuf == NULL || pBuf[0] == 0) { - printf("UpdateControls : Error 1 occured while mapping view of the file : %d\n", GetLastError() ); - if(pBuf) UnmapViewOfFile(pBuf); - CloseHandle(hMemory); - CloseHandle(hAccessMutex); - return false; - } - - // Retrieve the map size - the first 4 bytes - buf = (char *)pBuf; // moveable pointer - for(int i = 0; i<4; i++) - temp[i] = *buf++; - temp[4] = 0; - dwMapSize = (DWORD)atoi(temp); - - // Now close the map and re-open it with the known size - UnmapViewOfFile(pBuf); - CloseHandle(hMemory); - - // First check that the map size is correct for the control vector passed - // First 4 bytes on the first line are the size of the control array - // Next the information for each control - // Type DWORD (4 bytes) Name (16 bytes) Data (256 bytes) - total 276 bytes per control - // Total : 276 + size *(276) - if(dwMapSize != (276 + (DWORD)(controls.size()*276)) ) { - CloseHandle(hAccessMutex); - return false; - } - - // Now open the full map and write the control data to it - hMemory = CreateFileMappingA ( INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, dwMapSize, (LPCSTR)memoryMapName.c_str()); - if (hMemory == NULL || hMemory == INVALID_HANDLE_VALUE) { - CloseHandle(hAccessMutex); - return false; - } - - pBuf = (LPTSTR)MapViewOfFile(hMemory, FILE_MAP_ALL_ACCESS, 0, 0, dwMapSize); - if (pBuf == NULL) { - printf("UpdateControls : Error 2 occured while mapping view of the file : %d\n", GetLastError() ); - CloseHandle(hMemory); - CloseHandle(hAccessMutex); - return false; - } - - // - // Write the controls to the memory map - // - WriteControls(pBuf, controls); - - UnmapViewOfFile(pBuf); // Finished with the buffer - CloseHandle(hMemory); // Closes the memory map - ReleaseMutex(hAccessMutex); // Unlock the access mutex so that the reader can read from the memory map - CloseHandle(hAccessMutex);// Close the local handle - - return true; -} - - -//--------------------------------------------------------- -// Get controls from an existing map -bool SpoutControls::GetControls(std::vector &controls) -{ - std::string mutexName; - std::string memoryMapName; // local name of the shared memory - HANDLE hMemory = NULL; // local handle to shared memory - LPTSTR pBuf = NULL; // local shared memory pointer - HANDLE hAccessMutex = NULL; - DWORD dwWaitResult; - DWORD dwMapSize = 0; - // int nControls = 0; - // int ControlType = 0; - // float ControlValue = 0; // Float value of a control - std::string ControlText; // Text data of a control - char *buf = NULL; - char temp[256]; - - // - // Reader reads the memory map to retrieve control data - // - - // Check the access mutex - mutexName = m_sharedMemoryName; // mapname; - mutexName += "ControlsAccess"; - mutexName += "_mutex"; - hAccessMutex = OpenMutexA(MUTEX_ALL_ACCESS, 0, mutexName.c_str()); - if(!hAccessMutex) { - printf("GetControls : No access mutex\n"); - CloseHandle(hAccessMutex); - return false; - } - - dwWaitResult = WaitForSingleObject(hAccessMutex, 67); - if (dwWaitResult != WAIT_OBJECT_0) { // writer is accessing it - CloseHandle(hAccessMutex); - return false; - } - - // The mutex is now locked so that the writer does not write while reading - - // The memory map name is defined by the global mapname - memoryMapName = m_sharedMemoryName; - memoryMapName += "Controls"; - memoryMapName += "_map"; - - // ==================================== - // At this stage the map size is not known, but it's size is the - // first 4 bytes of the map so read that first to get the size - hMemory = CreateFileMappingA ( INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, 4, (LPCSTR)memoryMapName.c_str()); - if (hMemory == NULL || hMemory == INVALID_HANDLE_VALUE) { - printf("GetControls - Error occured opening file mapping object : %d\n", GetLastError() ); - ReleaseMutex(hAccessMutex); - CloseHandle(hAccessMutex); - return false; - } - - pBuf = (LPTSTR)MapViewOfFile(hMemory, FILE_MAP_ALL_ACCESS, 0, 0, 4); // only 4 bytes to read - // Did the mapping fail or is there nothing in the map - if (pBuf == NULL || pBuf[0] == 0) { - printf("GetControls - Error 1 occured while mapping view of the file : %d\n", GetLastError() ); - if(pBuf) UnmapViewOfFile(pBuf); - CloseHandle(hMemory); - ReleaseMutex(hAccessMutex); - CloseHandle(hAccessMutex); - return false; - } - - // Retrieve the map size - the first 4 bytes - buf = (char *)pBuf; // moveable pointer - for(int i = 0; i<4; i++) - temp[i] = *buf++; - temp[4] = 0; - dwMapSize = (DWORD)atoi(temp); - - // Now close the map and re-open it with the known size - UnmapViewOfFile(pBuf); - CloseHandle(hMemory); - - hMemory = CreateFileMappingA ( INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, dwMapSize, (LPCSTR)memoryMapName.c_str()); - if (hMemory == NULL || hMemory == INVALID_HANDLE_VALUE) { - printf("GetControls - CreateFileMapping failed\n"); - ReleaseMutex(hAccessMutex); - CloseHandle(hAccessMutex); - return false; - } - - pBuf = (LPTSTR)MapViewOfFile(hMemory, FILE_MAP_ALL_ACCESS, 0, 0, dwMapSize); - if (pBuf == NULL) { - printf("GetControls - Error 2 occured while mapping view of the file : %d\n", GetLastError() ); - CloseHandle(hMemory); - ReleaseMutex(hAccessMutex); - CloseHandle(hAccessMutex); - return false; - } - - // - // Get the controls from the memory map - // - ReadControls(pBuf, controls); - - // Finished with the buffer - UnmapViewOfFile(pBuf); - - // Reader closes the memory map - CloseHandle(hMemory); - - // Unlock the access mutex so that the writer can write to the memory map - ReleaseMutex(hAccessMutex); - - // Close the local mutex handle - // All handles must be closed before the writer finally closes with the creation handle - CloseHandle(hAccessMutex); - - return true; -} - - -//--------------------------------------------------------- -// OpenControls -// A sender creates the controls and then calls OpenControls with a control name -// so that the controller can set up a memory map ans share data with the sender as it changes the controls -// The sender provides the map name, creates the mailslot and writes the map name to the registry -bool SpoutControls::OpenControls(std::string mapname) -{ - char Path[MAX_PATH]; - HRESULT hr; - Path[0] = 0; - - // 13.12.17 - return if no controls - // TODO remove size check below - // printf("SpoutControls::OpenControls(%s) - controls size = %d\n", mapname.c_str(), filecontrols.size()); - if (filecontrols.size() == 0) { - // printf("No controls\n"); - return false; - } - - // Set the global map name - m_sharedMemoryName = mapname; - - // Create the mailslot - // m_hSlot is intitialized to NULL in constructor - CreateMail(m_sharedMemoryName, m_hSlot); - // printf("Created mailslot handle [%x]\n", m_hSlot); - - // Write the executable path to the registry - GetModuleFileNameA(NULL, Path, sizeof(Path)); - // printf("ControlPath(%s)\n", Path); - if (WritePathToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "ControlPath", Path)) { - // printf("registry write OK\n"); - } - - // Write the name path to the registry to identify the memory map - strcpy_s(Path, MAX_PATH, m_sharedMemoryName.c_str()); - PathStripPathA(Path); - PathRemoveExtensionA(Path); - // printf("ControlMap(%s)\n", Path); - if (WritePathToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "ControlMap", Path)) { - // printf("registry write 2 OK\n"); - } - - // If the user has created controls, find the programdata or executable path and write the control file - m_ControlFilePath[0] = 0; - if(filecontrols.size() > 0) { - // Find or create the Spout programdata folder - // Look for "ProgramData" if it exists - hr = SHGetFolderPathA(NULL, CSIDL_COMMON_APPDATA, NULL, 0, Path); - if (SUCCEEDED(hr)) { - sprintf_s(m_ControlFilePath, MAX_PATH, "%s\\Spout", Path); - CreateDirectoryA((LPCSTR)m_ControlFilePath, NULL); // Will create if it does not exist - // RemoveDirectoryA((LPCSTR)SpoutPath); - strcat_s(m_ControlFilePath, MAX_PATH, "\\"); - strcat_s(m_ControlFilePath, mapname.c_str()); - strcat_s(m_ControlFilePath, ".txt"); // The control file name - } - - // If that failed use the executable path - if(!m_ControlFilePath[0]) { - GetModuleFileNameA(NULL, Path, sizeof(Path)); - PathRemoveFileSpecA(Path); - strcat_s(Path, MAX_PATH, "\\"); - strcat_s(Path, mapname.c_str()); - strcat_s(Path, ".txt"); // The control file name - strcpy_s(m_ControlFilePath, MAX_PATH, Path); - } - - CreateControlFile(m_ControlFilePath); - // Write the control file path to the registry - // printf("writing control file [%s]\n", m_ControlFilePath); - WritePathToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "ControlFile", m_ControlFilePath); - - return true; - - } - - return false; -} - - - - -//--------------------------------------------------------- -bool SpoutControls::CloseControls() -{ - // Release all handles etc - Cleanup(); - return true; -} - - -//--------------------------------------------------------- -// Open the SpoutController executable to allow controls to be changed -// Requires SpoutController.exe to be in the path passed -// or in the folder of a host executable -// or a SpoutControls installation -bool SpoutControls::OpenSpoutController(std::string CommandLine) -{ - char Path[MAX_PATH]; - char InstallPath[MAX_PATH]; - // HRESULT hr; - Path[0] = 0; - InstallPath[0] = 0; - - // Look for the SpoutControls installation path in the registry - // This contains the full path including "SpoutController.exe" - if(ReadPathFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\SpoutControls", "InstallPath", InstallPath)) { - strcpy_s(Path, MAX_PATH, InstallPath); - } - else if(!CommandLine.empty()) { - // A path been passed - add the executable name - strcpy_s(Path, MAX_PATH, CommandLine.c_str()); - strcat_s(Path, MAX_PATH, "\\SpoutController.exe"); - } - else { - // No path can be found - return false; - } - - if(PathFileExistsA(Path) ) { - // Launch SpoutController - SHELLEXECUTEINFOA ShExecInfo; - ZeroMemory(&ShExecInfo, sizeof(ShExecInfo)); - ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); - ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; - ShExecInfo.hwnd = NULL; - ShExecInfo.lpVerb = NULL; - ShExecInfo.lpFile = (LPCSTR)Path; - // If opening the controller from an application, give it an argument - // "NoClose" to remove the Close button - // WinSpoutController is now changed to show/hide or exit on Escape key - if(!CommandLine.empty() && CommandLine.c_str()[0] != 0) { - if(InstallPath[0] == 0) { - // No SpoutContols installation, so use the path passed - ShExecInfo.lpParameters = (LPCSTR)CommandLine.c_str(); // ""; - } - else { - // SpoutContols installation as well as a command line, so use "NOCLOSE" - strcpy_s(InstallPath, MAX_PATH, "NOCLOSE"); - ShExecInfo.lpParameters = InstallPath; - } - } - else { - ShExecInfo.lpParameters = ""; - } - ShExecInfo.lpDirectory = NULL; - ShExecInfo.nShow = SW_SHOW; - ShExecInfo.hInstApp = NULL; - ShellExecuteExA(&ShExecInfo); - Sleep(125); // alow time to open - return true; - } - - return false; -} - - -//--------------------------------------------------------- -// Check the mailslot and return all controls -bool SpoutControls::CheckControls(std::vector &controls) -{ - - // if intialized already, check for a message from the controller - if(CheckMail(m_sharedMemoryName, m_hSlot)) { - // Get the new controls - GetControls(controls); - return true; - } - - return false; - -} - - - -// ====================================================================== -// Sender functions to create a control file -// ====================================================================== -bool SpoutControls::CreateControl(std::string name, std::string type) -{ - return CreateFileControl(name, type, 0.0f, 1.0f, 1.0, ""); -} - -bool SpoutControls::CreateControl(std::string name, std::string type, float value) -{ - return CreateFileControl(name, type, 0.0f, value, value, ""); // Min. max, default -} - -bool SpoutControls::CreateControl(std::string name, std::string type, std::string text) -{ - return CreateFileControl(name, type, 0.0f, 1.0f, 1.0, text); -} - -bool SpoutControls::CreateControl(std::string name, std::string type, float minimum, float maximum, float value) -{ - return CreateFileControl(name, type, minimum, maximum, value, ""); -} - - -//--------------------------------------------------------- -// Used by the controller to find the control file path -// and find the control map name in the registry -bool SpoutControls::FindControlFile(std::string &filepath) -{ - char path[MAX_PATH]; - - // Find if the controller map file name exists the registry - if(ReadPathFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "ControlFile", path) ) { - if(path[0] > 0) { - - // 24.08.15 - add existence check - if(_access(path, 0) == -1) // Mode 0 - existence check - return false; - - // File found - filepath = path; - return true; - - } - } - - return false; - -} - -//--------------------------------------------------------- -// Used by a multiple controlled senders to copy the control -// file from ProgramData to the local dll directory -bool SpoutControls::CopyControlFile (std::string &filepath, std::string &destpath) -{ - // copy from source to destination - if(CopyFileA((LPCSTR)filepath.c_str(), (LPCSTR)destpath.c_str(), false)) { - return true; - } - return false; -} - -bool SpoutControls::GetFileControls(std::vector &controls) -{ - if (filecontrols.size() > 0) { - controls.clear(); - for (unsigned int i = 0; i < filecontrols.size(); i++) { - controls.push_back(filecontrols.at(i)); - } - return true; - } - return false; -} - - -// ====================================================================== -// Private -// ====================================================================== - - -//--------------------------------------------------------- -// Create a file control and add to the sender's filecontrol vector -bool SpoutControls::CreateFileControl(std::string name, std::string type, float minimum, float maximum, float value, std::string text) -{ - filecontrol fc; - - if(name.empty() || type.empty()) { - return false; - } - - fc.name = name; - fc.desc = type; - fc.min = minimum; - fc.max = maximum; - fc.def = value; - fc.value = value; - fc.text = text.c_str(); - - if(type == "bool") - fc.fftype = 0; // checkbox - if(type == "event") - fc.fftype = 1; // button - if(type == "float") - fc.fftype = 10; // float slider - if(type == "text") - fc.fftype = 100; // text - - filecontrols.push_back(fc); - - return true; -} - - -//--------------------------------------------------------- -// Create a JSON control file from the filecontrols vector -bool SpoutControls::CreateControlFile(const char *filepath) -{ - std::string linestring; - char path[MAX_PATH]; - char temp[256]; - - if(!filepath[0] || filecontrols.empty()) - return false; - - strcpy_s(path, MAX_PATH, filepath); - - // - // Write the contents of the parameter list - // - // Example - // - - /*{ - "CREDIT": "by Lynn Jarvis - spout.zeal.co", - "DESCRIPTION": "SpoutControls", - "CATEGORIES": [ - "Parameter adjustment" - ], - "INPUTS": [ - { - "NAME": "User text", - "TYPE": "text", - "DEFAULT": 0 - }, - { - "NAME": "Rotate", - "TYPE": "bool", - "DEFAULT": 1 - }, - { - "NAME": "Speed", - "TYPE": "float", - "MIN": 0.0, - "MAX": 4.0, - "DEFAULT": 0.5 - }, - ] - }*/ - - // Create the file - std::ofstream sourceFile(path); - - // Source file created OK ? - if(sourceFile.is_open()) { - - // Create the JSON header - linestring = "/*{\n"; - sourceFile.write(linestring.c_str(), linestring.length()); - - sprintf_s(temp, 256, " \"CREDIT\": \"SpoutControls - spout.zeal.co\",\n"); - sourceFile.write(temp, strlen(temp)); - - PathStripPathA(path); - PathRemoveExtensionA(path); - sprintf_s(temp, 256, " \"DESCRIPTION\": \"%s\",\n", path); - sourceFile.write(temp, strlen(temp)); - - sprintf_s(temp, 256, " \"CATEGORIES\": [\n"); - sourceFile.write(temp, strlen(temp)); - sprintf_s(temp, 256, " \"Parameter adjustment\"\n"); - sourceFile.write(temp, strlen(temp)); - sprintf_s(temp, 256, " ],\n"); - sourceFile.write(temp, strlen(temp)); - sprintf_s(temp, 256, " \"INPUTS\": [\n"); - sourceFile.write(temp, strlen(temp)); - - // Write the control data here - // Example - // { - // "NAME": "Speed", - // "TYPE": "float", - // "MIN": 0.0, - // "MAX": 4.0, - // "DEFAULT": 0.5 - // }, - for(unsigned int i = 0; i < filecontrols.size(); i++) { - sprintf_s(temp, 256, " {\n"); - sourceFile.write(temp, strlen(temp)); - sprintf_s(temp, 256, " \"NAME\": \"%s\",\n", filecontrols.at(i).name.c_str()); - sourceFile.write(temp, strlen(temp)); - sprintf_s(temp, 256, " \"TYPE\": \"%s\",\n", filecontrols.at(i).desc.c_str()); - sourceFile.write(temp, strlen(temp)); - if(filecontrols.at(i).desc != "text") { - sprintf_s(temp, 256, " \"MIN\": %.2f,\n", filecontrols.at(i).min); - sourceFile.write(temp, strlen(temp)); - sprintf_s(temp, 256, " \"MAX\": %.2f,\n", filecontrols.at(i).max); - sourceFile.write(temp, strlen(temp)); - sprintf_s(temp, 256, " \"DEFAULT\": %.2f\n", filecontrols.at(i).def); - sourceFile.write(temp, strlen(temp)); - } - else { - sprintf_s(temp, 256, " \"TEXT\": \"%s\"\n", filecontrols.at(i).text.c_str()); - sourceFile.write(temp, strlen(temp)); - } - sprintf_s(temp, 256, " },\n"); - sourceFile.write(temp, strlen(temp)); - } - - sprintf_s(temp, 256, " ],\n"); - sourceFile.write(temp, strlen(temp)); - sprintf_s(temp, 256, "}*/\n"); - sourceFile.write(temp, strlen(temp)); - - sourceFile.close(); - - // printf("Control file created\n[%s]\n", filepath); - } - else { - sprintf_s(temp, 256, "Control file not created\n[%s]", path); - MessageBoxA(NULL, temp, "Info", MB_OK); - // MessageBoxA(NULL, "File not created", "Info", MB_OK); - } - - return true; -} - - -//--------------------------------------------------------- -// Write control map with updated values -bool SpoutControls::WriteControls(void *pBuffer, std::vector controls) -{ - // - // Write the control data to shared memory - // The writer knows the memory map size to open it (m_dwSize) - // - float fValue = 0; - char desc[256]; - char *buffer = NULL; // the buffer to store in shared memory - char *buf = NULL; // pointer within the buffer - int i, j; - - buffer = (char *)malloc(m_dwSize*sizeof(unsigned char)); - if(!buffer) return false; - - // Clear the buffer to zero so that there is a null for each data line - ZeroMemory(buffer, m_dwSize*sizeof(unsigned char)); - buf = buffer; // pointer within the buffer - - // The first 4 bytes of the first line is the memory map size so the reader knows how big it is - // printf("Writing the memory map size (%d)\n", m_dwSize); - sprintf_s(desc, 256, "%4d", m_dwSize); - for(i = 0 ; i< 4; i++) - *buf++ = desc[i]; - - // The next 4 bytes contains the number of controls - ZeroMemory(desc, 256); - sprintf_s(desc, 256, "%4d", (DWORD)controls.size()); - for(i = 0 ; i< 4; i++) - *buf++ = desc[i]; - - // Move on 268 bytes to the start of the controls (each memory map line is 276 bytes) - buf += 268; - - // Next the controls and their data - // Name (16 bytes) Type (4 bytes) Data (256 bytes) - total 276 bytes per control - for(i = 0; i < (int)controls.size(); i++) { - - // Control name - 16 bytes - ZeroMemory(desc, 256); - if(controls.at(i).name.c_str()[0]) - sprintf_s(desc, 256, "%s", controls.at(i).name.c_str()); - for(j = 0 ; j<16; j++) - *buf++ = desc[j]; - - // Control type - 4 bytes - ZeroMemory(desc, 256); - sprintf_s(desc, 256, "%4d", (DWORD)controls.at(i).type); - for(j = 0 ; j<4; j++) - *buf++ = desc[j]; - - // Control data - 256 bytes - ZeroMemory(desc, 256); - if(controls.at(i).type == 100) { // Text data - if(controls.at(i).text[0]) { - sprintf_s(desc, 256, "%s", controls.at(i).text.c_str()); - } - } - else { - fValue = controls.at(i).value; - sprintf_s(desc, 256, "%f", fValue); // float data - } - - - // copy it with 256 length - for(j = 0 ; j<256; j++) - *buf++ = desc[j]; - - } // end all controls - - // Now transfer to shared memory which will be the same size - memcpy( (void *)pBuffer, (void *)buffer, m_dwSize ); - - free((void *)buffer); - - return true; -} - - -//--------------------------------------------------------- -// Read controls from the memory map -bool SpoutControls::ReadControls(void *pBuffer, std::vector &controls) -{ - char *buf = NULL; - char temp[256]; - int i, j, nControls; - control control; - - // - // Get the controls - // - buf = (char *)pBuffer; // moveable pointer - buf += 4; // The first 4 bytes of the first line is the memory map size, so skip that - - // the next 4 bytes contains the number of controls - for(i = 0; i<4; i++) - temp[i] = *buf++; - temp[4] = 0; - nControls = atoi(temp); - - // Move on 268 bytes to the control data (each line is 276 bytes) - buf += 268; - - // Clear the controls vector - controls.clear(); - - // Fill it again (use previously found size) - for(i = 0; i 0) { - filecontrols.clear(); - } - - // Release all objects - if(m_pBuffer) UnmapViewOfFile(m_pBuffer); - if(m_hSharedMemory) CloseHandle(m_hSharedMemory); - if(m_hAccessMutex) CloseHandle(m_hAccessMutex); - m_pBuffer = NULL; - m_hSharedMemory = NULL; - m_hAccessMutex = NULL; - - if(m_hSlot) { - // printf("Closing mailslot handle\n"); - // For a sender, clear the map name from the registry - RemovePathFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "ControlMap"); - CloseHandle(m_hSlot); - m_hSlot = NULL; - } - - // Close the controller if it has been opened - HWND hwnd = FindWindowA(NULL, (LPCSTR)"Spout Controller"); - if(hwnd) { - // ShowWindow(hwnd, SW_SHOWNORMAL); // causes a freeze if the window is hidden - SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_ASYNCWINDOWPOS | SWP_SHOWWINDOW | SWP_NOSIZE | SWP_NOMOVE); - SendMessageA(hwnd, WM_SYSCOMMAND, SC_CLOSE, 0); - } - - return true; -} - diff --git a/Plugin/Spout/SpoutGL/SpoutCopy.cpp b/Plugin/Spout/SpoutGL/SpoutCopy.cpp deleted file mode 100644 index debaf55..0000000 --- a/Plugin/Spout/SpoutGL/SpoutCopy.cpp +++ /dev/null @@ -1,1099 +0,0 @@ -/** - - Functions to manage pixel buffer copying - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Copyright (c) 2016-2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ======================== - - 20.08.16 - start class - 23.08.16 - finished first version - 10.10.16 - Added SSE3 detection - Optimized SSE2 rgba-bgra function - Revise rgb2rgba etc. - 11.10.16 - Added SSSE detection and rgba-bgra function - 04.01.17 - Added rgb2bgra, bgr2bgra, bgra2rgb, bgra2bgr - 17.10.18 - Change FlipBuffer to void - 13.11.18 - const changes as per Engel (https://github.com/leadedge/Spout2/pull/26) - 27.11.18 - Add RemovePadding - 17.10.19 - Add rgba2bgrResample and bgra2bgrResample for SpoutCam - 02.02.20 - Add rgba2rgbaResample and row pitch to all resamplers - 22.06.20 - Add void rgba2rgba and rgba2rgb with source pitch - Correct const for some functions - 30.06.20 - Use CopyPixels instead of copy loop in rgba2rgba - 09.07.20 - Add rgba2rgb with source stride - 07.09.20 - experimental SSE RGBA to RGB not working - 19.09.20 - Removed experimental SSE RGBA to RGB function - 23.09.20 - CheckSSE - initialize CPUInfo - 06.10.20 - Modifications to rgba2rgb and rgba2rgbResample for SpoutCam mirror and swap red/blue - 24.10.20 - Add rgba2bgra with source pitch - 25.10.20 - Add rgb2rgba with dest pitch - 26.10.20 - Add rgb2bgra with dest pitch - 09.12.20 - Correct movsd line pitch in RemovePadding - -*/ -#include "SpoutCopy.h" - -spoutCopy::spoutCopy() { - m_bSSE2 = false; - m_bSSE3 = false; - m_bSSSE3 = false; - CheckSSE(); // SSE available - sets m_bSSE2, m_bSSE3, m_bSSSE3 -} - - -spoutCopy::~spoutCopy() { - -} - - -void spoutCopy::CopyPixels(const unsigned char *source, unsigned char *dest, - unsigned int width, unsigned int height, - GLenum glFormat, bool bInvert) const -{ - unsigned int Size = width*height * 4; // RGBA default - if (glFormat == GL_RGB || glFormat == GL_BGR_EXT) - Size = width*height * 3; - - if (bInvert) { - FlipBuffer(source, dest, width, height, glFormat); - } - else { - if (width < 320) { // Too small for assembler - memcpy(reinterpret_cast(dest), - reinterpret_cast(source), Size); - } - else if ((Size % 16) == 0 && m_bSSE2) { // 16 byte aligned SSE assembler - memcpy_sse2(reinterpret_cast(dest), - reinterpret_cast(source), Size); - } - else if ((Size % 4) == 0) { // 4 byte aligned assembler - __movsd(reinterpret_cast(dest), - reinterpret_cast(source), Size / 4); - } - else { // Default is standard memcpy - memcpy(reinterpret_cast(dest), - reinterpret_cast(source), Size); - } - } -} - -void spoutCopy::FlipBuffer(const unsigned char *src, - unsigned char *dst, - unsigned int width, - unsigned int height, - GLenum glFormat) const -{ - unsigned int pitch = width * 4; // RGBA default - if (glFormat == GL_RGB || glFormat == GL_BGR_EXT) - pitch = width * 3; // RGB format specified - - unsigned int line_s = 0; - unsigned int line_t = (height - 1)*pitch; - - for (unsigned int y = 0; y(dst + line_t), - reinterpret_cast(src + line_s), pitch); - else if ((pitch % 16) == 0 && m_bSSE2) // use sse assembler function - memcpy_sse2(reinterpret_cast(dst + line_t), - reinterpret_cast(src + line_s), pitch); - else if ((pitch % 4) == 0) // use 4 byte move assembler function - __movsd(reinterpret_cast(dst + line_t), - reinterpret_cast(src + line_s), - pitch / 4); - else - memcpy(reinterpret_cast(dst + line_t), - reinterpret_cast(src + line_s), pitch); - line_s += pitch; - line_t -= pitch; - } - -} - -void spoutCopy::RemovePadding(const unsigned char *source, unsigned char *dest, - unsigned int width, unsigned int height, - unsigned int stride, GLenum glFormat) const -{ - // Actual line pitch - unsigned int pitch = width*4; // default rgba - if (glFormat == GL_RGB || glFormat == GL_BGR_EXT) - pitch = width*3; // rgb - - // Remove the padding (stride-pitch) - for (unsigned int y = 0; y < height; y++) { - - if (pitch < 320 || stride < 320) { // too small for assembler - memcpy(reinterpret_cast(dest), reinterpret_cast(source), pitch); - } - else if ((pitch % 16) == 0 && (stride % 16) == 0 && m_bSSE2) { // use sse - memcpy_sse2(reinterpret_cast(dest), reinterpret_cast(source), pitch); - } - else if ((pitch % 4) == 0 && (stride % 4) == 0) { // 4 byte move - __movsd(reinterpret_cast(dest), reinterpret_cast(source), pitch/4); - } - else { - memcpy(reinterpret_cast(dest), reinterpret_cast(source), pitch); - } - source += stride; - dest += pitch; - } -} - - -// -// Fast memcpy -// -// Approx 1.7 times speed of memcpy (0.84 msec per frame 1920x1080) -// -// Original source - William Chan -// (dead link) http://williamchan.ca/portfolio/assembly/ssememcpy/ -// See also : -// http://stackoverflow.com/questions/1715224/very-fast-memcpy-for-image-processing -// http://www.gamedev.net/topic/502313-special-case---faster-than-memcpy/ -// And a more recent comprehensive study : -// Video : https://level1techs.com/video/level1-diagnostic-fixing-our-memcpy-troubles-looking-glass// -// Source : https://github.com/level1wendell/memcpy_sse and others. -// -void spoutCopy::memcpy_sse2(void* dst, const void* src, size_t Size) const -{ - auto pSrc = static_cast(src); // Source buffer - auto pDst = static_cast(dst); // Destination buffer - unsigned int n = (unsigned int)Size >> 7; // Counter = size divided by 128 (8 * 128bit registers) - - __m128i Reg0, Reg1, Reg2, Reg3, Reg4, Reg5, Reg6, Reg7; - for (unsigned int Index = n; Index > 0; --Index) { - - // SSE2 prefetch - _mm_prefetch(pSrc + 256, _MM_HINT_NTA); - _mm_prefetch(pSrc + 256 + 64, _MM_HINT_NTA); // ??? TODO : why - - // TODO - research and optimize - minor (0.1msec) speed difference noted - // _mm_prefetch(pSrc, _MM_HINT_NTA); - - // move data from src to registers - // 8 x 128 bit (16 bytes each) - // Increment source pointer by 16 bytes each - // for a total of 128 bytes per cycle - Reg0 = _mm_load_si128(reinterpret_cast(pSrc)); - Reg1 = _mm_load_si128(reinterpret_cast(pSrc + 16)); - Reg2 = _mm_load_si128(reinterpret_cast(pSrc + 32)); - Reg3 = _mm_load_si128(reinterpret_cast(pSrc + 48)); - Reg4 = _mm_load_si128(reinterpret_cast(pSrc + 64)); - Reg5 = _mm_load_si128(reinterpret_cast(pSrc + 80)); - Reg6 = _mm_load_si128(reinterpret_cast(pSrc + 96)); - Reg7 = _mm_load_si128(reinterpret_cast(pSrc + 112)); - - // move data from registers to dest - // TODO - // _mm_prefetch((const char*)(pSrc + 256), _MM_HINT_NTA); - - _mm_stream_si128(reinterpret_cast<__m128i *>(pDst), Reg0); - _mm_stream_si128(reinterpret_cast<__m128i *>(pDst + 16), Reg1); - _mm_stream_si128(reinterpret_cast<__m128i *>(pDst + 32), Reg2); - _mm_stream_si128(reinterpret_cast<__m128i *>(pDst + 48), Reg3); - _mm_stream_si128(reinterpret_cast<__m128i *>(pDst + 64), Reg4); - _mm_stream_si128(reinterpret_cast<__m128i *>(pDst + 80), Reg5); - _mm_stream_si128(reinterpret_cast<__m128i *>(pDst + 96), Reg6); - _mm_stream_si128(reinterpret_cast<__m128i *>(pDst + 112), Reg7); - - pSrc += 128; - pDst += 128; - } - -} - - -// -// CheckSSE() -// -// https://msdn.microsoft.com/en-us/library/hskdteyh.aspx -// -// static bool SSE2 (void) { return CPU_Rep.f_1_EDX_[26]; } -// SSE2 | [bit 26] EDX -// SSE2 = (cpuid03 & (0x1 << 26)) -// -// static bool SSE3 (void) { return CPU_Rep.f_1_ECX_[0]; } -// SSE3 | [bit 0] ECX -// SSE3 = (cpuid02 & (0x1) -// -// static bool SSSE3(void) { return CPU_Rep.f_1_ECX_[9]; } -// SSSE3 | [bit 9] ECX -// SSSE3 = (cpuid02 & (0x1 << 9) -// -// SSE4 not currently used : -// -// SSE4.1 and SSE4.2 are extensions of SSE, SSE2, SSE3, and SSSE3. -// To check if the processor supports SSE4.1, execute CPUID with EAX = 1 as input. -// If bit 19 of ECX is set, then the processor supports SSE4.1. -// To check if the processor supports SSE4.2 instructions for string / text processing, -// PCMPGTQ, and CRC32, execute CPUID with EAX = 1 as input. -// If bit 20 of ECX is set, then the processor supports these SSE4.2 in structions. -// -// static bool SSE41(void) { return CPU_Rep.f_1_ECX_[19]; } -// SSE41 | [bit 19] ECX -// SSE41 = (cpuid02 & (0x1 << 19)) -// -// static bool SSE42(void) { return CPU_Rep.f_1_ECX_[20]; } -// SSE42 | [bit 20] ECX -// SSE42 = (cpuid02 & (0x1 << 20)) -// -// EAX - CPUInfo[0] -// EBX - CPUInfo[1] -// ECX - CPUInfo[2] -// EDX - CPUInfo[3] -// -// For intrinsics and SSE : https://software.intel.com/sites/landingpage/IntrinsicsGuide/ -// -void spoutCopy::CheckSSE() -{ - // An array of four integers that contains the information returned - // in EAX (0), EBX (1), ECX (2), and EDX (3) about supported features of the CPU. - int CPUInfo[4] = { -1, -1, -1, -1 }; - - //-- Get number of valid info ids - __cpuid(CPUInfo, 0); - int nIds = CPUInfo[0]; - - //-- Get info for id "1" - if (nIds >= 1) { - // SSE2 | [bit 26] EDX - // SSE2 = (cpuid03 & (0x1 << 26)) - __cpuid(CPUInfo, 1); // EAX = 1 for __cpuid - m_bSSE2 = ((CPUInfo[3] & (0x1 << 26)) || false); - // SSE3 | [bit 0] ECX - // SSE3 = (cpuid02 & (0x1) - m_bSSE3 = ((CPUInfo[2] & (0x1)) || false); - // SSSE3 | [bit 9] ECX - // SSSE3 = (cpuid02 & (0x1 << 9) - m_bSSSE3 = ((CPUInfo[2] & (0x1 << 9)) || false); - } - -} - -// -// rgba2bgra, bgra2rgba -// -void spoutCopy::rgba2bgra(const void *rgba_source, void *bgra_dest, - unsigned int width, unsigned int height, bool bInvert) const -{ - if ((width % 16) == 0) { // 16 byte aligned width - if (m_bSSE2 && m_bSSSE3) // SSE3 available - rgba_bgra_sse3(rgba_source, bgra_dest, width, height, bInvert); - else if (m_bSSE2) // SSE2 available - rgba_bgra_sse2(rgba_source, bgra_dest, width, height, bInvert); - } - else { - rgba_bgra(rgba_source, bgra_dest, width, height, bInvert); - } -} - - -// line by line with source pitch -void spoutCopy::rgba2bgra(const void *rgba_source, void *bgra_dest, - unsigned int width, unsigned int height, unsigned int sourcePitch, bool bInvert) const -{ - for (unsigned int y = 0; y < height; y++) { - // Start of buffer - auto source = static_cast(rgba_source); // unsigned int = 4 bytes - auto dest = static_cast(bgra_dest); - // Increment to current line. - // Pitch is line length in bytes. - // Divide by 4 to get the line width in rgba pixels. - if (bInvert) { - source += (unsigned long)((height - 1 - y)*sourcePitch / 4); - dest += (unsigned long)(y * width); // dest is not inverted - } - else { - source += (unsigned long)(y * sourcePitch / 4); - dest += (unsigned long)(y * width); - } - // Copy the line - if ((width % 16) == 0) { // 16 byte aligned width - if (m_bSSE2 && m_bSSSE3) // SSE3 available - rgba_bgra_sse3(source, dest, width, 1, bInvert); - else if (m_bSSE2) // SSE2 available - rgba_bgra_sse2(source, dest, width, 1, bInvert); - } - else { - rgba_bgra(source, dest, width, 1, bInvert); - } - } - -} - -// line by line with source and dest pitch -void spoutCopy::rgba2bgra(const void* rgba_source, void* bgra_dest, - unsigned int width, unsigned int height, - unsigned int sourcePitch, unsigned int destPitch, bool bInvert) const -{ - for (unsigned int y = 0; y < height; y++) { - // Start of buffer - auto source = static_cast(rgba_source); // unsigned int = 4 bytes - auto dest = static_cast(bgra_dest); - // Increment to current line. - // Pitch is line length in bytes. - // Divide by 4 to get the line width in rgba pixels. - if (bInvert) { - source += (unsigned long)((height - 1 - y)*sourcePitch / 4); - dest += (unsigned long)(y * destPitch / 4); // dest is not inverted - } - else { - source += (unsigned long)(y * sourcePitch / 4); - dest += (unsigned long)(y * destPitch / 4); - } - // Copy the line - if ((width % 16) == 0) { // 16 byte aligned width - if (m_bSSE2 && m_bSSSE3) // SSE3 available - rgba_bgra_sse3(source, dest, width, 1, bInvert); - else if (m_bSSE2) // SSE2 available - rgba_bgra_sse2(source, dest, width, 1, bInvert); - } - else { - rgba_bgra(source, dest, width, 1, bInvert); - } - } -} - - -// Both are swapping red and blue, so use the same function -void spoutCopy::bgra2rgba(const void *bgra_source, void *rgba_dest, unsigned int width, unsigned int height, bool bInvert) const -{ - rgba2bgra(bgra_source, rgba_dest, width, height, bInvert); -} - - -// Without SSE -void spoutCopy::rgba_bgra(const void *rgba_source, void *bgra_dest, - unsigned int width, unsigned int height, bool bInvert) const -{ - for (unsigned int y = 0; y < height; y++) { - - // Start of buffer - auto source = static_cast(rgba_source);; // unsigned int = 4 bytes - auto dest = static_cast(bgra_dest); - - // Increment to current line - if (bInvert) { - // https://docs.microsoft.com/en-us/visualstudio/code-quality/c26451?view=vs-2017 - source += (unsigned long)((height - 1 - y)*width); - dest += (unsigned long)(y * width); // dest is not inverted - } - else { - source += (unsigned long)(y * width); - dest += (unsigned long)(y * width); - } - - for (unsigned int x = 0; x < width; x++) { - auto rgbapix = source[x]; - dest[x] = (_rotl(rgbapix, 16) & 0x00ff00ff) | (rgbapix & 0xff00ff00); - } - } -} // end rgba_bgra - - -// -// Adapted from : https://searchcode.com/codesearch/view/5070982/ -// -// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// -// https://chromium.googlesource.com/angle/angle/+/master/LICENSE -// -// All instructions SSE2. -// -void spoutCopy::rgba_bgra_sse2(const void *rgba_source, void *bgra_dest, unsigned int width, unsigned int height, bool bInvert) const -{ - const __m128i brMask = _mm_set1_epi32(0x00ff00ff); // argb - - for (unsigned int y = 0; y < height; y++) { - - // Start of buffer - auto source = static_cast(rgba_source); // unsigned int = 4 bytes - auto dest = static_cast(bgra_dest); - - // Increment to current line - if (bInvert) - source += (unsigned long)((height - 1 - y)*width); - else - source += (unsigned long)(y * width); - - dest += (unsigned long)(y * width); // dest is not inverted - - // Make output writes aligned - unsigned int x; - for (x = 0; ((reinterpret_cast(&dest[x]) & 15) != 0) && x < width; x++) { - auto rgbapix = source[x]; - // rgbapix << 16 : a r g b > g b a r - // & 0x00ff00ff : r g b . > . b . r - // rgbapix & 0xff00ff00 : a r g b > a . g . - // result of or : a b g r - dest[x] = (_rotl(rgbapix, 16) & 0x00ff00ff) | (rgbapix & 0xff00ff00); - } - - for (; x + 3 < width; x += 4) { - __m128i sourceData = _mm_loadu_si128(reinterpret_cast(&source[x])); - // Mask out g and a, which don't change - __m128i gaComponents = _mm_andnot_si128(brMask, sourceData); - // Mask out b and r - __m128i brComponents = _mm_and_si128(sourceData, brMask); - // Swap b and r - __m128i brSwapped = _mm_shufflehi_epi16(_mm_shufflelo_epi16(brComponents, _MM_SHUFFLE(2, 3, 0, 1)), _MM_SHUFFLE(2, 3, 0, 1)); - __m128i result = _mm_or_si128(gaComponents, brSwapped); - _mm_store_si128(reinterpret_cast<__m128i*>(&dest[x]), result); - } - - // Perform leftover writes - for (; x < width; x++) { - auto rgbapix = source[x]; - dest[x] = (_rotl(rgbapix, 16) & 0x00ff00ff) | (rgbapix & 0xff00ff00); - } - } - -} // end rgba_bgra_sse2 - - -// -// Adapted from a Gist snippet by Aurélien Vallée (NewbiZ) http://newbiz.github.io/ -// -// https://gist.github.com/NewbiZ/5541524 -// -// Approximately 15% faster than SSE2 function -// -void spoutCopy::rgba_bgra_sse3(const void* rgba_source, void *bgra_dest, unsigned int width, unsigned int height, bool bInvert) const -{ - // Shuffling mask (RGBA -> BGRA) x 4, in reverse byte order - static const __m128i m = _mm_set_epi8(15, 12, 13, 14, 11, 8, 9, 10, 7, 4, 5, 6, 3, 0, 1, 2); - - for (unsigned int y = 0; y < height; y++) { - - // Start of buffer - auto source = static_cast(rgba_source); // unsigned int = 4 bytes - auto dest = static_cast(bgra_dest); - - // Increment to current line - if (bInvert) - source += (unsigned long)((height - 1 - y)*width); - else - source += (unsigned long)(y * width); - dest += (unsigned long)(y * width); // dest is not inverted - - // Assert pixels will NOT be aliased here : TODO - // __m128i* __restrict__ pix = (__m128i*)pixels; - auto src = reinterpret_cast(source); - auto dst = reinterpret_cast<__m128i *>(dest); - - // Tile the LHS to match 64B cache line size - const auto srcEnd = reinterpret_cast(source + width); - for (; src < srcEnd; src += 4, dst += 4) { - - __m128i p1 = _mm_load_si128(src); // SSE2 - __m128i p2 = _mm_load_si128(src + 1); - __m128i p3 = _mm_load_si128(src + 2); - __m128i p4 = _mm_load_si128(src + 3); - - p1 = _mm_shuffle_epi8(p1, m); // SSSE3 - p2 = _mm_shuffle_epi8(p2, m); - p3 = _mm_shuffle_epi8(p3, m); - p4 = _mm_shuffle_epi8(p4, m); - - _mm_store_si128(dst, p1); // SSE2 - _mm_store_si128(dst + 1, p2); - _mm_store_si128(dst + 2, p3); - _mm_store_si128(dst + 3, p4); - - } - } - -} // end rgba_bgra_ssse3 - - -// -// rgb2rgba, bgr2rgba, rgba2rgb, rgba2bgr, rgb2bgra -// - -void spoutCopy::rgb2rgba(const void *rgb_source, void *rgba_dest, unsigned int width, unsigned int height, bool bInvert) const -{ - const unsigned long rgbsize = width * height * 3; - const unsigned long rgbpitch = width * 3; - - // Start of buffers - auto rgb = static_cast(rgb_source); // RGB - auto rgba = static_cast(rgba_dest); // RGBA - - if (bInvert) { - rgb += rgbsize; // end of rgb buffer - rgb -= rgbpitch; // beginning of the last rgb line - } - - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - // rgb source - rgba dest - *(rgba + 0) = *(rgb + 0); // red - *(rgba + 1) = *(rgb + 1); // grn - *(rgba + 2) = *(rgb + 2); // blu - *(rgba + 3) = (unsigned char)255; // alpha - rgb += 3; - rgba += 4; - } - if (bInvert) - rgb -= rgbpitch * 2; // move up a line for invert - } - -} // end rgb2rgba - - -void spoutCopy::rgb2rgba(const void *rgb_source, void *rgba_dest, - unsigned int width, unsigned int height, - unsigned int dest_pitch, bool bInvert) const -{ - // RGB dest does not have padding - const unsigned long rgbsize = width * height * 3; - const unsigned long rgbpitch = width * 3; - const unsigned long rgba_padding = dest_pitch - (width * 4); - - // RGBA dest may have padding - // Dest and source must be the same dimensions otherwise - - // Start of buffers - auto rgb = static_cast(rgb_source); // rgb/bgr - auto rgba = static_cast(rgba_dest); // rgba/bgra - if (bInvert) { - rgb += rgbsize; // end of rgb buffer - rgb -= rgbpitch; // beginning of the last rgb line - } - - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - *(rgba + 0) = *(rgb + 0); // red - *(rgba + 1) = *(rgb + 1); // grn - *(rgba + 2) = *(rgb + 2); // blu - rgb += 3; - rgba += 4; - } - rgba += rgba_padding; - - if (bInvert) - rgb -= rgbpitch * 2; // move up a line for invert - } - -} // end rgb2rgba - - -void spoutCopy::bgr2rgba(const void *bgr_source, void *rgba_dest, unsigned int width, unsigned int height, bool bInvert) const -{ - - const unsigned long bgrsize = width * height * 3; - const unsigned long bgrpitch = width * 3; - - // Start of buffers - auto bgr = static_cast(bgr_source); // BGR - auto rgba = static_cast(rgba_dest); // RGBA - - if (bInvert) { - bgr += bgrsize; // end of rgb buffer - bgr -= bgrpitch; // beginning of the last rgb line - } - - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - // bgr source - rgba dest - *(rgba + 0) = *(bgr + 2); // red - *(rgba + 1) = *(bgr + 1); // grn - *(rgba + 2) = *(bgr + 0); // blu - *(rgba + 3) = (unsigned char)255; // alpha - bgr += 3; - rgba += 4; - } - if (bInvert) - bgr -= bgrpitch * 2; // move up a line for invert - } - -} // end bgr2rgba - -void spoutCopy::bgr2rgba(const void *bgr_source, void *rgba_dest, - unsigned int width, unsigned int height, - unsigned int dest_pitch, bool bInvert) const -{ - // BGR buffer dest does not have padding - const unsigned long bgrsize = width * height * 3; - const unsigned long bgrpitch = width * 3; - const unsigned long rgba_padding = dest_pitch - (width * 4); - - // RGBA dest may have padding - // Dest and source must be the same dimensions otherwise - - // Start of buffers - auto bgr = static_cast(bgr_source); // rgb/bgr - auto rgba = static_cast(rgba_dest); // rgba/bgra - if (bInvert) { - bgr += bgrsize; // end of rgb buffer - bgr -= bgrpitch; // beginning of the last rgb line - } - - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - *(rgba + 0) = *(bgr + 0); // blu - *(rgba + 1) = *(bgr + 1); // grn - *(rgba + 2) = *(bgr + 2); // red - bgr += 3; - rgba += 4; - } - rgba += rgba_padding; - - if (bInvert) - bgr -= bgrpitch * 2; // move up a line for invert - } - -} // end bgr2rgba with dest pitch - - -void spoutCopy::rgb2bgra(const void *rgb_source, void *bgra_dest, unsigned int width, unsigned int height, bool bInvert) const -{ - const unsigned long rgbsize = width * height * 3; - const unsigned long rgbpitch = width * 3; - - // Start of buffers - auto rgb = static_cast(rgb_source); // RGB - auto bgra = static_cast(bgra_dest); // BGRA - if (bInvert) { - rgb += rgbsize; // end of rgb buffer - rgb -= rgbpitch; // beginning of the last rgb line - } - - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - // rgb source - bgra dest - *(bgra + 0) = *(rgb + 2); // blu - *(bgra + 1) = *(rgb + 1); // grn - *(bgra + 2) = *(rgb + 0); // red - *(bgra + 3) = (unsigned char)255; // alpha - rgb += 3; - bgra += 4; - } - if (bInvert) - rgb -= rgbpitch * 2; // move up a line for invert - } - -} // end rgb2bgra - - -void spoutCopy::rgb2bgra(const void *rgb_source, void *bgra_dest, - unsigned int width, unsigned int height, - unsigned int dest_pitch, bool bInvert) const -{ - // RGB source does not have padding - const unsigned long rgbsize = width * height * 3; - const unsigned long rgbpitch = width * 3; - // BGRA dest may have padding - const unsigned long bgra_padding = dest_pitch - (width * 4); - // Dest and source must be the same dimensions otherwise - - // Start of buffers - auto rgb = static_cast(rgb_source); // rgb/bgr - auto bgra = static_cast(bgra_dest); // rgba/bgra - if (bInvert) { - rgb += rgbsize; // end of rgb buffer - rgb -= rgbpitch; // beginning of the last rgb line - } - - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - *(bgra + 0) = *(rgb + 2); // blu - *(bgra + 1) = *(rgb + 1); // grn - *(bgra + 2) = *(rgb + 0); // red - rgb += 3; - bgra += 4; - } - bgra += bgra_padding; - - if (bInvert) - rgb -= rgbpitch * 2; // move up a line for invert - } - -} // end rgb2bgra - - - -void spoutCopy::bgr2bgra(const void *bgr_source, void *bgra_dest, unsigned int width, unsigned int height, bool bInvert) const -{ - const unsigned long bgrsize = width * height * 3; - const unsigned long bgrpitch = width * 3; - - // Start of buffers - auto bgr = static_cast(bgr_source); // BGR - auto bgra = static_cast(bgra_dest); // BGRA - if (bInvert) { - bgr += bgrsize; // end of rgb buffer - bgr -= bgrpitch; // beginning of the last rgb line - } - - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - // bgr source - bgra dest - *(bgra + 0) = *(bgr + 0); // blu - *(bgra + 1) = *(bgr + 1); // grn - *(bgra + 2) = *(bgr + 2); // red - *(bgra + 3) = (unsigned char)255; // alpha - bgr += 3; - bgra += 4; - } - if (bInvert) - bgr -= bgrpitch * 2; // move up a line for invert - } - -} // end bgr2bgra - - -void spoutCopy::rgba2rgb(const void *rgba_source, void *rgb_dest, - unsigned int width, unsigned int height, - unsigned int rgba_pitch, bool bInvert, bool bMirror, bool bSwapRB) const -{ - // RGB dest does not have padding - const unsigned long rgbsize = width * height * 3; - const unsigned long rgbpitch = width * 3; - const unsigned long rgba_padding = rgba_pitch-(width * 4); - - // RGBA source may have padding - // Dest and source must be the same dimensions otherwise - - // Start of buffers - auto rgba = static_cast(rgba_source); // rgba/bgra - auto rgb = static_cast(rgb_dest); // rgb/bgr - if (bInvert) { - rgb += rgbsize; // end of rgb buffer - rgb -= rgbpitch; // beginning of the last rgb line - } - - // Swap red and blue option - int ir = 0; int ig = 1; int ib = 2; - if(bSwapRB) { - ir = 2; ib = 0; - } - - unsigned int z = 0; - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - if (bMirror) { - z = (width - x - 1)*3; - *(rgb + z + ir) = *(rgba + 0); // red - *(rgb + z + ig) = *(rgba + 1); // grn - *(rgb + z + ib) = *(rgba + 2); // blu - } - else { - z = x * 3; - *(rgb + z + ir) = *(rgba + 0); // red - *(rgb + z + ig) = *(rgba + 1); // grn - *(rgb + z + ib) = *(rgba + 2); // blu - } - rgba += 4; - } - rgb += width * 3; - rgba += rgba_padding; - - if (bInvert) - rgb -= rgbpitch * 2; // move up a line for invert - } - -} // end rgba2rgb - - -void spoutCopy::rgba2bgr(const void *rgba_source, void *bgr_dest, unsigned int width, unsigned int height, bool bInvert) const -{ - const unsigned long bgrsize = width * height * 3; - const unsigned long bgrpitch = width * 3; - - // Start of buffers - auto rgba = static_cast(rgba_source); // RGBA - auto bgr = static_cast(bgr_dest); // BGR - if (bInvert) { - bgr += bgrsize; // end of rgb buffer - bgr -= bgrpitch; // beginning of the last bgr line - } - - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - // rgba source - bgr dest - *(bgr + 0) = *(rgba + 2); // blu - *(bgr + 1) = *(rgba + 1); // grn - *(bgr + 2) = *(rgba + 0); // red - bgr += 3; - rgba += 4; - } - if (bInvert) - bgr -= bgrpitch * 2; // move up a line for invert - } - -} // end rgba2bgr - - -void spoutCopy::rgba2bgr(const void *rgba_source, void *bgr_dest, - unsigned int width, unsigned int height, - unsigned int rgba_pitch, bool bInvert) const -{ - // RGB dest does not have padding - const unsigned long rgbsize = width * height * 3; - const unsigned long rgbpitch = width * 3; - const unsigned long rgba_padding = rgba_pitch - (width * 4); - - // RGBA source may have padding - // Dest and source must be the same dimensions otherwise - - // Start of buffers - auto rgba = static_cast(rgba_source); // rgba/bgra - auto bgr = static_cast(bgr_dest); // rgb/bgr - if (bInvert) { - bgr += rgbsize; // end of rgb buffer - bgr -= rgbpitch; // beginning of the last rgb line - } - - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - *(bgr + 2) = *(rgba + 0); // red - *(bgr + 1) = *(rgba + 1); // grn - *(bgr + 0) = *(rgba + 2); // blu - bgr += 3; - rgba += 4; - } - rgba += rgba_padding; - - if (bInvert) - bgr -= rgbpitch * 2; // move up a line for invert - } - -} // end rgba2bgr - - -void spoutCopy::bgra2rgb(const void *bgra_source, void *rgb_dest, unsigned int width, unsigned int height, bool bInvert) const -{ - const unsigned long rgbsize = width * height * 3; - const unsigned long rgbpitch = width * 3; - - // Start of buffers - auto bgra = static_cast(bgra_source); // BGRA - auto rgb = static_cast(rgb_dest); // RGB - if (bInvert) { - rgb += rgbsize; // end of rgb buffer - rgb -= rgbpitch; // beginning of the last rgb line - } - - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - // bgra source - rgb dest - *(rgb + 0) = *(bgra + 2); // red - *(rgb + 1) = *(bgra + 1); // grn - *(rgb + 2) = *(bgra + 0); // blu - rgb += 3; - bgra += 4; - } - if (bInvert) - rgb -= rgbpitch * 2; // move up a line for invert - } - -} // end bgra2rgb - - -void spoutCopy::bgra2bgr(const void *bgra_source, void *bgr_dest, unsigned int width, unsigned int height, bool bInvert) const -{ - const unsigned long bgrsize = width * height * 3; - const unsigned long bgrpitch = width * 3; - - // Start of buffers - auto bgra = static_cast(bgra_source); // BGRA - auto bgr = static_cast(bgr_dest); // BGR - if (bInvert) { - bgr += bgrsize; // end of bgr buffer - bgr -= bgrpitch; // beginning of the last bgr line - } - - for (unsigned int y = 0; y < height; y++) { - for (unsigned int x = 0; x < width; x++) { - // bgra source - bgr dest - *(bgr + 2) = *(bgra + 2); // red - *(bgr + 1) = *(bgra + 1); // grn - *(bgr + 0) = *(bgra + 0); // blu - bgr += 3; - bgra += 4; - } - if (bInvert) - bgr -= bgrpitch * 2; // move up a line for invert - } -} // end bgra2bgr - - -void spoutCopy::rgba2rgba(const void* rgba_source, void* rgba_dest, - unsigned int width, unsigned int height, unsigned int sourcePitch, bool bInvert) const -{ - for (unsigned int y = 0; y < height; y++) { - // Start of buffer - auto source = static_cast(rgba_source); // unsigned int = 4 bytes - auto dest = static_cast(rgba_dest); - // Increment to current line - // pitch is line length in bytes. Divide by 4 to get the width in rgba pixels. - if (bInvert) { - source += (unsigned long)((height - 1 - y)*sourcePitch/4); - dest += (unsigned long)(y * width); // dest is not inverted - } - else { - source += (unsigned long)(y * sourcePitch/4); - dest += (unsigned long)(y * width); - } - // Copy the line as fast as possible - CopyPixels((const unsigned char *)source, (unsigned char *)dest, width, 1); - } -} - -void spoutCopy::rgba2rgba(const void* rgba_source, void* rgba_dest, - unsigned int width, unsigned int height, - unsigned int sourcePitch, unsigned int destPitch, bool bInvert) const -{ - // For all rows - for (unsigned int y = 0; y < height; y++) { - // Start of buffers - auto source = static_cast(rgba_source); // unsigned int = 4 bytes - auto dest = static_cast(rgba_dest); - // Increment to current line - // Pitch is line length in bytes. Divide by 4 to get the width in rgba pixels. - if (bInvert) { - source += (unsigned long)((height - 1 - y)*sourcePitch / 4); - dest += (unsigned long)(y * destPitch / 4); // dest is not inverted - } - else { - source += (unsigned long)(y * sourcePitch / 4); - dest += (unsigned long)(y * destPitch / 4); - } - // Copy the line as fast as possible - CopyPixels((const unsigned char *)source, (unsigned char *)dest, width, 1); - } -} - -// Adapted from : -// http://tech-algorithm.com/articles/nearest-neighbor-image-scaling/ -// http://www.cplusplus.com/forum/general/2615/#msg10482 -void spoutCopy::rgba2rgbaResample(const void* source, void* dest, - unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourcePitch, - unsigned int destWidth, unsigned int destHeight, bool bInvert) const -{ - unsigned char *srcBuffer = (unsigned char *)source; // bgra source - unsigned char *dstBuffer = (unsigned char *)dest; // bgr dest - - // horizontal and vertical ratios between the original image and the to be scaled image - float x_ratio = (float)sourceWidth / (float)destWidth; - float y_ratio = (float)sourceHeight / (float)destHeight; - float px, py; - unsigned int i, j; - unsigned int pixel, nearestMatch; - for (i = 0; i < destHeight; i++) { - for (j = 0; j < destWidth; j++) { - px = floor((float)j*x_ratio); - py = floor((float)i*y_ratio); - if (bInvert) - pixel = (destHeight - i - 1)*destWidth * 4 + j * 4; // flip vertically - else - pixel = i * destWidth * 4 + j * 4; - nearestMatch = (unsigned int)(py*sourcePitch + px * 4); - dstBuffer[pixel + 0] = srcBuffer[nearestMatch + 0]; - dstBuffer[pixel + 1] = srcBuffer[nearestMatch + 1]; - dstBuffer[pixel + 2] = srcBuffer[nearestMatch + 2]; - dstBuffer[pixel + 3] = srcBuffer[nearestMatch + 3]; - } - } -} - - -void spoutCopy::rgba2rgbResample(const void* source, void* dest, - unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourcePitch, - unsigned int destWidth, unsigned int destHeight, bool bInvert, bool bMirror, bool bSwapRB) const -{ - unsigned char *srcBuffer = (unsigned char *)source; // bgra source - unsigned char *dstBuffer = (unsigned char *)dest; // bgr dest - - float x_ratio = (float)sourceWidth / (float)destWidth; - float y_ratio = (float)sourceHeight / (float)destHeight; - - // Swap red and blue option - int ir = 0; int ig = 1; int ib = 2; - if (bSwapRB) { - ir = 2; ib = 0; - } - - float px, py; - unsigned int i, j; - unsigned int pixel, nearestMatch; - for (i = 0; i < destHeight; i++) { - for (j = 0; j < destWidth; j++) { - px = floor((float)j*x_ratio); - py = floor((float)i*y_ratio); - - if (bMirror) { - if (bInvert) - pixel = (destHeight - i - 1)*destWidth * 3 + (destWidth - j - 1) * 3; // flip vertically - else - pixel = i * destWidth * 3 + (destWidth - j - 1) * 3; - } - else { - if (bInvert) - pixel = (destHeight - i - 1)*destWidth * 3 + j * 3; // flip vertically - else - pixel = i * destWidth * 3 + j * 3; - } - - nearestMatch = (unsigned int)(py*sourcePitch + px * 4); - - dstBuffer[pixel + ir] = srcBuffer[nearestMatch + 0]; - dstBuffer[pixel + ig] = srcBuffer[nearestMatch + 1]; - dstBuffer[pixel + ib] = srcBuffer[nearestMatch + 2]; - } - } -} - -void spoutCopy::rgba2bgrResample(const void* source, void* dest, - unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourcePitch, - unsigned int destWidth, unsigned int destHeight, bool bInvert) const -{ - unsigned char *srcBuffer = (unsigned char *)source; // bgra source - unsigned char *dstBuffer = (unsigned char *)dest; // bgr dest - - float x_ratio = (float)sourceWidth / (float)destWidth; - float y_ratio = (float)sourceHeight / (float)destHeight; - float px, py; - unsigned int i, j; - unsigned int pixel, nearestMatch; - for (i = 0; i < destHeight; i++) { - for (j = 0; j < destWidth; j++) { - px = floor((float)j*x_ratio); - py = floor((float)i*y_ratio); - if (bInvert) - pixel = (destHeight - i - 1)*destWidth * 3 + j * 3; // flip vertically - else - pixel = i * destWidth * 3 + j * 3; - nearestMatch = (unsigned int)(py*sourcePitch + px * 4); - dstBuffer[pixel + 2] = srcBuffer[nearestMatch + 0]; - dstBuffer[pixel + 1] = srcBuffer[nearestMatch + 1]; - dstBuffer[pixel + 0] = srcBuffer[nearestMatch + 2]; - } - } -} - diff --git a/Plugin/Spout/SpoutGL/SpoutCopy.h b/Plugin/Spout/SpoutGL/SpoutCopy.h deleted file mode 100644 index 3a9b7ae..0000000 --- a/Plugin/Spout/SpoutGL/SpoutCopy.h +++ /dev/null @@ -1,153 +0,0 @@ -/* - - SpoutCopy.h - - Functions to manage pixel buffer copying - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Copyright (c) 2016-2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ -#pragma once -#ifndef __spoutCopy__ // standard way as well -#define __spoutCopy__ - -#include "SpoutCommon.h" -#include -#include // for debug printf -#include // For OpenGL definitions -#include // for cpuid to test for SSE2 -#include // for SSE2 -#include // for SSSE3 - - -class SPOUT_DLLEXP spoutCopy { - - public: - - spoutCopy(); - ~spoutCopy(); - - // Copy image pixels and select fastest method based on image width - void CopyPixels(const unsigned char *src, unsigned char *dst, - unsigned int width, unsigned int height, - GLenum glFormat = GL_RGBA, bool bInvert = false) const; - - // Flip a pixel buffer in place - void FlipBuffer(const unsigned char *src, unsigned char *dst, - unsigned int width, unsigned int height, - GLenum glFormat = GL_RGBA) const; - - // SSE2 version of memcpy - void memcpy_sse2(void* dst, const void* src, size_t size) const; - - // Copy rgba buffers line by line allowing for source pitch using the fastest method - void rgba2rgba(const void* source, void* dest, unsigned int width, unsigned int height, - unsigned int sourcePitch, bool bInvert = false) const; - - // Copy rgba buffers line allowing for source and destination line pitch - void rgba2rgba(const void* source, void* dest, unsigned int width, unsigned int height, - unsigned int sourcePitch, unsigned int destPitch, bool bInvert) const; - - // Copy rgba buffers of differing size - void rgba2rgbaResample(const void* source, void* dest, - unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourcePitch, - unsigned int destWidth, unsigned int destHeight, bool bInvert = false) const; - - // Copy rgba to bgra - void rgba2bgra(const void* rgba_source, void *bgra_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - - // Copy rgba to bgra line by line allowing for source pitch using the fastest method - void rgba2bgra(const void* rgba_source, void *bgra_dest, unsigned int width, unsigned int height, - unsigned int sourcePitch, bool bInvert = false) const; - - // Copy rgba to bgra line allowing for source and destination line pitch - void rgba2bgra(const void* source, void* dest, unsigned int width, unsigned int height, - unsigned int sourcePitch, unsigned int destPitch, bool bInvert) const; - - // Copy bgra to rgba - void bgra2rgba(const void* bgra_source, void *rgba_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - - // Correct for image stride - void RemovePadding(const unsigned char *source, unsigned char *dest, - unsigned int width, unsigned int height, - unsigned int source_stride, GLenum glFormat) const; - - // RGBA<>RGB conversion options - // TODO : add RGBA pitch to all functions - // TODO : avoid redundancy - void rgb2rgba (const void* rgb_source, void *rgba_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - - // Copy RGB to RGBA allowing for destination pitch - void rgb2rgba(const void *rgb_source, void *rgba_dest, - unsigned int width, unsigned int height, - unsigned int dest_pitch, bool bInvert) const; - - void bgr2rgba (const void* bgr_source, void *rgba_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - // BGR to RGBA allowing for destination pitch - void bgr2rgba(const void *rgb_source, void *rgba_dest, - unsigned int width, unsigned int height, - unsigned int dest_pitch, bool bInvert) const; - - void rgb2bgra (const void* rgb_source, void *bgra_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - - void rgb2bgra(const void *rgb_source, void *bgra_dest, - unsigned int width, unsigned int height, - unsigned int dest_pitch, bool bInvert) const; - - void bgr2bgra (const void* bgr_source, void *bgra_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - void rgba2bgr (const void* rgba_source, void *bgr_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - void bgra2rgb (const void* bgra_source, void *rgb_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - void bgra2bgr (const void* bgra_source, void *bgr_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - - // Copy RGBA to RGB allowing for source line pitch - void rgba2rgb (const void* rgba_source, void *rgb_dest, unsigned int width, unsigned int height, - unsigned int sourcePitch, bool bInvert = false, bool bMirror = false, bool bSwapRB = false) const; - // Copy RGBA to RGB allowing for source and destination pitch - void rgba2rgbResample(const void* source, void* dest, - unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourcePitch, - unsigned int destWidth, unsigned int destHeight, - bool bInvert = false, bool bMirror = false, bool bSwapRB = false) const; - // Copy RGBA to BGR allowing for source line pitch - void rgba2bgr(const void* rgba_source, void *rgb_dest, unsigned int width, unsigned int height, - unsigned int sourcePitch, bool bInvert = false) const; - // Copy RGBA to BGR allowing for source and destination pitch - void rgba2bgrResample(const void* source, void* dest, - unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourcePitch, - unsigned int destWidth, unsigned int destHeight, bool bInvert = false) const; - - protected : - - void CheckSSE(); - bool m_bSSE2; - bool m_bSSE3; - bool m_bSSSE3; - - void rgba_bgra(const void *rgba_source, void *bgra_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - void rgba_bgra_sse2(const void *rgba_source, void *bgra_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - void rgba_bgra_sse3(const void *rgba_source, void *bgra_dest, unsigned int width, unsigned int height, bool bInvert = false) const; - -}; - -#endif diff --git a/Plugin/Spout/SpoutGL/SpoutDirectX.cpp b/Plugin/Spout/SpoutGL/SpoutDirectX.cpp deleted file mode 100644 index 1b17897..0000000 --- a/Plugin/Spout/SpoutGL/SpoutDirectX.cpp +++ /dev/null @@ -1,1036 +0,0 @@ -// -// -// spoutDirectX.cpp -// -// Functions to manage DirectX11 texture sharing -// -// ==================================================================================== -// Revisions : -// -// 22.07.14 - added option for DX9 or DX11 -// 21.09.14 - included keyed mutex texture access lock in CreateSharedDX11Texture -// 23.09.14 - moved general mutex texture access lock to this class -// 23.09.14 - added DX11available() to verify operating system support for DirectX 11 -// 15.10.14 - added debugging aid for texture access locks -// 17.10.14 - flush before release immediate context in CloseDX11 -// 21.10.14 - removed keyed mutex lock due to reported driver problems -// TODO - cleanup all functions using it -// 10.02.15 - removed functions relating to DirectX 11 keyed mutex lock -// 14.02.15 - added UNREFERENCED_PARAMETER(pSharedTexture) to CheckAceess and AllowAccess -// 29.05.15 - Included SetAdapter for multiple adapters - Franz Hildgen. -// 02.06.15 - Added GetAdapter, GetNumAdapters, GetAdapterName -// 08.06.15 - removed dx9 flag from setadapter -// 04.08.15 - cleanup -// 11.08.15 - removed GetAdapterName return if Intel. For use with Intel HD4400/5000 graphics -// 22.10.15 - removed DX11available and shifted it to the interop class -// 19.11.15 - fixed return value in CreateDX9device after caps error (was false instead of NULL) -// 20.11.15 - Registry read/write moved from SpoutGLDXinterop class -// 16.02.16 - IDXGIFactory release - from https://github.com/jossgray/Spout2 -// 29.02.16 - cleanup -// 05.04.16 - removed unused texture pointer from mutex access functions -// 16.06.16 - fixed null device release in SetAdapter - https://github.com/leadedge/Spout2/issues/17 -// 01.07.16 - restored hFocusWindow in CreateDX9device (was set to NULL for testing) -// 04.09.16 - Add create DX11 staging texture -// 16.01.17 - Add WriteDX9surface -// 23.01.17 - pEventQuery->Release() for writeDX9surface -// 02.06.17 - Registry functions moved to SpoutUtils -// - Added Spout error log console output -// 17.03.18 - More error log notices -// - protect against an adapter with no outputs for SetAdapter -// 16.06.18 - change all class variable name prefix from g_ to m_ -// Add GetImmediateContext(); -// - Add ReleaseDX11Texture and ReleaseDX11Device -// 13.11.18 - Remove staging texture functons -// 16.12.18 - Move FlushWait from interop class -// 03.01.19 - Changed to revised registry functions in SpoutUtils -// 27.06.19 - Restored release of existing texture in CreateSharedDX11Texture -// 03.07.19 - Added pointer checks in OpenDX11shareHandle -// 18.09.19 - Changed initial log from notice to to verbose -// for CreateSharedDX9Texture and CreateSharedDX11Texture -// 08.11.19 - removed immediate context check from OpenDX11shareHandle -// 15.03.20 - allow for zero or DX9 format passed in to CreateSharedDX11Texture for utility use -// 16.06.20 - Create separate Wait function -// - Update comments -// 02.09.20 - CreateSharedDX11Texture - test for null pointer to the shared texture pointer -// 03.09.20 - ReleaseDX11Texture -// add log warnings for null device and texture -// add DirectX messages to Output window for debug build -// 06.09.20 - Add output test to SetAdapter -// 08.09.20 - Release all pointers in adapter functions -// Remove failures if no adapter output pending testing -// Add immediate context test before flush in ReleaseDX11Texture -// In case the function is used by a different device. -// 12.09.20 - Re-introduced Optimus Enablement to enforce NVidia Optimus -// Incuding AMD Enduro technology -// Credit to https://github.com/Qlex42 -// 13.09.20 - Remove Optimus enablement again due to use of extern "C" -// 15.09.20 - Changed all result !=S_OK and !=D3D_OK to FAILED macro for consistency -// Correct type cast in CreateDX9device and GetAdapterName -// 16.09.20 - ReleaseDX11Texture - removed log notice for no reference count -// 19.09.20 - Add success notice for SetAdapter -// Add DebugLog function -// Set passed pointer to null in ReleaseDX11Texture -// Clean up comments and logs throughtout -// 21.09.20 - Format specifiers for hex print -// SetAdapter - corrected logs -// 23.09.20 - Change warning logs to error in OpenDX11shareHandle -// 24.09.20 - Change all pointer "= NULL to "= nullptr" -// Change hex printf to 0x%8.8llX -// - Introduce try/catch to OpenDX11shareHandle -// for the possibility of different graphics adapters -// - Corrected compare of different enum types in CreateSharedDX11Texture -// 25.09.20 - Made GetAdapterPointer public -// Add SetAdapterPointer -// 08.10.20 - Re-introduced CreateDX11StagingTexture -// 09.10.20 - Moved DX9 functions to a separate class -// SetAdapter - only DX11 test supported -// Add GetDX11device -// Change GetImmediateContext() to GetDX11Context() -// 23.11.20 - Protect against null in GetAdapterName -// 09.12.20 - CloseDirectX11() in destructor -// 27.12.20 - Change all hex printf to 0x%.7X with PtrToUint helper -// -// ==================================================================================== -/* - - Copyright (c) 2014-2021. Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "SpoutDirectX.h" - -// -// Class: spoutDirectX -// -// Functions to manage DirectX11 texture sharing. -// -// Refer to source code for documentation. -// - -spoutDirectX::spoutDirectX() { - - // DX11 - m_pd3dDevice = nullptr; - m_pImmediateContext = nullptr; - m_driverType = D3D_DRIVER_TYPE_NULL; - m_featureLevel = D3D_FEATURE_LEVEL_11_0; - - // Output graphics adapter - // Programmer can set for an application - m_AdapterIndex = 0; // Adapter index - m_pAdapterDX11 = nullptr; // DX11 adapter pointer -} - -spoutDirectX::~spoutDirectX() { - if (m_pd3dDevice) - CloseDirectX11(); -} - -bool spoutDirectX::OpenDirectX11() -{ - SpoutLogNotice("spoutDirectX::OpenDirectX11()"); - - // Quit if already initialized - if (m_pd3dDevice) { - SpoutLogNotice(" Device already initialized 0x%.7X", PtrToUint(m_pd3dDevice) ); - return true; - } - - // Create a DirectX 11 device - m_pd3dDevice = CreateDX11device(); - if (!m_pd3dDevice) - return false; - - // Retrieve the context pointer - m_pd3dDevice->GetImmediateContext(&m_pImmediateContext); - - return true; -} - -void spoutDirectX::CloseDirectX11() -{ - SpoutLogNotice("spoutDirectX::CloseDirectX11()"); - - // Quit if already initialized - if (!m_pd3dDevice) { - SpoutLogNotice(" Device already released"); - return; - } - - if (m_pImmediateContext) - m_pImmediateContext->Release(); - m_pd3dDevice->Release(); - - m_pd3dDevice = nullptr; - m_pImmediateContext = nullptr; - -} - - -// -// Notes for DX11 : https://www.opengl.org/registry/specs/NV/DX_interop2.txt -// -// Valid device types for the parameter of wglDXOpenDeviceNV and associated restrictions -// DirectX device type ID3D11Device - can only be used on WDDM operating systems; XXX Must be multithreaded -// TEXTURE_2D - ID3D11Texture2D - Usage flags must be D3D11_USAGE_DEFAULT -// wglDXSetResourceShareHandle does not need to be called for DirectX version -// 10 and 11 resources. Calling this function for DirectX 10 and 11 resources -// is not an error but has no effect. - -// Create DX11 device -ID3D11Device* spoutDirectX::CreateDX11device() -{ - ID3D11Device* pd3dDevice = nullptr; - HRESULT hr = S_OK; - UINT createDeviceFlags = 0; - IDXGIAdapter* pAdapterDX11 = m_pAdapterDX11; - - SpoutLogNotice("spoutDirectX::CreateDX11device - pAdapterDX11 (0x%.7X)", PtrToUint(m_pAdapterDX11) ); - - // - // If the project is in a debug build, enable debugging via SDK Layers with this flag. - // https://docs.microsoft.com/en-us/windows/win32/api/d3d11/ne-d3d11-d3d11_create_device_flag - // To use this flag, you must have D3D11_1SDKLayers.dll installed or device creation fails. - // To resolve this you can install the Windows 10 SDK. - // - // Due to this dependency problem, you have to manually remove the comments below to enable it. - // See also : void spoutDirectX::DebugLog - // - -/* -#if defined(_DEBUG) - createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG; -#endif -*/ - - // GL/DX interop Spec - // ID3D11Device can only be used on WDDM operating systems : Must be multithreaded - // D3D11_CREATE_DEVICE_FLAG createDeviceFlags - D3D_DRIVER_TYPE driverTypes[] = { - D3D_DRIVER_TYPE_HARDWARE, - D3D_DRIVER_TYPE_WARP, - D3D_DRIVER_TYPE_REFERENCE, - }; - - UINT numDriverTypes = ARRAYSIZE( driverTypes ); - - // These are the feature levels that we will accept. - // m_featureLevel is the feature level used - // 11.0 is the highest level currently supported for Spout - // because 11.1 limits compatibility - // Note from D3D11 Walbourn examples : - // DirectX 11.0 platforms will not recognize D3D_FEATURE_LEVEL_11_1 - // Note from NVIDIA forums : - // Not all DirectX 11.1 features are software features. - // Target Independent Rasterization requires hardware support - // so we can not make DX11 GPUs fully DX11.1 complaint. - D3D_FEATURE_LEVEL featureLevels[] = { - // D3D_FEATURE_LEVEL_11_1, // 0xb001 - D3D_FEATURE_LEVEL_11_0, // 0xb000 - D3D_FEATURE_LEVEL_10_1, // 0xa100 - D3D_FEATURE_LEVEL_10_0, // 0xa000 - }; - - UINT numFeatureLevels = ARRAYSIZE( featureLevels ); - - // To allow for multiple graphics cards we will use m_pAdapterDX11 - // Which is set by SetAdapter before initializing DirectX - if(pAdapterDX11) { - hr = D3D11CreateDevice( pAdapterDX11, - D3D_DRIVER_TYPE_UNKNOWN, - NULL, - createDeviceFlags, - featureLevels, - numFeatureLevels, - D3D11_SDK_VERSION, - &pd3dDevice, - &m_featureLevel, - &m_pImmediateContext ); - - } // endif adapter set - else { - - // Possible Optimus problem : is the default adapter (NULL) always Intel ? - // https://msdn.microsoft.com/en-us/library/windows/desktop/ff476082%28v=vs.85%29.aspx - // pAdapter : a pointer to the video adapter to use when creating a device. - // Pass NULL to use the default adapter, which is the first adapter that is - // enumerated by IDXGIFactory1::EnumAdapters. - // http://www.gamedev.net/topic/645920-d3d11createdevice-returns-wrong-feature-level/ - - for( UINT driverTypeIndex = 0; driverTypeIndex < numDriverTypes; driverTypeIndex++ ) { - - m_driverType = driverTypes[driverTypeIndex]; - - hr = D3D11CreateDevice( NULL, - m_driverType, - NULL, - createDeviceFlags, - featureLevels, - numFeatureLevels, - D3D11_SDK_VERSION, - &pd3dDevice, - &m_featureLevel, - &m_pImmediateContext); - - // Break as soon as something passes - if(SUCCEEDED(hr)) - break; - } - - } // endif no adapter set - - // Quit if nothing worked - if (FAILED(hr)) { - SpoutLogFatal("spoutDirectX::CreateDX11device NULL device"); - return NULL; - } - - // All OK - return the device pointer to the caller - SpoutLogNotice(" device (0x%.7X)", PtrToUint(pd3dDevice) ); - - return pd3dDevice; - -} // end CreateDX11device - - -bool spoutDirectX::CreateSharedDX11Texture(ID3D11Device* pd3dDevice, - unsigned int width, - unsigned int height, - DXGI_FORMAT format, - ID3D11Texture2D** ppSharedTexture, - HANDLE &dxShareHandle) -{ - if (!pd3dDevice) { - SpoutLogFatal("spoutDirectX::CreateSharedDX11Texture NULL device"); - return false; - } - - if (!ppSharedTexture) { - SpoutLogWarning("spoutDirectX::CreateSharedDX11Texture NULL ppSharedTexture"); - return false; - } - SpoutLogNotice("spoutDirectX::CreateSharedDX11Texture"); - - // - // Create a new shared DX11 texture - // - - // Release the texture if it already exists - if (*ppSharedTexture) { - ReleaseDX11Texture(pd3dDevice, *ppSharedTexture); - } - - ID3D11Texture2D* pTexture = nullptr; // The new texture pointer - - SpoutLogVerbose("spoutDirectX::CreateSharedDX11Texture"); - SpoutLogVerbose(" pDevice = 0x%.7X, width = %d, height = %d, format = %d", PtrToUint(pd3dDevice), width, height, format); - - // Use the format passed in - // If that is zero or DX9 format, use the default format - DXGI_FORMAT texformat = DXGI_FORMAT_B8G8R8A8_UNORM; - if (format != 0 && format != 21) // D3DFMT_A8R8G8B8 = 21 - texformat = format; - - // Textures being shared from D3D9 to D3D11 have the following restrictions (LJ - D3D11 to D3D9 ?). - // Textures must be 2D - // Only 1 mip level is allowed - // Texture must have default usage - // Texture must be write only - ?? LJ ?? - // MSAA textures are not allowed - // Bind flags must have SHADER_RESOURCE and RENDER_TARGET set - // Only R10G10B10A2_UNORM, R16G16B16A16_FLOAT and R8G8B8A8_UNORM formats are allowed - ?? LJ ?? - // If a shared texture is updated on one device ID3D11DeviceContext::Flush must be called on that device ** - - // http://msdn.microsoft.com/en-us/library/windows/desktop/ff476903%28v=vs.85%29.aspx - // To share a resource between two Direct3D 11 devices the resource must have been created - // with the D3D11_RESOURCE_MISC_SHARED flag, if it was created using the ID3D11Device interface. - // - D3D11_TEXTURE2D_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.Width = width; - desc.Height = height; - desc.BindFlags = D3D11_BIND_RENDER_TARGET | D3D11_BIND_SHADER_RESOURCE; - desc.MiscFlags = D3D11_RESOURCE_MISC_SHARED; // This texture will be shared - // desc.MiscFlags = D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX; - // Note that a DirectX 11 texture with D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX is not - // compatible with DirectX 9 so a general named mutex is used for all texture types - desc.CPUAccessFlags = 0; - desc.Format = texformat; - desc.Usage = D3D11_USAGE_DEFAULT; - // Multisampling quality and count - // The default sampler mode, with no anti-aliasing, has a count of 1 and a quality level of 0. - desc.SampleDesc.Quality = 0; - desc.SampleDesc.Count = 1; - desc.MipLevels = 1; - desc.ArraySize = 1; - - HRESULT res = pd3dDevice->CreateTexture2D(&desc, NULL, &pTexture); - - if (FAILED(res)) { - // http://msdn.microsoft.com/en-us/library/windows/desktop/ff476174%28v=vs.85%29.aspx - char tmp[256]; - // TODO : check for compiler warning with "l" prefix - sprintf_s(tmp, 256, "spoutDirectX::CreateSharedDX11Texture ERROR - [0x%.X] : ", LOWORD(res) ); - switch (LOWORD(res) ) { - case DXGI_ERROR_INVALID_CALL: - strcat_s(tmp, 256, "DXGI_ERROR_INVALID_CALL"); - break; - case E_INVALIDARG: - strcat_s(tmp, 256, "E_INVALIDARG"); - break; - case E_OUTOFMEMORY: - strcat_s(tmp, 256, "E_OUTOFMEMORY"); - break; - default : - strcat_s(tmp, 256, "Unlisted error"); - break; - } - SpoutLogFatal("%s", tmp); - return false; - } - - // The DX11 texture is created OK - // Get the texture share handle so it can be saved in shared memory for receivers to pick up. - // When sharing a resource between two Direct3D 10/11 devices the unique handle - // of the resource can be obtained by querying the resource for the IDXGIResource - // interface and then calling GetSharedHandle. - IDXGIResource* pOtherResource(NULL); - if(FAILED(pTexture->QueryInterface( __uuidof(IDXGIResource), (void**)&pOtherResource))) { - SpoutLogFatal("spoutDirectX::CreateSharedDX11Texture - QueryInterface error"); - return false; - } - - // Return the shared texture handle - pOtherResource->GetSharedHandle(&dxShareHandle); - pOtherResource->Release(); - - *ppSharedTexture = pTexture; - - SpoutLogNotice(" pTexture = 0x%.7X : dxShareHandle = 0x%.7X", PtrToUint(pTexture), LOWORD(dxShareHandle) ); - - return true; - -} - - -// Create a DirectX 11 staging texture for read and write -bool spoutDirectX::CreateDX11StagingTexture(ID3D11Device* pd3dDevice, - unsigned int width, unsigned int height, DXGI_FORMAT format, ID3D11Texture2D** ppStagingTexture) -{ - if (pd3dDevice == NULL) return false; - - SpoutLogNotice("spoutDirectX::CreateDX11StagingTexture"); - - // Release the texture if it already exists - if (*ppStagingTexture) { - ReleaseDX11Texture(pd3dDevice, *ppStagingTexture); - } - - ID3D11Texture2D* pTexture = nullptr; // The new texture pointer - - D3D11_TEXTURE2D_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.Width = width; - desc.Height = height; - desc.MipLevels = 1; - desc.ArraySize = 1; - desc.Format = format; - desc.SampleDesc.Count = 1; - desc.CPUAccessFlags = D3D11_CPU_ACCESS_READ | D3D11_CPU_ACCESS_WRITE; - desc.Usage = D3D11_USAGE_STAGING; - desc.BindFlags = 0; - - HRESULT res = pd3dDevice->CreateTexture2D(&desc, NULL, &pTexture); - - if (res != S_OK) { - // http://msdn.microsoft.com/en-us/library/windows/desktop/ff476174%28v=vs.85%29.aspx - char tmp[256]; - sprintf_s(tmp, 256, "spoutDirectX::CreateDX11StagingTexture ERROR : [0x%.X] : ", LOWORD(res) ); - switch (LOWORD(res) ) { - case DXGI_ERROR_INVALID_CALL: - strcat_s(tmp, 256, "DXGI_ERROR_INVALID_CALL"); - break; - case E_INVALIDARG: - strcat_s(tmp, 256, "E_INVALIDARG"); - break; - case E_OUTOFMEMORY: - strcat_s(tmp, 256, "E_OUTOFMEMORY"); - break; - default: - strcat_s(tmp, 256, "Unlisted error"); - break; - } - SpoutLogFatal("%s", tmp); - return false; - } - - *ppStagingTexture = pTexture; - - SpoutLogNotice(" pTexture = 0x%.7X", PtrToUint(pTexture)); - - return true; - -} - - -bool spoutDirectX::OpenDX11shareHandle(ID3D11Device* pDevice, ID3D11Texture2D** ppSharedTexture, HANDLE dxShareHandle) -{ - - if (!pDevice || !ppSharedTexture || !dxShareHandle) { - SpoutLogError("spoutDirectX::OpenDX11shareHandle - null sources"); - return false; - } - - // To share a resource between a Direct3D 9 device and a Direct3D 11 device - // the texture must have been created using the pSharedHandle argument of CreateTexture. - // The shared Direct3D 9 handle is then passed to OpenSharedResource in the hResource argument. - // - // Note that the resource created for use on this device must be eventually freed or there is a leak. - // - // This can crash if the share handle has been created using a different graphics adapter - try { - HRESULT hr = pDevice->OpenSharedResource(dxShareHandle, __uuidof(ID3D11Resource), (void**)(ppSharedTexture)); - if (FAILED(hr)) { - SpoutLogError("spoutDirectX::OpenDX11shareHandle (0x%.7X) failed", LOWORD(dxShareHandle)); - return false; - } - } - catch (...) { - // Catch any exception - SpoutLogError("spoutDirectX::OpenDX11shareHandle - exception opening share handle"); - return false; - } - - - /* - // Can get sender format here - ID3D11Texture2D * texturePointer = *ppSharedTexture; - D3D11_TEXTURE2D_DESC td; - texturePointer->GetDesc(&td); - printf("td.Format = %d\n", td.Format); // 87 - printf("td.Width = %d\n", td.Width); - printf("td.Height = %d\n", td.Height); - printf("td.MipLevels = %d\n", td.MipLevels); - printf("td.Usage = %d\n", td.Usage); - printf("td.ArraySize = %d\n", td.ArraySize); - printf("td.SampleDesc = %d\n", td.SampleDesc); - printf("td.BindFlags = %d\n", td.BindFlags); - printf("td.MiscFlags = %d\n", td.MiscFlags); // D3D11_RESOURCE_MISC_SHARED - */ - - - return true; - -} - -// Get device -ID3D11Device* spoutDirectX::GetDX11Device() -{ - return m_pd3dDevice; -} - -// Get context -ID3D11DeviceContext* spoutDirectX::GetDX11Context() -{ - return m_pImmediateContext; -} - -// Set required graphics adapter for output -bool spoutDirectX::SetAdapter(int index) -{ - char adaptername[128]; - IDXGIAdapter* pAdapter = nullptr; - - // Reset to default - if (index == -1) - index = 0; - - // Is the requested adapter available - int n = GetNumAdapters(); - if (index > n - 1) { - SpoutLogError("spoutDirectX::SetAdapter - index %d greater than number of adapters %d", index, n); - return false; - } - - // Must be able to get the name - if(!GetAdapterName(index, adaptername, 128)) { - SpoutLogError("spoutDirectX::SetAdapter - could not get name for adapter %d", index); - return false; - } - - SpoutLogNotice("spoutDirectX::SetAdapter(%d) [%s]", index, adaptername); - - // Get the adapter pointer for DX11 CreateDevice to use - if (m_pAdapterDX11) m_pAdapterDX11->Release(); - pAdapter = GetAdapterPointer(index); - if(!pAdapter) { - SpoutLogError("spoutDirectX::SetAdapter - could not get pointer for adapter %d", index); - return false; - } - - // Set the global adapter index (used for DX9 and to retrieve the index) - m_AdapterIndex = index; - - // Set the adapter pointer for DX11 - m_pAdapterDX11 = pAdapter; - - // In case of remaining incompatibility with the selected adapter, test everything here - - // For >= 2.007 only DX11 test is supported - SpoutLogNotice(" creating test device"); - - // Try to create a DirectX 11 device - ID3D11Device* pd3dDevice = CreateDX11device(); - if(!pd3dDevice) { - SpoutLogError("spoutDirectX::SetAdapter - could not create DX11 device for adapter %d", index); - pAdapter->Release(); - m_AdapterIndex = 0; - m_pAdapterDX11 = nullptr; - return false; - } - // Close the device because this is just a test - // See : https://github.com/leadedge/Spout2/issues/17 - ReleaseDX11Device(pd3dDevice); - - // Selected adapter OK - SpoutLogNotice(" successfully set adapter %d [%s]", m_AdapterIndex, adaptername); - - return true; - -} - -// Get the global adapter index -int spoutDirectX::GetAdapter() -{ - return m_AdapterIndex; -} - - -// FOR DEBUGGING -bool spoutDirectX::FindNVIDIA(int &nAdapter) -{ - IDXGIFactory1* _dxgi_factory1; - IDXGIAdapter* adapter1_ptr = nullptr; - DXGI_ADAPTER_DESC desc; - UINT32 i; - bool bFound = false; - - if ( FAILED( CreateDXGIFactory1( __uuidof(IDXGIFactory1), (void**)&_dxgi_factory1 ) ) ) - return false; - - for ( i = 0; _dxgi_factory1->EnumAdapters( i, &adapter1_ptr ) != DXGI_ERROR_NOT_FOUND; i++ ) { - adapter1_ptr->GetDesc( &desc ); - // printf("spoutDirectX::FindNVIDIA - Adapter(%d) : %S\n", i, desc.Description ); - DXGI_OUTPUT_DESC desc_out; - IDXGIOutput* p_output = nullptr; - if(adapter1_ptr->EnumOutputs(0, &p_output ) == DXGI_ERROR_NOT_FOUND) { - // printf(" No outputs\n"); - continue; - } - - for ( UINT32 j = 0; adapter1_ptr->EnumOutputs( j, &p_output ) != DXGI_ERROR_NOT_FOUND; j++ ) { - if (p_output) { - p_output->GetDesc(&desc_out); - // printf( " Output : %d\n", j ); - // printf( " Name %S\n", desc_out.DeviceName ); - // printf( " Attached to desktop : (%d) %s\n", desc_out.AttachedToDesktop, desc_out.AttachedToDesktop ? "yes" : "no" ); - // printf( " Rotation : %d\n", desc_out.Rotation ); - // printf( " Left : %d\n", desc_out.DesktopCoordinates.left ); - // printf( " Top : %d\n", desc_out.DesktopCoordinates.top ); - // printf( " Right : %d\n", desc_out.DesktopCoordinates.right ); - // printf( " Bottom : %d\n", desc_out.DesktopCoordinates.bottom ); - p_output->Release(); - } - } - adapter1_ptr->Release(); - - if(wcsstr(desc.Description, L"NVIDIA")) { - // printf("spoutDirectX::FindNVIDIA - Found NVIDIA adapter %d (%S)\n", i, desc.Description); - bFound = true; - break; - } - - } - - _dxgi_factory1->Release(); - - if(bFound) { - // printf// ("spoutDirectX::FindNVIDIA - Found NVIDIA adapter %d (%S)\n", i, desc.Description); - nAdapter = static_cast(i); - // 0x10DE NVIDIA - // 0x163C intel - // 0x8086 Intel - // 0x8087 Intel - // printf("Vendor = %d [0x%.7X]\n", desc.VendorId, desc.VendorId); - // printf("Revision = %d [0x%.7X]\n", desc.Revision, desc.Revision); - // printf("Device ID = %d [0x%.7X]\n", desc.DeviceId, desc.DeviceId); - // printf("SubSys ID = %d [0x%.7X]\n", desc.SubSysId, desc.SubSysId); - return true; - } - - return false; - -} - - -// Get the number of graphics adapters in the system -int spoutDirectX::GetNumAdapters() -{ - IDXGIFactory1* _dxgi_factory1; - IDXGIAdapter* adapter1_ptr = nullptr; - UINT32 i; - - // Enum Adapters first : multiple video cards - if (FAILED(CreateDXGIFactory1(__uuidof(IDXGIFactory1), (void**)&_dxgi_factory1))) { - SpoutLogError("spoutDirectX::GetNumAdapters - No adapters found"); - return 0; - } - - for (i = 0; _dxgi_factory1->EnumAdapters( i, &adapter1_ptr ) != DXGI_ERROR_NOT_FOUND; i++ ) { - - DXGI_ADAPTER_DESC desc; - adapter1_ptr->GetDesc( &desc ); - // printf("Adapter(%d) : %S\n", i, desc.Description ); - // printf(" Vendor Id : %d\n", desc.VendorId ); - // printf(" Dedicated System Memory : %.0f MiB\n", (float)desc.DedicatedSystemMemory / (1024.f * 1024.f) ); - // printf(" Dedicated Video Memory : %.0f MiB\n", (float)desc.DedicatedVideoMemory / (1024.f * 1024.f) ); - // printf(" Shared System Memory : %.0f MiB\n", (float)desc.SharedSystemMemory / (1024.f * 1024.f) ); - - IDXGIOutput* p_output = nullptr; - // 24-10-18 change from error to warning - // - if(adapter1_ptr->EnumOutputs(0, &p_output ) == DXGI_ERROR_NOT_FOUND) { - // SpoutLogWarning("spoutDirectX::GetNumAdapters Adapter(%d) : No outputs", i); - } - - DXGI_OUTPUT_DESC desc_out; - for ( UINT32 j = 0; adapter1_ptr->EnumOutputs( j, &p_output ) != DXGI_ERROR_NOT_FOUND; j++ ) { - if (p_output) { - p_output->GetDesc(&desc_out); - // printf(" Output : %d\n", j ); - // printf(" Name %S\n", desc_out.DeviceName ); - // printf(" Attached to desktop : (%d) %s\n", desc_out.AttachedToDesktop, desc_out.AttachedToDesktop ? "yes" : "no" ); - // printf(" Rotation : %d\n", desc_out.Rotation ); - // printf(" Left : %d\n", desc_out.DesktopCoordinates.left ); - // printf(" Top : %d\n", desc_out.DesktopCoordinates.top ); - // printf(" Right : %d\n", desc_out.DesktopCoordinates.right ); - // printf(" Bottom : %d\n", desc_out.DesktopCoordinates.bottom ); - p_output->Release(); - } - } - adapter1_ptr->Release(); - } - - _dxgi_factory1->Release(); - - return (int)i; - -} - -// Get an adapter name -bool spoutDirectX::GetAdapterName(int index, char *adaptername, int maxchars) -{ - if (!adaptername) - return false; - - IDXGIFactory1* _dxgi_factory1; - IDXGIAdapter* adapter1_ptr = nullptr; - - if (FAILED(CreateDXGIFactory1(__uuidof(IDXGIFactory1), (void**)&_dxgi_factory1))) { - SpoutLogError("spoutDirectX::GetAdapterName - Could not create CreateDXGIFactory1"); - return false; - } - - for (UINT32 i = 0; _dxgi_factory1->EnumAdapters( i, &adapter1_ptr ) != DXGI_ERROR_NOT_FOUND; i++ ) { - if((int)i == index) { - DXGI_ADAPTER_DESC desc; - adapter1_ptr->GetDesc( &desc ); - size_t charsConverted = 0; - size_t maxBytes = static_cast(maxchars); - wcstombs_s(&charsConverted, adaptername, maxBytes, desc.Description, maxBytes - 1); - adapter1_ptr->Release(); - _dxgi_factory1->Release(); - return true; - } - adapter1_ptr->Release(); - } - - _dxgi_factory1->Release(); - - return false; -} - -IDXGIAdapter* spoutDirectX::GetAdapterPointer(int index) -{ - // Return the current pointer for default - if (index < 0) - return m_pAdapterDX11; - - // Enum Adapters first : multiple video cards - IDXGIFactory1* _dxgi_factory1; - if ( FAILED( CreateDXGIFactory1( __uuidof(IDXGIFactory1), (void**)&_dxgi_factory1 ) ) ) { - SpoutLogError("spoutDirectX::GetAdapterPointer - Could not create CreateDXGIFactory1" ); - return nullptr; - } - - IDXGIAdapter* adapter1_ptr = nullptr; - for ( UINT32 i = 0; _dxgi_factory1->EnumAdapters( i, &adapter1_ptr ) != DXGI_ERROR_NOT_FOUND; i++ ) { - if ( index == (int)i ) { - // Break when the requested index is found - - /* - // Removed pending testing - // Now we have the requested adapter (17-03-18) test for an output on the adapter - IDXGIOutput* p_output = nullptr; - if (adapter1_ptr->EnumOutputs(0, &p_output) == DXGI_ERROR_NOT_FOUND) { - SpoutLogError("spoutDirectX::GetAdapterPointer(%d) : No outputs", i); - adapter1_ptr->Release(); - _dxgi_factory1->Release(); - return nullptr; - } - */ - - _dxgi_factory1->Release(); - return adapter1_ptr; - } - adapter1_ptr->Release(); - } - _dxgi_factory1->Release(); - - return nullptr; -} - -bool spoutDirectX::GetAdapterInfo(char *adapter, char *display, int maxchars) -{ - IDXGIFactory1* _dxgi_factory1; - IDXGIAdapter* adapter1_ptr = nullptr; - UINT32 i; - size_t charsConverted = 0; - size_t maxBytes = static_cast(maxchars); - - // Enum Adapters first : multiple video cards - if (FAILED(CreateDXGIFactory1(__uuidof(IDXGIFactory1), (void**)&_dxgi_factory1))) { - SpoutLogError("spoutDirectX::GetAdapterInfo - Could not create CreateDXGIFactory1"); - return false; - } - - DXGI_ADAPTER_DESC desc; - for ( i = 0; _dxgi_factory1->EnumAdapters( i, &adapter1_ptr ) != DXGI_ERROR_NOT_FOUND; i++ ) { - adapter1_ptr->GetDesc( &desc ); - // Return the current adapter - max of 2 assumed - wcstombs_s(&charsConverted, adapter, maxBytes, desc.Description, maxBytes-1); - IDXGIOutput* p_output = nullptr; - for ( UINT32 j = 0; adapter1_ptr->EnumOutputs( j, &p_output ) != DXGI_ERROR_NOT_FOUND; j++ ) { - DXGI_OUTPUT_DESC desc_out; - if (p_output) { - p_output->GetDesc(&desc_out); - if (desc_out.AttachedToDesktop) - wcstombs_s(&charsConverted, display, maxBytes, desc.Description, maxBytes - 1); - p_output->Release(); - } - } - } - _dxgi_factory1->Release(); - return true; -} - -void spoutDirectX::SetAdapterPointer(IDXGIAdapter* pAdapter) -{ - m_pAdapterDX11 = pAdapter; -} - -unsigned long spoutDirectX::ReleaseDX11Texture(ID3D11Device* pd3dDevice, ID3D11Texture2D* pTexture) -{ - - if (!pd3dDevice || !pTexture) { - if (!pd3dDevice) - SpoutLogWarning("spoutDirectX::ReleaseDX11Texture - no device"); - if (!pTexture) - SpoutLogWarning("spoutDirectX::ReleaseDX11Texture - no texture"); - return 0; - } - - SpoutLogNotice("spoutDirectX::ReleaseDX11Texture (0x%.7X)", PtrToUint(pd3dDevice) ); - - unsigned long refcount = pTexture->Release(); - pTexture = nullptr; - - // Flush to put the release at the top of the queue - if(m_pImmediateContext) - m_pImmediateContext->Flush(); - - // The device will be live, so warn if refcount > 1 - if (refcount > 1) { - SpoutLogWarning("spoutDirectX::ReleaseDX11Texture - refcount = %lu", refcount); - DebugLog(pd3dDevice, "spoutDirectX::ReleaseDX11Texture - refcount = %lu\n", refcount); - } - - // Note that if the texture is registered and linked to OpenGL using the - // GL/DX interop, the interop must be unregistered or the texture is not - // released even though the reference count reported here does not increase. - - return refcount; -} - - -unsigned long spoutDirectX::ReleaseDX11Device(ID3D11Device* pd3dDevice) -{ - if (!pd3dDevice) - return 0; - - SpoutLogNotice("spoutDirectX::ReleaseDX11Device (0x%.7X)", PtrToUint(pd3dDevice)); - - // Release the global context or there is an outstanding ref count - // when the device is released - if (m_pImmediateContext) { - // Clear state and flush context to prevent deferred device release - // From Microsoft docs : - // https://msdn.microsoft.com/en-us/library/windows/desktop/ff476425(v=vs.85).aspx - // Microsoft Direct3D 11 defers the destruction of objects. - // Therefore, an application can't rely upon objects immediately being destroyed. - // By calling Flush, you destroy any objects whose destruction was deferred. - // If an application requires synchronous destruction of an object, we recommend - // that the application release all its references, call - // ID3D11DeviceContext::ClearState, and then call Flush. - m_pImmediateContext->ClearState(); - m_pImmediateContext->Flush(); - m_pImmediateContext->Release(); - m_pImmediateContext = nullptr; - } - - // TODO : Release adapter pointer if there is one ? - // if (m_pAdapterDX11) - // m_pAdapterDX11->Release(); - - unsigned long refcount = pd3dDevice->Release(); - pd3dDevice = nullptr; - - if (refcount > 0) { - SpoutLogWarning("spoutDirectX::ReleaseDX11Device - refcount = %lu", refcount); - DebugLog(pd3dDevice, "spoutDirectX::ReleaseDX11Device - refcount = %lu\n", refcount); - } - - return refcount; -} - -// -// For a DX11 sender : -// If a shared texture is updated on one device ID3D11DeviceContext::Flush must be called on that device. -// https://docs.microsoft.com/en-us/windows/win32/api/d3d11/nf-d3d11-id3d11device-opensharedresource -// Only the sender updates the shared texture. It is not required for the receiver. -// The application can either call Flush alone or combine a flush and Wait using this function. -// -// For an OpenGL sender : -// This function is not necessary, the GL/DX interop performs the necessary flushing. -// -void spoutDirectX::FlushWait(ID3D11Device* pd3dDevice, ID3D11DeviceContext* pImmediateContext) -{ - if (!pd3dDevice || !pImmediateContext) - return; - - // (Approx 250 microseconds 0.25 msec) - pImmediateContext->Flush(); - - // CopyResource and Flush are both asynchronous. - // https://msdn.microsoft.com/en-us/library/windows/desktop/bb205132%28v=vs.85%29.aspx#Performance_Considerations - // Here we can wait for the copy and flush to finish before accessing the texture - // (Approx 550 microseconds 0.55 msec) - // Practical testing recommended - Wait(pd3dDevice, pImmediateContext); -} - - -void spoutDirectX::Wait(ID3D11Device* pd3dDevice, ID3D11DeviceContext* pImmediateContext) -{ - // https://msdn.microsoft.com/en-us/library/windows/desktop/ff476578%28v=vs.85%29.aspx - // When the GPU is finished, ID3D11DeviceContext::GetData will return S_OK. - // When using this type of query, ID3D11DeviceContext::Begin is disabled. - D3D11_QUERY_DESC queryDesc; - ID3D11Query * pQuery = nullptr; - ZeroMemory(&queryDesc, sizeof(queryDesc)); - queryDesc.Query = D3D11_QUERY_EVENT; - pd3dDevice->CreateQuery(&queryDesc, &pQuery); - if (pQuery) { - pImmediateContext->End(pQuery); - while (S_OK != pImmediateContext->GetData(pQuery, NULL, 0, 0)); - pQuery->Release(); - } -} - - -void spoutDirectX::DebugLog(ID3D11Device* pd3dDevice, const char* format, ...) -{ - - char dlog[128]; - va_list args; - - // Construct the log - va_start(args, format); - vsprintf_s(dlog, 128, format, args); - va_end(args); - - OutputDebugStringA("\n"); - OutputDebugStringA(dlog); - - // - // Output for debug build - // See comments in : ID3D11Device* spoutDirectX::CreateDX11device() - // -/* -#ifdef _DEBUG - - if (!pd3dDevice) - return; - - ID3D11Debug* DebugDevice = nullptr; - if (pd3dDevice->QueryInterface(__uuidof(ID3D11Debug), (void**)&DebugDevice) == S_OK) { - ID3D11InfoQueue *d3dInfoQueue = nullptr; - if (SUCCEEDED(DebugDevice->QueryInterface(__uuidof(ID3D11InfoQueue), (void**)&d3dInfoQueue))) { - d3dInfoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_CORRUPTION, true); - d3dInfoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_ERROR, true); - D3D11_MESSAGE_ID hide[] = - { - D3D11_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS, - // Add more message IDs here as needed - }; - - D3D11_INFO_QUEUE_FILTER filter; - memset(&filter, 0, sizeof(filter)); - filter.DenyList.NumIDs = _countof(hide); - filter.DenyList.pIDList = hide; - d3dInfoQueue->AddStorageFilterEntries(&filter); - } - - // Print live objects to the debug Output window - DebugDevice->ReportLiveDeviceObjects(D3D11_RLDO_DETAIL); - - DebugDevice->Release(); - } -#else -*/ - - UNREFERENCED_PARAMETER(pd3dDevice); - -// #endif - -} diff --git a/Plugin/Spout/SpoutGL/SpoutDirectX.h b/Plugin/Spout/SpoutGL/SpoutDirectX.h deleted file mode 100644 index 545b1bc..0000000 --- a/Plugin/Spout/SpoutGL/SpoutDirectX.h +++ /dev/null @@ -1,111 +0,0 @@ -/* - - spoutDirectX.h - - Functions to manage DirectX 11 texture sharing - - Copyright (c) 2014 - 2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ -#pragma once -#ifndef __spoutDirectX__ -#define __spoutDirectX__ - -#include "SpoutCommon.h" -#include -#pragma comment (lib, "d3d11.lib")// the Direct3D 11 Library file -#pragma comment (lib, "DXGI.lib") // for CreateDXGIFactory1 - -using namespace spoututils; - -class SPOUT_DLLEXP spoutDirectX { - - public: - - spoutDirectX(); - ~spoutDirectX(); - - // Initialize and prepare DirectX 11 - bool OpenDirectX11(); - // Release DirectX 11 device and context - void CloseDirectX11(); - // Create a DirectX11 device - ID3D11Device* CreateDX11device(); - // Create a DirectX11 shared texture - bool CreateSharedDX11Texture(ID3D11Device* pDevice, unsigned int width, unsigned int height, DXGI_FORMAT format, ID3D11Texture2D** ppSharedTexture, HANDLE &dxShareHandle); - // Create a DirectX11 staging texture - bool CreateDX11StagingTexture(ID3D11Device* pDevice, unsigned int width, unsigned int height, DXGI_FORMAT format, ID3D11Texture2D** pStagingTexture); - // Return the pointer of a DirectX11 shared texture - bool OpenDX11shareHandle(ID3D11Device* pDevice, ID3D11Texture2D** ppSharedTexture, HANDLE dxShareHandle); - - // - // Output graphics adapter - // - - // Get the number of graphics adapters in the system - int GetNumAdapters(); - // Get an adapter name - bool GetAdapterName(int index, char *adaptername, int maxchars); - // Get the current adapter index - int GetAdapter(); - // Set graphics adapter for CreateDX11device from an index - bool SetAdapter(int index); - // Get the current adapter description - bool GetAdapterInfo(char *renderdescription, char *displaydescription, int maxchars); - // Get adapter pointer for a given adapter (-1 means current) - IDXGIAdapter* GetAdapterPointer(int index = -1); - // Set required graphics adapter for CreateDX11device - void SetAdapterPointer(IDXGIAdapter* pAdapter); - // Find the index of the NVIDIA adapter in a multi-adapter system - bool FindNVIDIA(int &nAdapter); - - // - // DirectX11 utiities - // - - // Release a texture resource - unsigned long ReleaseDX11Texture(ID3D11Device* pd3dDevice, ID3D11Texture2D* pTexture); - // Release a device - unsigned long ReleaseDX11Device(ID3D11Device* pd3dDevice); - // Return the class device - ID3D11Device* GetDX11Device(); - // Return the class immediate context - ID3D11DeviceContext* GetDX11Context(); - // Flush immediate context command queue and wait for copleteion - void FlushWait(ID3D11Device* pd3dDevice, ID3D11DeviceContext* pImmediateContext); - // Wait for completion after flush - void Wait(ID3D11Device* pd3dDevice, ID3D11DeviceContext* pImmediateContext); - - protected: - - void DebugLog(ID3D11Device* pd3dDevice, const char* format, ...); - int m_AdapterIndex; // Adapter index - IDXGIAdapter* m_pAdapterDX11; // Adapter pointer - ID3D11Device* m_pd3dDevice; // DX11 device - ID3D11DeviceContext* m_pImmediateContext; - D3D_DRIVER_TYPE m_driverType; - D3D_FEATURE_LEVEL m_featureLevel; - -}; - -#endif diff --git a/Plugin/Spout/SpoutGL/SpoutFrameCount.cpp b/Plugin/Spout/SpoutGL/SpoutFrameCount.cpp deleted file mode 100644 index ea29089..0000000 --- a/Plugin/Spout/SpoutGL/SpoutFrameCount.cpp +++ /dev/null @@ -1,834 +0,0 @@ -// -// SpoutFrameCount -// -// Semaphore frame counter -// -// ==================================================================================== -// Revisions : -// -// 07.10.18 - project start -// 01.11.18 - Add GetRefreshRate() to set default sender fps to system refresh rate -// 16.11.18 - Profile UpdateSenderFps -// 23.11.18 - Change semaphore access functions to operate within a mutex lock -// 26.11.18 - Add application disable frame counting to avoid variable frame rate problems -// 27.11.18 - Add IsFrameNew -// 02.12.18 - Add sender GetWidth, GetHeight, GetFps and GetFrame -// 23.12.18 - More log warnings -// 26.02.19 - Add IsFrameCountEnabled -// 14.03.19 - CleanupFrameCount - return if no semaphore handle -// - Remove wait warning from CheckAccess() -// 02.04.19 - Profile timing functions -// 24.04.19 - Add HoldFps -// 19.05.19 - Clean up -// 05.06.19 - HoldFps - use std::chrono if VS2015 or greater -// 03.03.20 - Introduce DX11 keyed mutex locks in addition to named mutex -// 11.03.20 - General cleanup -// Result switch for WaitForSingleObject -// 05.05.20 - Mutex access timing tests documented within functions -// 18.06.20 - Update comments -// 06.09.20 - Add more notice logs to EnableFrameCount -// 23.09.20 - Initialize m_lastFrame, m_FrameStart, m_bIsNewFrame -// 24.09.20 - Remove m_FrameStartPtr and m_FrameEndPtr null checks in destructor -// 14.12.10 - independent std::chrono timing for sender frame count and HoldFps -// Testing and code optimization -// 18.12.20 - Add SetFrameCount for registry setting -// 04.02.21 - Reset timers in EnableFrameCount -// -// ==================================================================================== -// -/* - Copyright (c) 2019-2021. Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DICLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -#include "SpoutFrameCount.h" - -// -// Class: spoutFrameCount -// -// Semaphore frame counter. -// -// Refer to source code for documentation. -// - -// ----------------------------------------------- -spoutFrameCount::spoutFrameCount() -{ - m_hAccessMutex = NULL; - m_hCountSemaphore = NULL; - m_SenderName[0] = 0; - m_CountSemaphoreName[0] = 0; - m_FrameCount = 0L; - m_LastFrameCount = 0L; - m_FrameTimeTotal = 0.0; - m_FrameTimeNumber = 0.0; - m_lastFrame = 0.0; - m_FrameStart = 0.0; - m_bIsNewFrame = false; - m_SenderFps = GetRefreshRate(); // Default sender fps is system refresh rate - - // Check the registry setting for frame counting between sender and receiver - m_bFrameCount = false; // default not set - DWORD dwFrame = 0; - if (ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "Framecount", &dwFrame)) { - m_bFrameCount = (dwFrame == 1); - } - m_bDisabled = false; // frame counting not application disabled - - // Initialize fps control - m_millisForFrame = 0.0; - -#ifdef USE_CHRONO - // Start std::chrono microsec counting - m_FrameStartPtr = new std::chrono::steady_clock::time_point; - m_FrameEndPtr = new std::chrono::steady_clock::time_point; - m_FramePtr = new std::chrono::steady_clock::time_point; -#else - // Initialize PC msec frequency counter - PCFreq = 0.0; - CounterStart = 0; - StartCounter(); -#endif - -} - -// ----------------------------------------------- -spoutFrameCount::~spoutFrameCount() -{ - -#ifdef USE_CHRONO - delete m_FrameStartPtr; - delete m_FrameEndPtr; - delete m_FramePtr; -#endif - - // Close the frame count semaphore. - if (m_hCountSemaphore) CloseHandle(m_hCountSemaphore); - m_hCountSemaphore = NULL; - - // Close the texture access mutex - if (m_hAccessMutex) CloseHandle(m_hAccessMutex); - m_hAccessMutex = NULL; - -} - - -// ====================================================================== -// Public -// ====================================================================== - -// Enable or disable frame counting globally by registry setting -void spoutFrameCount::SetFrameCount(bool bEnable) -{ - if (bEnable) { - // Frame counting not already set to registry - if (!m_bFrameCount) { - WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "Framecount", 1); - m_bFrameCount = true; - m_bDisabled = false; // Application disable flag - } - // Do nothing if already set - } - else { - // Frame counting already set to registry - if (m_bFrameCount) { - // Clean up existing objects - if (IsFrameCountEnabled()) - CleanupFrameCount(); - } - WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "Framecount", 0); - m_bFrameCount = false; - m_bDisabled = false; - } -} - -// ----------------------------------------------- -// -// Create a frame counting semaphore. -// -// Incremented by a sender. -// Tested by a receiver to retrieve the count. -// -void spoutFrameCount::EnableFrameCount(const char* SenderName) -{ - // Return if frame counting not recorded in the registry - // Subsequently SetNewFrame and GetNewFrame return without action - if (!m_bFrameCount) { - SpoutLogNotice("SpoutFrameCount::EnableFrameCount : setting not enabled"); - return; - } - - // Return if application disabled - if (m_bDisabled) { - SpoutLogNotice("SpoutFrameCount::EnableFrameCount : application disabled"); - return; - } - - // A sender name is required - if (SenderName[0] == 0) { - SpoutLogWarning("SpoutFrameCount::EnableFrameCount - no sender name"); - return; - } - - // Reset frame count, comparator and fps variables - m_FrameCount = 0L; - m_LastFrameCount = 0L; - m_FrameTimeTotal = 0.0; - m_FrameTimeNumber = 0.0; - m_SenderFps = GetRefreshRate(); - - // Reset timers - m_millisForFrame = 0.0; -#ifdef USE_CHRONO - // Start std::chrono microsec counting - m_FrameStartPtr = new std::chrono::steady_clock::time_point; - m_FrameEndPtr = new std::chrono::steady_clock::time_point; - m_FramePtr = new std::chrono::steady_clock::time_point; -#else - // Initialize PC msec frequency counter - PCFreq = 0.0; - CounterStart = 0; - StartCounter(); -#endif - - // Return if already enabled for this sender - if (m_hCountSemaphore && strcmp(SenderName, m_SenderName) == 0) { - SpoutLogNotice("SpoutFrameCount::EnableFrameCount already enabled [%s]", SenderName); - return; - } - - SpoutLogNotice("SpoutFrameCount::EnableFrameCount : sender name [%s]", SenderName); - - // Close any existing semaphore - if (m_hCountSemaphore) { - CloseHandle(m_hCountSemaphore); - m_hCountSemaphore = NULL; - m_CountSemaphoreName[0] = 0; - } - - // Set the new name for subsequent checks - strcpy_s(m_SenderName, 256, SenderName); - - // Create or open a semaphore with this sender name - sprintf_s(m_CountSemaphoreName, 256, "%s_Count_Semaphore", SenderName); - HANDLE hSemaphore = CreateSemaphoreA( - NULL, // default security attributes - 1, // initial count - LONG_MAX, // maximum count - LONG_MAX (2147483647) at 60fps = 2071 days - (LPSTR)m_CountSemaphoreName); - - DWORD dwError = GetLastError(); - if (dwError == ERROR_INVALID_HANDLE) { - SpoutLogError(" Invalid semaphore handle"); - return; - } - if (dwError == ERROR_ALREADY_EXISTS) { - SpoutLogNotice(" Semaphore already exists"); - // OK if it already exists - the sender or receiver can create it - } - if (hSemaphore == NULL) { - SpoutLogError(" Unknown error"); - return; - } - - m_hCountSemaphore = hSemaphore; - - SpoutLogNotice(" Semaphore handle [0x%.7X]", LOWORD(m_hCountSemaphore) ); - -} - -// ----------------------------------------------- -void spoutFrameCount::DisableFrameCount() -{ - CleanupFrameCount(); - m_bDisabled = true; -} - -// ----------------------------------------------- -bool spoutFrameCount::IsFrameCountEnabled() -{ - if (!m_bFrameCount || m_bDisabled) - return false; - else - return true; - -} - -// ----------------------------------------------- -// -// Increment the sender frame count. -// Used by a sender for every update of the shared texture. -// -// This function is called within a sender mutex lock so that -// the receiver will not read the semaphore count while the -// sender is incrementing it. -// -// Used internaly to set frame status if frame counting is enabled. -// -void spoutFrameCount::SetNewFrame() -{ - // Return silently if disabled - if (!m_bFrameCount || m_bDisabled) - return; - - // Access the frame count semaphore - // Note: WaitForSingle object will always succeed because - // the lock count (sender frame count) is greater than zero, - // but must be called before ReleaseSemaphore can be called - // or there is an error. - DWORD dwWaitResult = WaitForSingleObject(m_hCountSemaphore, 0); - switch (dwWaitResult) { - case WAIT_OBJECT_0: - // Release the frame counting semaphore to increase it's count. - // so that the receiver can retrieve the new count. - // Increment by 2 because WaitForSingleObject decremented it. - if (ReleaseSemaphore(m_hCountSemaphore, 2, NULL) == false) { - SpoutLogError("spoutFrameCount::SetNewFrame - ReleaseSemaphore failed"); - } - else { - m_FrameCount++; // Increment the sender frame count - // Update the sender fps calculations for the new frame - UpdateSenderFps(1); - } - return; - case WAIT_ABANDONED: - SpoutLogError("SpoutFrameCount::SetNewFrame - WAIT_ABANDONED"); - break; - case WAIT_FAILED: - SpoutLogError("SpoutFrameCount::SetNewFrame - WAIT_FAILED"); - break; - default: - break; - } -} - -// ----------------------------------------------- -// -// Read the semaphore count to determine if the sender -// has produced a new frame and incremented the counter. -// Counts are recorded as class variables for a receiver. -// -// This function is called within a sender mutex lock so that -// the sender will not write a frame and increment the -// count while a receiver is reading it. -// -// Used internally to check frame status if frame counting is enabled. -// -bool spoutFrameCount::GetNewFrame() -{ - long framecount = 0; - - // Return silently if disabled - if (!m_bFrameCount || m_bDisabled) - return true; - - // A receiver creates of opens a named semaphore when it connects to a sender - // Do not block if semaphore creation failed so that ReceiveTexture can still be called - if (!m_hCountSemaphore) { - printf("No count sempaphore\n"); - return true; - } - - // Access the frame count semaphore - DWORD dwWaitResult = WaitForSingleObject(m_hCountSemaphore, 0); - switch (dwWaitResult) { - case WAIT_OBJECT_0: - // Call ReleaseSemaphore with a release count of 1 to return it - // to what it was before the wait and record the previous count. - // The next time round it will either be the same count because - // the receiver released it, or increased because the sender - // released and incremented it. - if (ReleaseSemaphore(m_hCountSemaphore, 1, &framecount) == false) { - SpoutLogError("spoutFrameCount::GetNewFrame - ReleaseSemaphore failed"); - return true; // do not block - } - break; - case WAIT_ABANDONED : - SpoutLogWarning("SpoutFrameCount::GetNewFrame - WAIT_ABANDONED"); - break; - case WAIT_FAILED : - SpoutLogWarning("SpoutFrameCount::GetNewFrame - WAIT_FAILED"); - break; - default : - break; - } - - // Update the global frame count - m_FrameCount = framecount; - - // Count will still be zero for apps that do not set a frame count - if (framecount == 0) - return true; - - // If this count and the last are the same, the sender has not - // produced a new frame and incremented the counter. - // Only return false if this frame and the last are the same. - if (framecount == m_LastFrameCount) { - m_bIsNewFrame = false; - return false; - } - - // Update the sender fps calculations. - // The sender might have produced more than one frame if the receiver is slower. - // Pass the number of frames produced since the last. - UpdateSenderFps(framecount - m_LastFrameCount); - - // Reset the comparator - m_LastFrameCount = framecount; - - // Signal a new frame - m_bIsNewFrame = true; - - return true; -} - - -// ----------------------------------------------- -void spoutFrameCount::CleanupFrameCount() -{ - - // Return if no count semaphore - // i.e. no sender started or cleanup already done - if (!m_hCountSemaphore) - return; - - SpoutLogNotice("SpoutFrameCount::CleanupFrameCount"); - - // Close the frame count semaphore. If another application first - // opened the semaphore it will not be finally closed here. - CloseHandle(m_hCountSemaphore); - m_hCountSemaphore = NULL; - - // Clear the sender name in case the same one opens again - m_SenderName[0] = 0; - - // Reset counters - m_FrameCount = 0L; - m_LastFrameCount = 0L; - m_SenderFps = GetRefreshRate(); - m_FrameTimeTotal = 0.0; - m_FrameTimeNumber = 0.0; - -} - -// ----------------------------------------------- -// -// Is the received frame new ? -// -// This function can be used by a receiver after ReceiveTexture -// to determine whether the frame just received is new. -// -// Used by an application to avoid time consuming processing -// after receiving a texture. -// -// Not usually required because new frame status is always -// checked internally if frame counting is enabled. -// -bool spoutFrameCount::IsFrameNew() -{ - return m_bIsNewFrame; -} - -// ----------------------------------------------- -double spoutFrameCount::GetSenderFps() -{ - return m_SenderFps; -} - -// ----------------------------------------------- -long spoutFrameCount::GetSenderFrame() -{ - return m_FrameCount; -} - -// ----------------------------------------------- -// -// Fps control -// -// Not necessary if the application already has frame rate control. -// Must be called every frame. -// The sender will then signal a new frame at the target rate. -// Purpose is control rather than accuracy. -// Use std::chrono if supported by the compiler VS2015 or greater -// -void spoutFrameCount::HoldFps(int fps) -{ - // Return if incorrect fps entry - if (fps <= 0) - return; - - double framerate = static_cast(fps); - -#ifdef USE_CHRONO - // Initialize frame time at target rate - if (m_millisForFrame < 0.01) { - m_millisForFrame = 1000.0 / framerate; // msec per frame - *m_FrameStartPtr = std::chrono::steady_clock::now(); - SpoutLogNotice("spoutFrameCount::HoldFps(%d)", fps); - } - else { - *m_FrameEndPtr = std::chrono::steady_clock::now(); - // milliseconds elapsed - double elapsedTime = static_cast(std::chrono::duration_cast(*m_FrameEndPtr - *m_FrameStartPtr).count() / 1000.); - // Sleep to reach the target frame time - if (elapsedTime < m_millisForFrame) { // milliseconds - std::this_thread::sleep_for(std::chrono::milliseconds((long)(m_millisForFrame - elapsedTime))); - } - // Set start time for the next frame - *m_FrameStartPtr = std::chrono::steady_clock::now(); - } -#else - if (m_millisForFrame == 0) { - m_millisForFrame = 1000.0 / framerate; - m_FrameStart = GetCounter(); - SpoutLogNotice("spoutFrameCount::HoldFps(%d)", fps); - } - else { - double elapsedTime = GetCounter() - m_FrameStart; // msec - // Sleep to reach the target frame time - if (elapsedTime < m_millisForFrame) - Sleep((DWORD)(m_millisForFrame - elapsedTime)); // can be slighly high - // Set start time for the next frame - m_FrameStart = GetCounter(); - } -#endif - -} - -// ================================================================= -// Texture access mutex -// ================================================================= - -// -// Check access to the shared texture -// -// Use a keyed mutex if the DX11 texture supports it -// otherwise use the sender named mutex. -// The DX11 texture pointer argument should always be null for DX9 mode. -bool spoutFrameCount::CheckTextureAccess(ID3D11Texture2D* D3D11texture) -{ - if (IsKeyedMutex(D3D11texture)) { - return CheckKeyedAccess(D3D11texture); - } - else { - return CheckAccess(); - } -} - -void spoutFrameCount::AllowTextureAccess(ID3D11Texture2D* D3D11texture) -{ - if (IsKeyedMutex(D3D11texture)) - AllowKeyedAccess(D3D11texture); - else - AllowAccess(); -} - -// ----------------------------------------------- -bool spoutFrameCount::CreateAccessMutex(const char *SenderName) -{ - DWORD errnum = 0; - char szMutexName[512]; - HANDLE hMutex = NULL; - - // Create the mutex name to control access to the shared texture - sprintf_s((char*)szMutexName, 512, "%s_SpoutAccessMutex", SenderName); - - // Create or open mutex depending, on whether it already exists or not - // - A sender will create one. - // - A receiver will open for a specific sender. - // A receiver should not open a mutex until a sender is found to connect to. - // If that sender does not have a mutex, one will be created - // and will always be available to the receiver. - // - hMutex = CreateMutexA(NULL, false, (LPCSTR)szMutexName); - - if (hMutex == NULL) { - SpoutLogError("spoutFrameCount::CreateAccessMutex - NULL invalid handle"); - return false; - } - else { - errnum = GetLastError(); - if (errnum == ERROR_INVALID_HANDLE) { - SpoutLogError("spoutFrameCount::CreateAccessMutex - [%s] invalid handle", szMutexName); - return false; - } - // Here we can find if the mutex already exists - else if (errnum == ERROR_ALREADY_EXISTS) { - SpoutLogNotice("spoutFrameCount::CreateAccessMutex - [%s] already exists", szMutexName); - } - else { - SpoutLogNotice("spoutFrameCount::CreateAccessMutex - [%s] created - 0x%.7X", szMutexName, PtrToUint(hMutex) ); - } - } - - m_hAccessMutex = hMutex; - - return true; - -} - -// ----------------------------------------------- -void spoutFrameCount::CloseAccessMutex() -{ - // Close the texture access mutex. If another application first opened - // the mutex it will not be finally closed here. - if (m_hAccessMutex) CloseHandle(m_hAccessMutex); - m_hAccessMutex = NULL; -} - -// ----------------------------------------------- -// Check whether any other process is holding the lock -// and wait for access for up to 4 frames if so. -// For receiving from Version 1 apps with no mutex lock, -// a reader will have created the mutex and will have -// sole access and rely on the interop locks. -bool spoutFrameCount::CheckAccess() -{ - // Don't block if no mutex for Spout1 apps - // or if called when the sender has closed. - // AllowAccess also tests for a null handle. - if (!m_hAccessMutex) - return true; - - // Typically 2-3 microseconds. - // 10 receivers - no increase. - // Note that NVIDIA "Threaded optimization" can cause delay - // for WaitForSingleObject and is set OFF by SpoutSettinngs - - DWORD dwWaitResult = WaitForSingleObject(m_hAccessMutex, 67); // timeout 4 frames at 60fps - switch (dwWaitResult) { - case WAIT_OBJECT_0 : - // The state of the object is signalled. - return true; - case WAIT_ABANDONED: - SpoutLogError("spoutFrameCount::CheckAccess - WAIT_ABANDONED"); - break; - case WAIT_TIMEOUT: // The time-out interval elapsed, and the object's state is nonsignaled. - // This can happen the first time a receiver connects to a sender - // SpoutLogError("CheckAccess - WAIT_TIMEOUT"); - break; - case WAIT_FAILED: // Could use call GetLastError - SpoutLogError("spoutFrameCount::CheckAccess - WAIT_FAILED"); - break; - default: - SpoutLogError("spoutFrameCount::CheckAccess - unknown error"); - break; - } - return false; -} - -// ----------------------------------------------- -// Release named mutex -void spoutFrameCount::AllowAccess() -{ - // < 1 microsecond - // Release ownership of the mutex object. - // The caller must call ReleaseMutex once for each time that the mutex satisfied a wait. - // The ReleaseMutex function fails if the caller does not own the mutex object - if (m_hAccessMutex) - ReleaseMutex(m_hAccessMutex); - -} - - -// =============================================================================== -// Protected -// =============================================================================== - - -// Keyed mutex check -// -// Microsoft docs : -// When a surface is created using the D3D10_RESOURCE_MISC_SHARED_KEYEDMUTEX -// value of the D3D10_RESOURCE_MISC_FLAG enumeration, you must call the -// AcquireSync method before rendering to the surface. You must call the -// ReleaseSync method when you are done rendering to a surface. -// -// Tests show that if a DX11 texture has been created with a keyed mutex it must -// be used in place of the sender named mutex or CopyResource fails -// -bool spoutFrameCount::CheckKeyedAccess(ID3D11Texture2D* pTexture) -{ - // 85-90 microseconds - if (pTexture) { - - IDXGIKeyedMutex* pDXGIKeyedMutex = nullptr; - - // Check the keyed mutex - pTexture->QueryInterface(_uuidof(IDXGIKeyedMutex), (void**)&pDXGIKeyedMutex); - if (pDXGIKeyedMutex) { - HRESULT hr = pDXGIKeyedMutex->AcquireSync(0, 67); // TODO - link with SPOUT_WAIT_TIMEOUT - switch (hr) { - case WAIT_OBJECT_0: - // The state of the object is signalled. - pDXGIKeyedMutex->Release(); - return true; - case WAIT_ABANDONED: - SpoutLogError("spoutDirectX::CheckKeyedAccess : WAIT_ABANDONED"); - break; - case WAIT_TIMEOUT: // The time-out interval elapsed, and the object's state is nonsignaled. - SpoutLogError("spoutDirectX::CheckKeyedAccess : WAIT_TIMEOUT"); - break; - default: - break; - } - pDXGIKeyedMutex->ReleaseSync(0); - pDXGIKeyedMutex->Release(); - } - } - return false; -} - -// Release keyed mutex -void spoutFrameCount::AllowKeyedAccess(ID3D11Texture2D* pTexture) -{ - // 22-24 microseconds - if (pTexture) { - IDXGIKeyedMutex* pDXGIKeyedMutex; - pTexture->QueryInterface(_uuidof(IDXGIKeyedMutex), (void**)&pDXGIKeyedMutex); - if (pDXGIKeyedMutex) { - pDXGIKeyedMutex->ReleaseSync(0); - pDXGIKeyedMutex->Release(); - } - } -} - -bool spoutFrameCount::IsKeyedMutex(ID3D11Texture2D* D3D11texture) -{ - // Approximately 1.5 microseconds - if (D3D11texture) { - D3D11_TEXTURE2D_DESC desc; - D3D11texture->GetDesc(&desc); - if (desc.MiscFlags & D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX) { - // printf("IsKeyed()\n"); - return true; - } - } - // Return to access by another method if no keyed mutex - return false; -} - - -// ----------------------------------------------- -// Calculate the sender frames per second -// Applications before 2.007 have a frame rate dependent on the system fps -void spoutFrameCount::UpdateSenderFps(long framecount) { - - // 0.0005 msec per frame - - // If framecount is zero, the sender has not produced a new frame yet - if (framecount > 0) { - -#ifdef USE_CHRONO - *m_FrameEndPtr = std::chrono::steady_clock::now(); - // milliseconds elapsed - double frametime = static_cast(std::chrono::duration_cast(*m_FrameEndPtr - *m_FramePtr).count() / 1000.); - // Reset the frame time - *m_FramePtr = std::chrono::steady_clock::now(); -#else - // Msecs between this frame and the last - double thisFrame = GetCounter(); - double frametime = thisFrame-m_lastFrame; - // Set the start time for the next frame - m_lastFrame = thisFrame; -#endif - // Accumulate totals - m_FrameTimeTotal = m_FrameTimeTotal + frametime; - m_FrameTimeNumber += (double)framecount; // Could have been more than one frame - if (m_FrameTimeNumber > 16) { - // Calculate the average frame time every 16 frames - frametime = m_FrameTimeTotal / m_FrameTimeNumber; - m_FrameTimeTotal = 0.0; - m_FrameTimeNumber = 0.0; - // Calculate frames per second (default fps is system refresh rate) - frametime = frametime / 1000.0; // frame time in seconds - if (frametime > 0.0001) { - double fps = (1.0 / frametime); // Fps - m_SenderFps = 0.85*m_SenderFps + 0.15*fps; // damping - } - } - } - -} - -// ----------------------------------------------- -// -// Get system refresh rate for the default fps value -// https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-enumdisplaysettingsa -// -double spoutFrameCount::GetRefreshRate() -{ - double frequency = 60.0; - DEVMODE DevMode; - BOOL bResult = true; - DWORD dwCurrentSettings = 0; - DevMode.dmSize = sizeof(DEVMODE); - // Test all the graphics modes - while (bResult) { - bResult = EnumDisplaySettings(NULL, dwCurrentSettings, &DevMode); - if (bResult) - frequency = static_cast(DevMode.dmDisplayFrequency); - dwCurrentSettings++; - } - return frequency; -} - -// ----------------------------------------------- -// -// Set counter start -// -// Information on using QueryPerformanceFrequency for timing -// https://docs.microsoft.com/en-us/windows/desktop/SysInfo/acquiring-high-resolution-time-stamps -// -// Used instead of std::chrono for Visual Studio before VS2015 -// -void spoutFrameCount::StartCounter() -{ - LARGE_INTEGER li; - if (QueryPerformanceFrequency(&li)) { - // Find the PC frequency if not done yet - if(PCFreq < 0.0001) - PCFreq = static_cast(li.QuadPart) / 1000.0; - // Get the counter start - QueryPerformanceCounter(&li); - CounterStart = li.QuadPart; - } - -} - -// ----------------------------------------------- -// Return msec elapsed since counter start -// -double spoutFrameCount::GetCounter() -{ - LARGE_INTEGER li; - if (QueryPerformanceCounter(&li)) { - return static_cast(li.QuadPart - CounterStart) / PCFreq; - } - else { - return 0.0; - } -} - -// =============================================================================== - - diff --git a/Plugin/Spout/SpoutGL/SpoutFrameCount.h b/Plugin/Spout/SpoutGL/SpoutFrameCount.h deleted file mode 100644 index bc95955..0000000 --- a/Plugin/Spout/SpoutGL/SpoutFrameCount.h +++ /dev/null @@ -1,155 +0,0 @@ -/* - - SpoutFrameCount.h - - Frame counting management - - Copyright (c) 2019-2021. Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ -#pragma once - -#ifndef __spoutFrameCount__ -#define __spoutFrameCount__ - -#include -#include -#include "SpoutCommon.h" -#include "SpoutSharedMemory.h" -#include // for keyed mutex texture access -#pragma comment (lib, "d3d11.lib") - -using namespace spoututils; - -// USE_CHRONO is defined in SpoutUtils.h -// Note comments about using an early platform toolset -#ifdef USE_CHRONO -#include // c++11 timer -#include -#endif - -class SPOUT_DLLEXP spoutFrameCount { - - public: - - spoutFrameCount(); - ~spoutFrameCount(); - - // Enable or disable frame counting globally - void SetFrameCount(bool bEnable); - // Enable frame counting for this sender - void EnableFrameCount(const char* SenderName); - // Disable frame counting - void DisableFrameCount(); - // Check status of frame counting - bool IsFrameCountEnabled(); - // Is the received frame new - bool IsFrameNew(); - // Received frame rate - double GetSenderFps(); - // Received frame count - long GetSenderFrame(); - // Frame rate control - void HoldFps(int fps); - - // - // Used by other classes - // - - // Sender increment the semaphore count - void SetNewFrame(); - // Receiver read the semaphore count - bool GetNewFrame(); - // For class cleanup functions - void CleanupFrameCount(); - - // - // Mutex locks including DirectX 11 keyed mutex - // - - // Test for texture access using a named sender or keyed texture mutex - bool CheckTextureAccess(ID3D11Texture2D* D3D11texture = nullptr); - // Release mutex and allow textureaccess - void AllowTextureAccess(ID3D11Texture2D* D3D11texture = nullptr); - - // - // Named mutex for shared texture access - // - - // Create named mutex for a sender - bool CreateAccessMutex(const char * SenderName); - // Release the mutex - void CloseAccessMutex(); - // Test access using a named mutex - bool CheckAccess(); - // Allow access after gaining ownership - void AllowAccess(); - -protected : - - // Texture access named mutex - HANDLE m_hAccessMutex; - - // DX11 texture keyed mutex checks - bool CheckKeyedAccess(ID3D11Texture2D* D3D11texture); - void AllowKeyedAccess(ID3D11Texture2D* D3D11texture); - bool IsKeyedMutex(ID3D11Texture2D* D3D11texture); - - // Frame count semaphore - bool m_bFrameCount; // User selection of frame count in SpoutSettings - bool m_bDisabled; // application disable - bool m_bIsNewFrame; // received frame is new - HANDLE m_hCountSemaphore; // semaphore handle - char m_CountSemaphoreName[256]; // semaphore name - char m_SenderName[256]; // sender currently connected to a receiver - long m_FrameCount; // sender frame count - long m_LastFrameCount; // receiver frame comparator - double m_FrameTimeTotal; - double m_FrameTimeNumber; - double m_lastFrame; - - // Sender frame timing - double m_SenderFps; - void UpdateSenderFps(long framecount = 0); - double GetRefreshRate(); - - // Fps control - double m_millisForFrame; - -#ifdef USE_CHRONO - // Avoid C4251 warnings in SpoutLibrary by using pointers - // USE_CHRONO is defined in SpoutUtils.h - std::chrono::steady_clock::time_point * m_FrameStartPtr; - std::chrono::steady_clock::time_point * m_FrameEndPtr; - std::chrono::steady_clock::time_point * m_FramePtr; -#endif - - // PC timer - double PCFreq; - __int64 CounterStart; - double m_FrameStart; - void StartCounter(); - double GetCounter(); - -}; - -#endif diff --git a/Plugin/Spout/SpoutGL/SpoutGL.cpp b/Plugin/Spout/SpoutGL/SpoutGL.cpp deleted file mode 100644 index fb91f17..0000000 --- a/Plugin/Spout/SpoutGL/SpoutGL.cpp +++ /dev/null @@ -1,2865 +0,0 @@ -// -// SpoutGL -// -// Base class for OpenGL texture sharing using the NVIDIA GL/DX interop extensions -// -// See also - spoutDirectX, spoutSenderNames -// -// ==================================================================================== -// Revisions : -// -// 07.10.20 - Started class based on previous work with SpoutGLDXinterop.cpp -// for 2.006 and 2.007 beta : 15-07-14 - 03-09-20 -// with reference to the SpoutDX class for consolidation of global variables. -// Compatibility with NVIDIA GL/DX interop is tested with fall-back to CPU share -// using DirectX11 staging textures for failure. -// MemoryShare is supported for receive only. -// DX9 support is removed. -// 09.12.20 - Correct ReadDX11texture for staging texture pitch -// 27.12.20 - Functions allocated to SpoutSDK class where appropriate -// 14.01.21 - Add GetDX11Device() and GetDX11Context() -// add bInvert and HostFBO options to WriteTextureReadback -// -// ==================================================================================== -/* - Copyright (c) 2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "SpoutGL.h" - -// Class: spoutGL -// Base class for OpenGL texture sharing using the NVIDIA GL/DX interop extensions. -// This class should not be used directly because it is the base for the Spout, SpoutSender and SpoutReceiver classes. -// Refer to the SpoutSDK class for documentation and details. -spoutGL::spoutGL() -{ - m_SenderName[0] = 0; - m_SenderNameSetup[0] = 0; - m_Width = 0; - m_Height = 0; - m_dwFormat = (DWORD)DXGI_FORMAT_B8G8R8A8_UNORM; // default sender format - - m_bAuto = true; - m_bUseGLDX = true; - m_bSenderCPUmode = false; - - m_bConnected = false; - m_bNewFrame = false; - m_bInitialized = false; - m_bSpoutPanelOpened = false;; - m_bSpoutPanelActive = false;; - m_bUpdated = false; - m_bMirror = false; - m_bSwapRB = false; - - m_glTexture = 0; - m_TexID = 0; - m_TexWidth = 0; - m_TexHeight = 0; - m_TexFormat = GL_RGBA; - m_fbo = 0; - - m_dxShareHandle = nullptr; // Shared texture handle - m_pSharedTexture = nullptr; // DX11 shared texture - m_DX11format = DXGI_FORMAT_B8G8R8A8_UNORM; // Default compatible with DX9 - m_pStaging[0] = nullptr; // DX11 staging textures - m_pStaging[1] = nullptr; - m_Index = 0; - m_NextIndex = 0; - - m_hInteropDevice = nullptr; - m_hInteropObject = nullptr; - m_hWnd = nullptr; - - // For CreateOpenGL and CloseOpenGL - m_hdc = nullptr; - m_hwndButton = nullptr; - m_hRc = nullptr; - - // OpenGL extensions - m_caps = 0; // nothing loaded yet - m_bExtensionsLoaded = false; - m_bBGRAavailable = false; - m_bFBOavailable = false; - m_bBLITavailable = false; - m_bSWAPavailable = false; - m_bGLDXavailable = false; - m_bCOPYavailable = false; - m_bPBOavailable = true; // Assume true until tested by LoadGLextensions - m_bCONTEXTavailable = false; - - // PBO support - PboIndex = 0; - NextPboIndex = 0; - m_nBuffers = 2; // number of buffers used - m_pbo[0] = m_pbo[1] = m_pbo[2] = m_pbo[3] = 0; - - // Memoryshare variables - memoryshare.senderMem = nullptr; - memoryshare.m_Width = 0; - memoryshare.m_Height = 0; - - // Check the user selected Auto share mode - DWORD dwValue = 0; - if (ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "Auto", &dwValue)) - m_bAuto = (dwValue == 1); - - // Check the user selected buffering mode - if (ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "Buffering", &dwValue)) - m_bPBOavailable = (dwValue == 1); - - // Number of PBO buffers user selected - m_nBuffers = 2; - if(ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "Buffers", &dwValue)) - m_nBuffers = (int)dwValue; - - // Find version number from the registry if Spout is installed (2005, 2006, etc.) - if (ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "Version", &dwValue)) - m_SpoutVersion = (int)dwValue; // 0 for earlier than 2.005 - else - m_SpoutVersion = -1; // Spout not installed - -} - -spoutGL::~spoutGL() -{ - if (m_bInitialized) { - sendernames.ReleaseSenderName(m_SenderName); - frame.CleanupFrameCount(); - frame.CloseAccessMutex(); - } - - if (m_fbo > 0) { - // Delete the fbo before the texture - // so that any texture attachment is released - glDeleteFramebuffersEXT(1, &m_fbo); - m_fbo = 0; - } - - if (m_glTexture > 0) - glDeleteTextures(1, &m_glTexture); - - if (m_TexID > 0) - glDeleteTextures(1, &m_TexID); - - if (m_pbo[0] > 0) { - glDeleteBuffersEXT(m_nBuffers, m_pbo); - m_pbo[0] = m_pbo[1] = m_pbo[2] = m_pbo[3] = 0; - } - - if (m_pSharedTexture) - m_pSharedTexture->Release(); - - CleanupInterop(); - CloseDirectX(); - - if (memoryshare.senderMem) - delete memoryshare.senderMem; - memoryshare.senderMem = nullptr; - memoryshare.m_Width = 0; - memoryshare.m_Height = 0; - -} - -// -// Group: OpenGL shared texture -// - -//--------------------------------------------------------- -// Function: BindSharedTexture -// Bind OpenGL shared texture -bool spoutGL::BindSharedTexture() -{ - // Only for GL/DX interop mode - if (!m_hInteropDevice || !m_hInteropObject) - return false; - - bool bRet = false; - // Wait for access to the shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - // lock dx object - if (LockInteropObject(m_hInteropDevice, &m_hInteropObject) == S_OK) { - // Bind our shared OpenGL texture - glBindTexture(GL_TEXTURE_2D, m_glTexture); - // Leave interop and mutex both locked for success - bRet = true; - } - else { - // Release interop lock and allow texture access for fail - UnlockInteropObject(m_hInteropDevice, &m_hInteropObject); - bRet = false; - } - // Release mutex and allow access to the texture - frame.AllowTextureAccess(m_pSharedTexture); - } - - return bRet; - -} // end BindSharedTexture - -//--------------------------------------------------------- -// Function: UnBindSharedTexture -// Un-bind OpenGL shared texture -bool spoutGL::UnBindSharedTexture() -{ - // Only for GL/DX interop mode - if (!m_hInteropDevice || !m_hInteropObject) - return false; - - // Unbind our shared OpenGL texture - glBindTexture(GL_TEXTURE_2D, 0); - // unlock dx object - UnlockInteropObject(m_hInteropDevice, &m_hInteropObject); - // Release mutex and allow access to the texture - frame.AllowTextureAccess(m_pSharedTexture); - - return true; - -} // end UnBindSharedTexture - -//--------------------------------------------------------- -// Function: GetSharedTextureID -// OpenGL shared texture ID -GLuint spoutGL::GetSharedTextureID() -{ - return m_glTexture; -} - -// -// Group: Graphics compatibility -// - -//--------------------------------------------------------- -// Function: GetAutoShare -// Get auto GPU/CPU share depending on compatibility -bool spoutGL::GetAutoShare() -{ - return m_bAuto; -} - -//--------------------------------------------------------- -// Function: SetAutoShare -// Set auto GPU/CPU share depending on compatibility -void spoutGL::SetAutoShare(bool bAuto) -{ - m_bAuto = bAuto; -} - -//--------------------------------------------------------- -// Function: IsGLDXready -// OpenGL texture share compatibility -bool spoutGL::IsGLDXready() -{ - return m_bUseGLDX; -} - -// -// Group: For direct access if necessary -// - -//--------------------------------------------------------- -// Function: OpenSpout -// Initialize OpenGL and DX11 -// - Load extensions and check for availability and function -// - Open DirectX and check for availability -// - Compatibility test for use or GL/DX interop -// - Optionally re-test compatibility even if already initialized -bool spoutGL::OpenSpout(bool bRetest) -{ - // Return if already initialized and not re-testing compatibility - if (m_hWnd > 0 && !bRetest) - return true; - - printf("\n"); // This is the start, so make a new line in the log -#ifdef _M_X64 - SpoutLogNotice("spoutGL::OpenSpout - 64bit 2.007 - this 0x%.7X", PtrToUint(this)); -#else - SpoutLogNotice("spoutGL::OpenSpout - 32bit 2.007 - this 0x%.7X", PtrToUint(this)); -#endif - - m_bUseGLDX = false; - - if (!OpenDirectX()) { - SpoutLogFatal("spoutGL::OpenSpout - Could not initialize DirectX 11"); - return false; - } - - // DirectX is OK - // OpenGL device context is needed to go on - HDC hdc = wglGetCurrentDC(); - if (!hdc) { - SpoutLogFatal("spoutGL::OpenSpout - Cannot get GL device context"); - return false; - } - - // Get a window handle - m_hWnd = WindowFromDC(hdc); - - // Load extensions - if (!LoadGLextensions()) { - SpoutLogFatal("spoutGL::OpenSpout - Could not load GL extensions"); - return false; - } - - // If DirectX and OpenGL are both OK - test GLDX compatibility - - // For a re-test, create a new interop device in GLDXReady() - if (bRetest) - CleanupInterop(); - - if(!GLDXready()) { - // Not GL/DX compatible. - SpoutLogWarning("spoutGL::OpenSpout - system is not compatible with GL/DX interop"); - // Use CPU backup if Auto share enabled - if (m_bAuto) - SpoutLogWarning(" Using CPU share mode"); - else - SpoutLogWarning(" Cannot share textures"); - } - else { - // GL/DX compatible. Use GL/DX interop. - SpoutLogNotice(" Using texture share mode"); - } - - return true; - -} - -//--------------------------------------------------------- -// Function: OpenDirectX -// Initialize DirectX -bool spoutGL::OpenDirectX() -{ - SpoutLogNotice("spoutGL::OpenDirectX"); - return spoutdx.OpenDirectX11(); -} - -//--------------------------------------------------------- -// Function: SetDX11format -// Set sender DX11 shared texture format -void spoutGL::SetDX11format(DXGI_FORMAT textureformat) -{ - m_DX11format = textureformat; -} - -//--------------------------------------------------------- -// Function: CloseDirectX -// Close DirectX and free resources -void spoutGL::CloseDirectX() -{ - SpoutLogNotice("spoutGL::CloseDirectX()"); - - if (m_pSharedTexture) - m_pSharedTexture->Release(); - m_pSharedTexture = nullptr; - spoutdx.CloseDirectX11(); - - // Re-set shared texture handle - m_dxShareHandle = nullptr; - -} - -//--------------------------------------------------------- -// Function: CreateOpenGL -// Create an OpenGL window and context for situations where there is none. -// Not used if applications already have an OpenGL context. -// Always call CloseOpenGL afterwards. -bool spoutGL::CreateOpenGL() -{ - m_hdc = nullptr; - m_hwndButton = nullptr; - m_hRc = nullptr; - - SpoutLogNotice("spoutGL::CreateOpenGL()"); - - HGLRC glContext = wglGetCurrentContext(); - - if (!glContext) { - - // We only need an OpenGL context with no render window because we don't draw to it - // so create an invisible dummy button window. This is then independent from the host - // program window (GetForegroundWindow). If SetPixelFormat has been called on the - // host window it cannot be called again. This caused a problem in Mapio. - // https://msdn.microsoft.com/en-us/library/windows/desktop/dd369049%28v=vs.85%29.aspx - // - // CS_OWNDC allocates a unique device context for each window in the class. - // - if (!m_hwndButton || !IsWindow(m_hwndButton)) { - m_hwndButton = CreateWindowA("BUTTON", - "SpoutOpenGL", - WS_OVERLAPPEDWINDOW | CS_OWNDC, - 0, 0, 32, 32, - NULL, NULL, NULL, NULL); - } - - if (!m_hwndButton) { - SpoutLogError("spoutGL::CreateOpenGL - no hwnd"); - return false; - } - - m_hdc = GetDC(m_hwndButton); - if (!m_hdc) { - SpoutLogError("spoutGL::CreateOpenGL - no hdc"); - CloseOpenGL(); - return false; - } - - PIXELFORMATDESCRIPTOR pfd; - ZeroMemory(&pfd, sizeof(pfd)); - pfd.nSize = sizeof(pfd); - pfd.nVersion = 1; - pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; - pfd.iPixelType = PFD_TYPE_RGBA; - pfd.cColorBits = 32; - pfd.cDepthBits = 16; - pfd.iLayerType = PFD_MAIN_PLANE; - int iFormat = ChoosePixelFormat(m_hdc, &pfd); - if (!iFormat) { - SpoutLogError("spoutGL::CreateOpenGL - pixel format error"); - CloseOpenGL(); - return false; - } - - if (!SetPixelFormat(m_hdc, iFormat, &pfd)) { - DWORD dwError = GetLastError(); - // 2000 (0x7D0) The pixel format is invalid. - // Caused by repeated call of the SetPixelFormat function - char temp[128]; - sprintf_s(temp, "spoutGL::CreateOpenGL - SetPixelFormat Error %lu (0x%4.4lX)", dwError, dwError); - SpoutLogError("%s", temp); - CloseOpenGL(); - return false; - } - - m_hRc = wglCreateContext(m_hdc); - if (!m_hRc) { - SpoutLogError("spoutGL::CreateOpenGL - could not create OpenGL context"); - CloseOpenGL(); - return false; - } - - wglMakeCurrent(m_hdc, m_hRc); - if (!wglGetCurrentContext()) { - SpoutLogError("spoutGL::CreateOpenGL - no OpenGL context"); - CloseOpenGL(); - return false; - } - SpoutLogNotice(" OpenGL window created OK"); - } - else { - SpoutLogNotice(" OpenGL context exists"); - } - - return true; -} - -//--------------------------------------------------------- -// Function: CloseOpenGL -// Close OpenGL window -bool spoutGL::CloseOpenGL() -{ - - SpoutLogNotice("spoutGL::CloseOpenGL()"); - - // Properly kill the OpenGL window - if (m_hRc) { - if (!wglMakeCurrent(NULL, NULL)) { // Are We Able To Release The DC And RC Contexts? - SpoutLogError("spoutGL::CloseOpenGL - release of DC and RC failed"); - return false; - } - if (!wglDeleteContext(m_hRc)) { // Are We Able To Delete The RC? - SpoutLogError("spoutGL::CloseOpenGL - release rendering context failed"); - return false; - } - m_hRc = NULL; - } - - if (m_hdc && !ReleaseDC(m_hwndButton, m_hdc)) { // Are We Able To Release The DC - SpoutLogError("spoutGL::CloseOpenGL - release device context Failed"); - m_hdc = NULL; - return false; - } - - if (m_hwndButton && !DestroyWindow(m_hwndButton)) { // Are We Able To Destroy The Window? - SpoutLogError("spoutGL::CloseOpenGL - could not release hWnd"); - m_hwndButton = NULL; - return false; - } - - SpoutLogNotice(" closed the OpenGL window OK"); - - return true; -} - -//--------------------------------------------------------- -// Class initialization status -bool spoutGL::IsSpoutInitialized() -{ - return m_bInitialized; -} - -// -// GLDXready -// -// Hardware compatibility test -// -// o Check that extensions for GL/DX interop are available -// -// o GLDXready -// Checks operation of GL/DX interop functions -// and creates an interop device for success -// -// o m_bUseGLDX - true for GL/DX interop availability -// -bool spoutGL::GLDXready() -{ - // === Simulate failure for debugging === - // SpoutLogNotice("spoutGL::GLDXready - simulated compatibility failure"); - // m_bUseGLDX = false; - // return false; - - // Test whether the NVIDIA OpenGL/DirectX interop extensions function correctly. - // Creates dummy textures and uses the interop functions. - // Creates an interop device on success. - // Must be called after OpenDirectX. - // Success means the GLDX interop functions can be used. - // Other errors should not happen if OpenDirectX succeeded - - HANDLE dxShareHandle = nullptr; // Shared texture handle for a sender texture - ID3D11Texture2D* pSharedTexture = nullptr; // the shared DX11 texture - HANDLE hInteropObject = nullptr; // handle to the DX/GL interop object - GLuint glTexture = 0; // the OpenGL texture linked to the shared DX texture - - SpoutLogNotice("spoutGL::GLDXready - testing for GL/DX interop compatibility"); - - // Assume not GLDX interop compatible until all tests pass - m_bUseGLDX = false; - - if (!spoutdx.GetDX11Device()) { - SpoutLogError("spoutGL::GLDXready - No D3D11 device"); - return false; - } - - // DirectX is OK but check for availabilty of the GL/DX extensions. - if (!m_bGLDXavailable) { - // The extensions required for texture access are not available. - SpoutLogError("spoutGL::GLDXready - GL/DX interop extensions not available"); - return false; - } - - SpoutLogNotice(" GL/DX interop extensions available"); - - // Create an opengl texture for the test - glGenTextures(1, &glTexture); - if (glTexture == 0) { - SpoutLogError("spoutGL::GLDXready - glGenTextures failed"); - return false; - } - glDeleteTextures(1, &glTexture); - - // - // Create a directX texture and link using the NVIDIA GLDX interop functions - // - - SpoutLogNotice("spoutGL::GLDXready - testing GL/DX interop functions"); - - // Create a new shared DirectX resource - if (!spoutdx.CreateSharedDX11Texture(spoutdx.GetDX11Device(), - 256, 256, DXGI_FORMAT_B8G8R8A8_UNORM, // default - &pSharedTexture, dxShareHandle)) { - glDeleteTextures(1, &glTexture); - SpoutLogError("spoutGL::GLDXready - CreateSharedDX11Texture failed"); - return false; - } - - SpoutLogNotice(" Linking test - OpenGL texture (0x%.7X) DX11 texture (0x%.7X)", glTexture, PtrToUint(pSharedTexture)); - - // Link the shared DirectX texture to the OpenGL texture - // If sucessful, LinkGLDXtextures initializes a class handle - // to a GL/DirectX interop device - m_hInteropDevice - hInteropObject = LinkGLDXtextures(spoutdx.GetDX11Device(), pSharedTexture, dxShareHandle, glTexture); - if (!hInteropObject) { - spoutdx.ReleaseDX11Texture(spoutdx.GetDX11Device(), pSharedTexture); - glDeleteTextures(1, &glTexture); - // It is possible that extensions for the GL/DX interop load OK - // but that the GL/DX interop functions fail. - // This has been noted on dual graphics machines with the NVIDIA Optimus driver. - SpoutLogWarning("spoutGL::GLDXready - GL/DX interop functions failed"); - } - else { - // All passes, so unregister and release textures - // m_hInteropDevice remains and does not need to be created again - if (m_hInteropDevice) - wglDXUnregisterObjectNV(m_hInteropDevice, hInteropObject); - - spoutdx.ReleaseDX11Texture(spoutdx.GetDX11Device(), pSharedTexture); - glDeleteTextures(1, &glTexture); - - // Set compatibility flag - m_bUseGLDX = true; - - SpoutLogNotice(" Test OpenGL and DX11 textures created and linked OK"); - - } - - // Now GLDXready() has set m_bUseGLDX is set to use the GL/DX interop or not. - - // Use of texture sharing or CPU backup is assessed from - // user settings (retrieved with GetAutoShare) - // and actual GL/DX compatibility (retrieved with GetGLDXready) - - // Texture sharing is used if GL/DX compatible (m_bUseGLDX = true) - // CPU backup is used if : - // 1) Graphics is incompatible (m_bUseGLDX = false) - // 2) The user has selected "Auto" share in SpoutSettings (m_bAuto = false) - // Otherwise no sharing is performed. - - // If not GLDX compatible, LinkGLDXtexture will not be called (see CreateDX11interop) - // ReadDX11Texture and WriteDX11Texture using staging textures will be used instead - - return m_bUseGLDX; - -} - - -// -// Protected functions -// - -// Create shared DirectX texture and OpenGL texture and link with GL/DX interop -bool spoutGL::CreateInterop(unsigned int width, unsigned int height, DWORD dwFormat, bool bReceive) -{ - SpoutLogNotice("spoutGL::CreateInterop"); - - // printf("spoutGL::CreateInterop %dx%d - format = %d\n", width, height, dwFormat); - - // Create or use a shared DirectX texture that will be linked - // to the OpenGL texture and get it's share handle for sharing textures - if (bReceive) { - // A receiver uses a texture already created from the sender share handle - if (!m_pSharedTexture || !m_dxShareHandle) { - SpoutLogError("spoutGL::CreateInterop - no receiver texture : device = 0x%.7X, sharehandle = 0x%.7X", PtrToUint(spoutdx.GetDX11Device()), LOWORD(m_dxShareHandle)); - return false; - } - } - else { - - // A sender creates a new texture with a new share handle - m_dxShareHandle = nullptr; - - // - // Texture format tests - // - // DX9 compatible formats - // DXGI_FORMAT_B8G8R8A8_UNORM; // compatible DX11 format - works with DX9 (87) - // DXGI_FORMAT_B8G8R8X8_UNORM; // compatible DX11 format - works with DX9 (88) - // - // Other formats that work with DX11 but not with DX9 - // DXGI_FORMAT_R16G16B16A16_FLOAT - // DXGI_FORMAT_R16G16B16A16_SNORM - // DXGI_FORMAT_R10G10B10A2_UNORM - // - // A directX 11 receiver accepts DX9 formats - DWORD format = (DWORD)DXGI_FORMAT_B8G8R8A8_UNORM; // (87) default compatible with DX9 - if (dwFormat > 0) { - format = dwFormat; - SetDX11format((DXGI_FORMAT)format); // Set the global texture format - } - else { - format = m_DX11format; - } - - // Create or re-create the linked DX11 texture - if (!spoutdx.CreateSharedDX11Texture(spoutdx.GetDX11Device(), - width, height, (DXGI_FORMAT)format, // default is DXGI_FORMAT_B8G8R8A8_UNORM - &m_pSharedTexture, m_dxShareHandle)) { - SpoutLogError("spoutGL::CreateInterop - CreateSharedDX11Texture failed"); - return false; - } - } - - SpoutLogNotice("spoutGL::CreateInterop - m_pSharedTexture = 0x%.7X : m_dxShareHandle = 0x%.7X", PtrToUint(m_pSharedTexture), LOWORD(m_dxShareHandle)); - - // Link the shared DirectX texture to the OpenGL texture - // This registers for interop and associates the opengl texture with the dx texture - // by calling wglDXRegisterObjectNV which returns a handle to the interop object - // (the shared texture) (m_hInteropObject) - // When a sender size changes, the new texture has to be re-registered - if (m_hInteropDevice && m_hInteropObject) { - SpoutLogNotice(" Unregistering interop"); - wglDXUnregisterObjectNV(m_hInteropDevice, m_hInteropObject); - m_hInteropObject = nullptr; - } - - // Create or re-create the class OpenGL texture - InitTexture(m_glTexture, GL_RGBA, width, height); - m_Width = width; - m_Height = height; - - // Link the texture using the GL/DX interop - m_hInteropObject = LinkGLDXtextures((void *)spoutdx.GetDX11Device(), m_pSharedTexture, m_dxShareHandle, m_glTexture); - if (!m_hInteropObject) { - SpoutLogError("spoutGL::CreateInterop - LinkGLDXtextures failed"); - return false; - } - SpoutLogNotice(" m_hInteropObject = 0x%.7X", LOWORD(m_hInteropObject)); - - // Create an fbo if not already - if (m_fbo == 0) - glGenFramebuffersEXT(1, &m_fbo); - - // Important to reset PBO index - PboIndex = 0; - NextPboIndex = 0; - - // Also reset staging texture index - m_Index = 0; - m_NextIndex = 0; - - return true; - -} - -// -// Link a shared DirectX texture to an OpenGL texture -// and create a GLDX interop object handle -// -// IN pSharedTexture Pointer to shared the DirectX texture -// IN dxShareHandle Handle of the DirectX texture to be shared -// IN glTextureID ID of the OpenGL texture that is to be linked to the shared DirectX texture -// Returns Handle to the GL/DirectX interop object (the shared texture) -// -HANDLE spoutGL::LinkGLDXtextures(void* pDXdevice, - void* pSharedTexture, HANDLE dxShareHandle, GLuint glTexture) -{ - - HANDLE hInteropObject = nullptr; - BOOL bResult = 0; - DWORD dwError = 0; - char tmp[128]; - - // Prepare the DirectX device for interoperability with OpenGL - // The return value is a handle to a GL/DirectX interop device. - if (!m_hInteropDevice) { - try { - m_hInteropDevice = wglDXOpenDeviceNV(pDXdevice); - } - catch (...) { - SpoutLogError("spoutGL::LinkGLDXtextures - wglDXOpenDeviceNV exception"); - return NULL; - } - } - - if (!m_hInteropDevice) { - // wglDXOpenDeviceNV failed to open the Direct3D device - dwError = GetLastError(); - sprintf_s(tmp, 128, "spoutGL::LinkGLDXtextures : wglDXOpenDeviceNV(0x%.7X) - error %lu (0x%.X)\n", - LOWORD(pDXdevice), dwError, LOWORD(dwError)); - // Other errors reported - // 1008, 0x3F0 - ERROR_NO_TOKEN - switch (LOWORD(dwError)) { - case ERROR_OPEN_FAILED: - strcat_s(tmp, 128, " Could not open the Direct3D device."); - break; - case ERROR_NOT_SUPPORTED: - // This can be caused either by passing in a device from an unsupported DirectX - // version, or by passing in a device referencing a display adapter that is - // not accessible to the GL. - strcat_s(tmp, 128, " The dxDevice is not supported."); - break; - default: - strcat_s(tmp, 128, " Unknown error."); - break; - } - SpoutLogError("%s", tmp); - return NULL; - } - - // prepare shared resource - // wglDXSetResourceShareHandle does not need to be called for DirectX - // version 10 and 11 resources. Calling this function for DirectX 10 - // and 11 resources is not an error but has no effect. - // Error when dxShareHandle is NULL - try { - bResult = wglDXSetResourceShareHandleNV(pSharedTexture, dxShareHandle); - } - catch (...) { - SpoutLogError("spoutGL::LinkGLDXtextures - wglDXSetResourceShareHandleNV exception"); - return NULL; - } - - if (!bResult) { - SpoutLogError("spoutGL::LinkGLDXtextures - wglDXSetResourceShareHandleNV error"); - return NULL; - } - - // Prepare the DirectX texture for use by OpenGL - // register for interop and associate the opengl texture with the dx texture - // Returns a handle that can be used for sharing functions - try { - hInteropObject = wglDXRegisterObjectNV(m_hInteropDevice, - pSharedTexture, // DX texture - glTexture, // OpenGL texture - GL_TEXTURE_2D, // Must be TEXTURE_2D - multisampling not supported - WGL_ACCESS_READ_WRITE_NV); // We will write and the receiver will read - } - catch (...) { - SpoutLogError("spoutGL::LinkGLDXtextures - wglDXRegisterObjectNV exception"); - return NULL; - } - - if (!hInteropObject) { - // Noted C007006E returned on failure. - // Error codes are 32-bit values, but expected results are in the low word. - // 006E is ERROR_OPEN_FAILED (110L) - dwError = GetLastError(); - sprintf_s(tmp, 128, "spoutGL::LinkGLDXtextures - wglDXRegisterObjectNV :error %u, (0x%.X)\n", - LOWORD(dwError), LOWORD(dwError)); - switch (LOWORD(dwError)) { - case ERROR_INVALID_HANDLE: - strcat_s(tmp, 128, " No GL context is current."); - break; - case ERROR_INVALID_DATA: - strcat_s(tmp, 128, " Incorrect GL name, type or access parameters."); - break; - case ERROR_OPEN_FAILED: - strcat_s(tmp, 128, " Failed to open the Direct3D resource."); - break; - default: - strcat_s(tmp, 128, " Unknown error."); - break; - } - SpoutLogError("%s", tmp); - - if (m_hInteropDevice) { - wglDXCloseDeviceNV(m_hInteropDevice); - m_hInteropDevice = nullptr; - } - - } - - return hInteropObject; - -} - -HANDLE spoutGL::GetInteropDevice() -{ - return m_hInteropDevice; // Handle to the GL/DX interop device -} - -// -// GL/DX Interop lock -// -// A return value of S_OK indicates that all objects were -// successfully locked. Other return values indicate an -// error. If the function returns false, none of the objects will be locked. -// -// Attempting to access an interop object via GL when the object is -// not locked, or attempting to access the DirectX resource through -// the DirectX API when it is locked by GL, will result in undefined -// behavior and may result in data corruption or program -// termination. Likewise, passing invalid interop device or object -// handles to this function has undefined results, including program -// termination. -// -// Note that only one GL context may hold the lock on the -// resource at any given time --- concurrent access from multiple GL -// contexts is not currently supported. -// -// DISCUSSION: The Lock/Unlock calls serve as synchronization points -// between OpenGL and DirectX. They ensure that any rendering -// operations that affect the resource on one driver are complete -// before the other driver takes ownership of it. -// -// This function assumes only one object -// -// Must return S_OK (0) - otherwise the error can be checked. -// -HRESULT spoutGL::LockInteropObject(HANDLE hDevice, HANDLE *hObject) -{ - DWORD dwError; - HRESULT hr; - - if (!hDevice || !hObject || !*hObject) { - return E_HANDLE; - } - - // lock dx object - if (wglDXLockObjectsNV(hDevice, 1, hObject)) { - return S_OK; - } - else { - dwError = GetLastError(); - switch (LOWORD(dwError)) { - case ERROR_BUSY: // One or more of the objects in was already locked. - hr = E_ACCESSDENIED; // General access denied error - SpoutLogError("spoutGL::LockInteropObject - ERROR_BUSY"); - break; - case ERROR_INVALID_DATA: // One or more of the objects in - // does not belong to the interop device - // specified by . - hr = E_ABORT; // Operation aborted - SpoutLogError("spoutGL::LockInteropObject - ERROR_INVALID_DATA"); - break; - case ERROR_LOCK_FAILED: // One or more of the objects in failed to - hr = E_ABORT; // Operation aborted - SpoutLogError("spoutGL::LockInteropObject - ERROR_LOCK_FAILED"); - break; - default: - hr = E_FAIL; // unspecified error - SpoutLogError("spoutGL::LockInteropObject - UNKNOWN_ERROR"); - break; - } // end switch - } // end false - - return hr; - -} // LockInteropObject - - -// -// Must return S_OK (0) - otherwise the error can be checked. -// -HRESULT spoutGL::UnlockInteropObject(HANDLE hDevice, HANDLE *hObject) -{ - DWORD dwError; - HRESULT hr; - - if (!hDevice || !hObject || !*hObject) { - return E_HANDLE; - } - - if (wglDXUnlockObjectsNV(hDevice, 1, hObject)) { - return S_OK; - } - else { - dwError = GetLastError(); - switch (LOWORD(dwError)) { - case ERROR_NOT_LOCKED: - hr = E_ACCESSDENIED; - SpoutLogError("spoutGL::UnLockInteropObject - ERROR_NOT_LOCKED"); - break; - case ERROR_INVALID_DATA: - SpoutLogError("spoutGL::UnLockInteropObject - ERROR_INVALID_DATA"); - hr = E_ABORT; - break; - case ERROR_LOCK_FAILED: - hr = E_ABORT; - SpoutLogError("spoutGL::UnLockInteropObject - ERROR_LOCK_FAILED"); - break; - default: - hr = E_FAIL; - SpoutLogError("spoutGL::UnLockInteropObject - UNKNOWN_ERROR"); - break; - } // end switch - } // end fail - - return hr; - -} // end UnlockInteropObject - - -// Clean up the gldx interop -void spoutGL::CleanupInterop() -{ - // Release OpenGL objects etc. even if DirectX has been released - if (!m_hInteropDevice && !m_hInteropObject) - return; - - // These things need an opengl context so check - if (wglGetCurrentContext()) { - SpoutLogNotice("spoutGL::CleanupInterop"); - if (m_hInteropDevice && m_hInteropObject) { - if (!wglDXUnregisterObjectNV(m_hInteropDevice, m_hInteropObject)) { - SpoutLogWarning("spoutGL::CleanupInterop - could not un-register interop"); - } - m_hInteropObject = nullptr; - } - - if (m_hInteropDevice) { - if (!wglDXCloseDeviceNV(m_hInteropDevice)) { - SpoutLogWarning("spoutGL::CleanupInterop - could not close interop"); - } - m_hInteropDevice = nullptr; - } - } -} - -//--------------------------------------------------------- -void spoutGL::CleanupGL() -{ - if (m_fbo > 0) { - // Delete the fbo before the texture so that any texture attachment - // is released even though it should have been - glDeleteFramebuffersEXT(1, &m_fbo); - m_fbo = 0; - } - - if (m_glTexture > 0) - glDeleteTextures(1, &m_glTexture); - - if (m_TexID > 0) - glDeleteTextures(1, &m_TexID); - - if (m_pbo[0] > 0) { - glDeleteBuffersEXT(m_nBuffers, m_pbo); - m_pbo[0] = m_pbo[1] = m_pbo[2] = m_pbo[3] = 0; - } - - if (m_pSharedTexture) - m_pSharedTexture->Release(); - - m_pStaging[0] = nullptr; - m_pStaging[1] = nullptr; - m_Index = 0; - m_NextIndex = 0; - m_pSharedTexture = nullptr; - m_dxShareHandle = nullptr; - - m_Width = 0; - m_Height = 0; - m_SenderName[0] = 0; - m_bInitialized = false; - - CleanupInterop(); - - // do not close DirectX - -} - -// If a class OpenGL texture has not been created or it is a different size, create a new one -// Typically used for texture copy and invert -void spoutGL::CheckOpenGLTexture(GLuint &texID, GLenum GLformat, unsigned int width, unsigned int height) -{ - if (texID == 0 || texID != m_TexID || GLformat != m_TexFormat || width != m_TexWidth || height != m_TexHeight) { - InitTexture(texID, GLformat, width, height); - m_TexID = texID; - m_TexWidth = width; - m_TexHeight = height; - m_TexFormat = (DWORD)GLformat; - } -} - -// Initialize OpenGL texture -void spoutGL::InitTexture(GLuint &texID, GLenum GLformat, unsigned int width, unsigned int height) -{ - if (texID != 0) glDeleteTextures(1, &texID); - glGenTextures(1, &texID); - - glBindTexture(GL_TEXTURE_2D, texID); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, width, height, 0, GLformat, GL_UNSIGNED_BYTE, NULL); - glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); - glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - glBindTexture(GL_TEXTURE_2D, 0); - -} - - -// -// COPY AN OPENGL TEXTURE TO THE SHARED OPENGL TEXTURE -// -// Allows for a texture attached to the host fbo -// Where the input texture can be larger than the shared texture -// and Width and height are the used portion. Only the used part is copied. -// For example Freeframe textures. -// -bool spoutGL::WriteGLDXtexture(GLuint TextureID, GLuint TextureTarget, - unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO) -{ - // Only for GL/DX interop mode - if (!m_hInteropDevice || !m_hInteropObject) - return false; - - // Specify greater here because the width/height passed can be smaller - if (width > m_Width || height > m_Height) - return false; - - // Create an fbo if not already - if (m_fbo == 0) - glGenFramebuffersEXT(1, &m_fbo); - - // Wait for access to the shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - // lock dx interop object - if (LockInteropObject(m_hInteropDevice, &m_hInteropObject) == S_OK) { - // Write to the shared texture - if (SetSharedTextureData(TextureID, TextureTarget, width, height, bInvert, HostFBO)) { - // Increment the sender frame counter for successful write - frame.SetNewFrame(); - } - // unlock dx object - UnlockInteropObject(m_hInteropDevice, &m_hInteropObject); - } - // Release mutex and allow access to the texture - frame.AllowTextureAccess(m_pSharedTexture); - } - - return true; - -} // end WriteGLDXTexture - - -bool spoutGL::ReadGLDXtexture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO) -{ - // No interop, no copy - if (!m_hInteropDevice || !m_hInteropObject) { - return false; - } - - // width and height must be the same as the shared texture - // m_TextureInfo is established in CreateDX11interop - if (width != m_Width || height != m_Height) { - return false; - } - - bool bRet = true; // Error only if texture read fails - - // Wait for access to the shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - - // Read the shared texture if the sender has produced a new frame - // GetNewFrame updates sender frame count and fps - if (frame.GetNewFrame()) { - // No texture read for zero texture - allowed for by ReceiveTexture - if (TextureID > 0 && TextureTarget > 0) { - if (LockInteropObject(m_hInteropDevice, &m_hInteropObject) == S_OK) { - bRet = GetSharedTextureData(TextureID, TextureTarget, width, height, bInvert, HostFBO); - UnlockInteropObject(m_hInteropDevice, &m_hInteropObject); - } - } - } - - // Release mutex and allow access to the texture - frame.AllowTextureAccess(m_pSharedTexture); - } - - return bRet; - -} // end ReadGLDXTexture - - -bool spoutGL::SetSharedTextureData(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO) -{ - GLenum status = 0; - bool bRet = false; - - // "TextureID" can be NULL if it is attached to the host fbo - // m_fbo is a local FBO - // "m_glTexture" is destination texture - // width/height are the dimensions of the destination texture - // Because two fbos are used, the input texture can be larger than the shared texture - // Width and height are the used portion and only the used part is copied - - if (TextureID == 0 && HostFBO > 0 && glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT) == GL_FRAMEBUFFER_COMPLETE_EXT) { - - // Enter with the input texture attached to - // attachment point 0 of the currently bound fbo - // and set for read or read/write - - // Bind our local fbo for draw - glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, m_fbo); - // Draw to the first attachment point - glDrawBuffer(GL_COLOR_ATTACHMENT0_EXT); - // Attach the texture we write into (the shared texture) - glFramebufferTexture2DEXT(GL_DRAW_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, m_glTexture, 0); - // Check fbo for completeness - status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); - if (status == GL_FRAMEBUFFER_COMPLETE_EXT) { - if (m_bBLITavailable) { - if (bInvert) - // copy one texture buffer to the other while flipping upside down - glBlitFramebufferEXT(0, 0, width, height, 0, height, width, 0, GL_COLOR_BUFFER_BIT, GL_NEAREST); - else - // Do not flip during blit - glBlitFramebufferEXT(0, 0, width, height, 0, 0, width, height, GL_COLOR_BUFFER_BIT, GL_NEAREST); - } - else { - // No fbo blit extension - // Copy from the host fbo (input texture attached) - // to the shared texture - glBindTexture(GL_TEXTURE_2D, m_glTexture); - glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, width, height); - glBindTexture(GL_TEXTURE_2D, 0); - } - bRet = true; - } - else { - PrintFBOstatus(status); - bRet = false; - } - // restore the host fbo - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO); - } - else if (TextureID > 0) { - // There is a valid texture passed in. - // Copy the input texture to the destination texture. - // Both textures must be the same size. - bRet = CopyTexture(TextureID, TextureTarget, m_glTexture, GL_TEXTURE_2D, width, height, bInvert, HostFBO); - } - - return bRet; - -} - -// Copy shared texture via fbo blit -bool spoutGL::GetSharedTextureData(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO) -{ - GLenum status = 0; - bool bRet = false; - - // bind the FBO (for both, READ_FRAMEBUFFER_EXT and DRAW_FRAMEBUFFER_EXT) - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, m_fbo); - - // Attach the Input texture (the shared texture) to the color buffer in our frame buffer - note texturetarget - glFramebufferTexture2DEXT(READ_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, m_glTexture, 0); - glReadBuffer(GL_COLOR_ATTACHMENT0_EXT); - - // Attach target texture (the one we write into and return) to second attachment point - glFramebufferTexture2DEXT(DRAW_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT1_EXT, TextureTarget, TextureID, 0); - glDrawBuffer(GL_COLOR_ATTACHMENT1_EXT); - - status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); - if (status == GL_FRAMEBUFFER_COMPLETE_EXT) { - if (m_bBLITavailable) { - // Flip if the user wants that - if (bInvert) { - // copy one texture buffer to the other while flipping upside down - glBlitFramebufferEXT(0, 0, // srcX0, srcY0, - width, height, // srcX1, srcY1 - 0, height, // dstX0, dstY0, - width, 0, // dstX1, dstY1, - GL_COLOR_BUFFER_BIT, GL_LINEAR); - } - else { - // Do not flip during blit - glBlitFramebufferEXT(0, 0, // srcX0, srcY0, - width, height, // srcX1, srcY1 - 0, 0, // dstX0, dstY0, - width, height, // dstX1, dstY1, - GL_COLOR_BUFFER_BIT, GL_LINEAR); - } - } - else { - // No fbo blit extension available - // Copy from the fbo (shared texture attached) to the dest texture - glBindTexture(TextureTarget, TextureID); - glCopyTexSubImage2D(TextureTarget, 0, 0, 0, 0, 0, width, height); - glBindTexture(TextureTarget, 0); - } - bRet = true; - } - else { - PrintFBOstatus(status); - bRet = false; - } - - // restore the previous fbo - default is 0 - glDrawBuffer(GL_COLOR_ATTACHMENT0_EXT); // 04.01.16 - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO); - - return bRet; - -} - - -// -// COPY IMAGE PIXELS TO THE OPENGL SHARED TEXTURE -// -bool spoutGL::WriteGLDXpixels(const unsigned char* pixels, - unsigned int width, unsigned int height, GLenum glFormat, bool bInvert, GLuint HostFBO) -{ - if (width != m_Width || height != m_Height || !pixels) - return false; - - // Use a GL texture so that WriteTexture can be used - GLenum glformat = glFormat; - - // Create or resize a local OpenGL texture - CheckOpenGLTexture(m_TexID, glFormat, width, height); - - // Transfer the pixels to the local texture - glPixelStorei(GL_UNPACK_ALIGNMENT, 1); // In case of RGB pixel data - glBindTexture(GL_TEXTURE_2D, m_TexID); - glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, glformat, GL_UNSIGNED_BYTE, (GLvoid *)pixels); - glBindTexture(GL_TEXTURE_2D, 0); - glPixelStorei(GL_UNPACK_ALIGNMENT, 4); - - // Write the local texture to the shared texture and invert if necessary - WriteGLDXtexture(m_TexID, GL_TEXTURE_2D, width, height, bInvert, HostFBO); - - return true; - -} // end WriteGLDXpixels - - -// -// COPY OPENGL SHARED TEXTURE TO IMAGE PIXELS -// -bool spoutGL::ReadGLDXpixels(unsigned char* pixels, - unsigned int width, unsigned int height, - GLenum glFormat, bool bInvert, GLuint HostFBO) -{ - if (!m_hInteropDevice || !m_hInteropObject) - return false; - - if (width != m_Width || height != m_Height) - return false; - - // GLenum glformat = glFormat; - bool bRet = true; // Error only if pixel read fails - - // retrieve opengl texture data directly to image pixels - - // Wait for access to the shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - // read texture for a new frame - if (frame.GetNewFrame()) { - // lock gl/dx interop object - if (LockInteropObject(m_hInteropDevice, &m_hInteropObject) == S_OK) { - // Set single pixel alignment in case of rgb source - glPixelStorei(GL_PACK_ALIGNMENT, 1); - // Always allow for invert here - only consumes 0.1 msec - // Create or resize a local OpenGL texture - CheckOpenGLTexture(m_TexID, glFormat, width, height); - // Copy the shared texture to the local texture, inverting if necessary - CopyTexture(m_glTexture, GL_TEXTURE_2D, m_TexID, GL_TEXTURE_2D, width, height, bInvert, HostFBO); - // Extract the pixels from the local texture - changing to the user passed format - // Use PBO method for maximum speed, otherwise use DirectX staging texture method - // ReadTextureData using glReadPixels is half the speed of using DX11 texture directly - if (m_bPBOavailable) - bRet = UnloadTexturePixels(m_TexID, GL_TEXTURE_2D, width, height, 0, pixels, glFormat, false, HostFBO); - else - bRet = ReadTextureData(m_TexID, GL_TEXTURE_2D, width, height, 0, pixels, glFormat, false, HostFBO); - // default alignment - glPixelStorei(GL_PACK_ALIGNMENT, 4); - } // interop lock failed - // Unlock interop object - UnlockInteropObject(m_hInteropDevice, &m_hInteropObject); - } // no new frame - // Release mutex and allow access to the texture - frame.AllowTextureAccess(m_pSharedTexture); - } // mutex access failed - - return bRet; - -} // end ReadGLDXpixels - - -// -// Asynchronous Read-back from an OpenGL texture -// -// Adapted from : http://www.songho.ca/opengl/gl_pbo.html -// -bool spoutGL::UnloadTexturePixels(GLuint TextureID, GLuint TextureTarget, - unsigned int width, unsigned int height, unsigned int rowpitch, - unsigned char* data, GLenum glFormat, - bool bInvert, GLuint HostFBO) -{ - void *pboMemory = nullptr; - int channels = 4; // RGBA or RGB - - if (!data) { - return false; - } - - if (glFormat == GL_RGB || glFormat == GL_BGR_EXT) { - channels = 3; - } - - unsigned int pitch = rowpitch; // row pitch passed in - if (rowpitch == 0) - pitch = width * channels; // RGB or RGBA - - if (m_fbo == 0) { - SpoutLogNotice("spoutGL::UnloadTexturePixels - creating FBO"); - glGenFramebuffersEXT(1, &m_fbo); - } - - // Create pbos if not already - if (m_pbo[0] == 0) { - SpoutLogNotice("spoutGL::UnloadTexturePixels - creating PBO"); - glGenBuffersEXT(m_nBuffers, m_pbo); - PboIndex = 0; - NextPboIndex = 0; - } - - PboIndex = (PboIndex + 1) % m_nBuffers; - NextPboIndex = (PboIndex + 1) % m_nBuffers; - - // If Texture ID is zero, the texture is already attached to the Host Fbo - // and we do nothing. If not we need to create an fbo and attach the user texture - if (TextureID > 0) { - // Attach the texture to point 0 - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, m_fbo); - glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, TextureTarget, TextureID, 0); - // Set the target framebuffer to read - glReadBuffer(GL_COLOR_ATTACHMENT0_EXT); - } - else if (HostFBO == 0) { - // If no texture ID, a Host FBO must be provided - // testing only - error log will repeat - return false; - } - - // Bind the PBO - glBindBufferEXT(GL_PIXEL_PACK_BUFFER, m_pbo[PboIndex]); - - // Check it's size - GLint size = 0; - glGetBufferParameterivEXT(GL_PIXEL_PACK_BUFFER, GL_BUFFER_SIZE_EXT, &size); - if (size > 0 && size != (int)(pitch * height) ) { - // All PBOs must be re-created - glBindBufferEXT(GL_PIXEL_PACK_BUFFER, 0); - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO); - glDeleteBuffersEXT(m_nBuffers, m_pbo); - m_pbo[0] = m_pbo[1] = m_pbo[2] = m_pbo[3] = 0; - return false; - } - - // Null existing PBO data to avoid a stall - // This allocates memory for the PBO pitch*height wide - glBufferDataEXT(GL_PIXEL_PACK_BUFFER, pitch*height, 0, GL_STREAM_READ); - - // Read pixels from framebuffer to PBO - glReadPixels() should return immediately. - glPixelStorei(GL_PACK_ROW_LENGTH, pitch/channels); // row length in pixels - glReadPixels(0, 0, width, height, glFormat, GL_UNSIGNED_BYTE, (GLvoid *)0); - glPixelStorei(GL_PACK_ROW_LENGTH, 0); - - // If there is data in the next pbo from the previous call, read it back - glBindBufferEXT(GL_PIXEL_PACK_BUFFER, m_pbo[NextPboIndex]); - - // Map the PBO to process its data by CPU - pboMemory = glMapBufferEXT(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY); - - // glMapBuffer can return NULL when called the first time - // when the next pbo has not been filled with data yet - glGetError(); // remove the last error - - if (pboMemory && data) { - // Update data directly from the mapped buffer (TODO: RGB) - spoutcopy.CopyPixels((const unsigned char*)pboMemory, (unsigned char*)data, pitch/channels, height, glFormat, bInvert); - glUnmapBufferEXT(GL_PIXEL_PACK_BUFFER); - } - // skip the copy rather than return false. - - // Back to conventional pixel operation - glBindBufferEXT(GL_PIXEL_PACK_BUFFER, 0); - - // Restore the previous fbo binding - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO); - - return true; - -} - - -// -// Copy OpenGL to DirectX 11 texture via CPU where the GL/DX interop is not available -// -// GPU read is from OpenGL. -// Use multiple PBOs instead of glReadPixels for best speed. -// -bool spoutGL::WriteDX11texture(GLuint TextureID, GLuint TextureTarget, - unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO) -{ - D3D11_MAPPED_SUBRESOURCE mappedSubResource; - bool bRet = false; - - // Only for DX11 mode - if (!spoutdx.GetDX11Context()) { - return false; - } - - // If a staging texture has not been created or a different size create a new one - // Only one staging texture is required. Buffering read from GPU is done by OpenGL PBO. - if (!CheckStagingTextures(width, height, 1)) - return false; - - // Map the DX11 staging texture and write the sender OpenGL texture pixels to it - if (SUCCEEDED(spoutdx.GetDX11Context()->Map(m_pStaging[0], 0, D3D11_MAP_WRITE, 0, &mappedSubResource))) { - - // Staging texture width is multiples of 16 and pitch can be greater that width*4 - // Copy OpenGL texture pixelsto the staging texture taking account of the destination row pitch - if (m_bPBOavailable) { - bRet = UnloadTexturePixels(TextureID, TextureTarget, - width, height, - mappedSubResource.RowPitch, - (unsigned char *)mappedSubResource.pData, - GL_BGRA_EXT, bInvert, HostFBO); - } - else { - bRet = ReadTextureData(TextureID, TextureTarget, // OpenGL source texture - width, height, // width and height of OpenGL texture - mappedSubResource.RowPitch, // bytes per line of staging texture - (unsigned char *)mappedSubResource.pData, // staging texture pixels - GL_BGRA_EXT, bInvert, HostFBO); - } - - spoutdx.GetDX11Context()->Unmap(m_pStaging[0], 0); - - // The staging texture is updated with the OpenGL texture data - // Write it to the sender's shared texture - WriteTexture(&m_pStaging[0]); - - return true; - - } - - return false; - -} // end WriteDX11texture - -// -// Copy from the shared DX11 texture to an OpenGL texture via CPU staging texture -// GPU write is to OpenGL -// -bool spoutGL::ReadDX11texture(GLuint TextureID, GLuint TextureTarget, - unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO) -{ - D3D11_MAPPED_SUBRESOURCE mappedSubResource; - - // Quit for zero texture - if (TextureID == 0 || TextureTarget == 0) { - return false; - } - - // Only for DX11 mode - if (!spoutdx.GetDX11Context()) - return false; - - // Only one staging texture is required because GPU write is to OpenGL - if (!CheckStagingTextures(width, height, 1)) { - return false; - } - - // Read from from the sender shared texture to a staging texture - if (!ReadTexture(&m_pStaging[0])) { - return false; - } - - // Update the application receiving OpenGL texture from the DX11 staging texture - // Default format is BGRA. Change if the sender is RGBA. - GLenum glFormat = GL_BGRA_EXT; - if (m_dwFormat == 28) glFormat = GL_RGBA; - - // Make sure the GPU is ready to access the staging texture - spoutdx.GetDX11Context()->Flush(); - - // Map the staging texture to access the sender pixels - if (SUCCEEDED(spoutdx.GetDX11Context()->Map(m_pStaging[0], 0, D3D11_MAP_READ, 0, &mappedSubResource))) { - - // TODO : format testing for invert if m_TexID exists - if (bInvert) { - // Create or resize a local OpenGL texture - CheckOpenGLTexture(m_TexID, glFormat, width, height); - // Copy the DX11 pixels to it - glBindTexture(GL_TEXTURE_2D, m_TexID); - } - else { - // Copy the DX11 pixels to the user texture - glBindTexture(TextureTarget, TextureID); - } - - // Allow for the staging texture for row pitch - glPixelStorei(GL_UNPACK_ROW_LENGTH, mappedSubResource.RowPitch / 4); // row length in pixels - - // Get the pixels from the staging texture - glTexSubImage2D(TextureTarget, 0, 0, 0, width, height, - glFormat, GL_UNSIGNED_BYTE, (const GLvoid *)mappedSubResource.pData); - - glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); - - glBindTexture(GL_TEXTURE_2D, 0); - - // Copy the local texture to the user texture and invert as necessary - if(bInvert) - CopyTexture(m_TexID, GL_TEXTURE_2D, TextureID, TextureTarget, width, height, bInvert, HostFBO); - - spoutdx.GetDX11Context()->Unmap(m_pStaging[0], 0); - - return true; - } - - return false; - -} // end ReadDX11texture - - -// Copy OpenGL texture data to a pixel buffer via fbo -bool spoutGL::ReadTextureData(GLuint SourceID, GLuint SourceTarget, - unsigned int width, unsigned int height, unsigned int pitch, - unsigned char* dest, GLenum GLformat, bool bInvert, GLuint HostFBO) -{ - GLenum status; - - // Create or resize a local OpenGL texture - CheckOpenGLTexture(m_TexID, GL_RGBA, width, height); - - // Create a local fbo if not already - if (m_fbo == 0) glGenFramebuffersEXT(1, &m_fbo); - - // If texture ID is zero, assume the source texture is attached - // to the host fbo which is bound for read and write - if (SourceID == 0 && HostFBO > 0) { - // Bind our local fbo for draw only - glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, m_fbo); - // Source texture is already attached to point 0 for read - } - else { - // bind the local fbo for read and write - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, m_fbo); - // Read from attachment point 0 - glReadBuffer(GL_COLOR_ATTACHMENT0_EXT); - // Attach the Source texture to point 0 for read - glFramebufferTexture2DEXT(READ_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, SourceTarget, SourceID, 0); - } - - // Draw to attachment point 1 - glDrawBuffer(GL_COLOR_ATTACHMENT1_EXT); - - // Attach the texture we write into (the local texture) to attachment point 1 - glFramebufferTexture2DEXT(DRAW_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT1_EXT, GL_TEXTURE_2D, m_TexID, 0); - - status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); - if (status == GL_FRAMEBUFFER_COMPLETE_EXT) { - - if (bInvert && m_bBLITavailable) { - - // copy the source texture (0) to the local texture (1) while flipping upside down - glBlitFramebufferEXT(0, 0, width, height, 0, height, width, 0, GL_COLOR_BUFFER_BIT, GL_NEAREST); - // Bind local fbo for read - glBindFramebufferEXT(GL_READ_FRAMEBUFFER_EXT, m_fbo); - // Read from attachment point 1 - glReadBuffer(GL_COLOR_ATTACHMENT1_EXT); - - // Read pixels from it - glPixelStorei(GL_PACK_ROW_LENGTH, pitch / 4); // row length in pixels - glReadPixels(0, 0, width, height, GLformat, GL_UNSIGNED_BYTE, (GLvoid *)dest); - glPixelStorei(GL_PACK_ROW_LENGTH, 0); - - } - else { - - // No invert or no fbo blit extension - // Read from the source texture attachment point 0 - // This will be the local fbo if a texture ID was passed in - - // Pitch is destination line length in bytes. Divide by 4 to get the width in rgba pixels. - glPixelStorei(GL_PACK_ROW_LENGTH, pitch/4); // row length in pixels - glReadPixels(0, 0, width, height, GLformat, GL_UNSIGNED_BYTE, (GLvoid *)dest); - glPixelStorei(GL_PACK_ROW_LENGTH, 0); - - } - } - else { - PrintFBOstatus(status); - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO); - return false; - } - - // restore the previous fbo - default is 0 - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO); - - return true; - -} // end ReadTextureData - -// -// COPY IMAGE PIXELS TO THE SHARED DX11 TEXTURE VIA STAGING TEXTURES -// RGBA/RGB/BGRA/BGR supported -// -// GPU write is to DX11 -// Use staging texture to support RGBA/RGB -// -bool spoutGL::WriteDX11pixels(const unsigned char* pixels, - unsigned int width, unsigned int height, GLenum glFormat, bool bInvert) -{ - if (width != m_Width || height != m_Height || !pixels) - return false; - - // if(!CheckStagingTextures(width, height, 1)) - if (!CheckStagingTextures(width, height, 2)) - return false; - - // 1) pixels (RGBA or RGB) -> staging texture (RGBA) - CPU - // 2) staging texture -> DX11 sender texture (RGBA) CopyResource - GPU - // - // RGBA : - // 6.2 msec @ 3840 x 2160 - // 1.6 msec @ 1920 x 1080 - // RGBA Using UpdateSubresource (pixels > texture) instead of pixels > staging > texture - // 5.8 msec @ 3840 x 2160 - // 1.5 msec @ 1920 x 1080 - // RGB : - // 10 msec @ 3840 x 2160 - // 2.7 msec @ 1920 x 1080 - // - // Access the sender shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - // Map the staging texture and write pixels to it (CPU) - WritePixelData(pixels, m_pStaging[0], width, height, glFormat, bInvert); - // Copy from the staging texture to the sender shared texture (GPU) - spoutdx.GetDX11Context()->CopyResource(m_pSharedTexture, m_pStaging[0]); - spoutdx.GetDX11Context()->Flush(); - frame.SetNewFrame(); - frame.AllowTextureAccess(m_pSharedTexture); - return true; - } - return false; - -} // end WriteDX11pixels - - -// Receive from a sender via DX11 staging textures to an rgba or rgb buffer of variable size -// A new shared texture pointer (m_pSharedTexture) is retrieved if the sender changed -bool spoutGL::ReadDX11pixels(unsigned char * pixels, unsigned int width, unsigned int height, GLenum glFormat, bool bInvert) -{ - if (!CheckStagingTextures(width, height, 2)) - return false; - - // Access the sender shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - // Check if the sender has produced a new frame. - if (frame.GetNewFrame()) { - // Read from the sender GPU texture to CPU pixels via two staging textures - m_Index = (m_Index + 1) % 2; - m_NextIndex = (m_Index + 1) % 2; - // Copy from the sender's shared texture to the first staging texture - spoutdx.GetDX11Context()->CopyResource(m_pStaging[m_Index], m_pSharedTexture); - // Map and read from the second while the first is occupied - ReadPixelData(m_pStaging[m_NextIndex], pixels, m_Width, m_Height, glFormat, bInvert); - } - // Allow access to the shared texture - frame.AllowTextureAccess(m_pSharedTexture); - return true; - } - - return false; - -} - - -// RGBA/RGB/BGRA/BGR supported -bool spoutGL::WritePixelData(const unsigned char* pixels, ID3D11Texture2D* pStagingTexture, - unsigned int width, unsigned int height, GLenum glFormat, bool bInvert) -{ - if (!spoutdx.GetDX11Context() || !pStagingTexture || !pixels) - return false; - - // glFormat = GL_RGB 0x1907 - // glFormat = GL_RGBA 0x1908 - // glFormat = GL_BGR_EXT 0x80E0 - // glFormat = GL_BGRA_EXT 0x80E1 - // - // m_dwFormat = 28 RGBA staging textures - // m_dwFormat = 87 BGRA staging textures - - // Map the resource so we can access the pixels - D3D11_MAPPED_SUBRESOURCE mappedSubResource; - // Make sure all commands are done before mapping the staging texture - spoutdx.GetDX11Context()->Flush(); - // Map waits for GPU access - HRESULT hr = spoutdx.GetDX11Context()->Map(pStagingTexture, 0, D3D11_MAP_READ, 0, &mappedSubResource); - if (SUCCEEDED(hr)) { - // - // Copy from the pixel buffer to the staging texture - // - // The shared texture format is BGRA or RGBA and the staging textures are the same format. - // If the texture format is BGRA and the receiving pixel buffer is RGBA/RGB or vice-versa, - // the data has to be converted from BGRA to RGBA/RGB or RGBA to BGRA/BGR during the pixel copy. - // - if (glFormat == GL_RGBA) { // RGBA pixel buffer - if (m_dwFormat == 28) // RGBA staging textures - spoutcopy.rgba2rgba((const void *)pixels, mappedSubResource.pData, - width, height, width*4, mappedSubResource.RowPitch, bInvert); - else - spoutcopy.rgba2bgra((const void *)pixels, mappedSubResource.pData, - width, height, width*4, mappedSubResource.RowPitch, bInvert); - } - else if (glFormat == GL_BGRA_EXT) { // BGRA pixel buffer - if (m_dwFormat == 28) - spoutcopy.rgba2bgra((const void *)pixels, mappedSubResource.pData, - width, height, width * 4, mappedSubResource.RowPitch, bInvert); - else - spoutcopy.rgba2rgba((const void *)pixels, mappedSubResource.pData, - width, height, width*4, mappedSubResource.RowPitch, bInvert); - } - else if (glFormat == GL_RGB) { // RGB pixel buffer - if (m_dwFormat == 28) - spoutcopy.rgb2rgba((const void *)pixels, mappedSubResource.pData, - width, height, mappedSubResource.RowPitch, bInvert); - else - spoutcopy.rgb2bgra((const void *)pixels, mappedSubResource.pData, - width, height, mappedSubResource.RowPitch, bInvert); - } - else if (glFormat == GL_BGR_EXT) { // BGR pixel buffer - if (m_dwFormat == 28) - spoutcopy.bgr2rgba((const void *)pixels, mappedSubResource.pData, - width, height, mappedSubResource.RowPitch, bInvert); - else - spoutcopy.rgb2rgba((const void *)pixels, mappedSubResource.pData, - width, height, mappedSubResource.RowPitch, bInvert); - } - spoutdx.GetDX11Context()->Unmap(pStagingTexture, 0); - - return true; - - } // endif DX11 map OK - - return false; - -} // end WritePixelData - - -// -// COPY FROM A DX11 STAGING TEXTURE TO A USER RGBA/RGB/BGR PIXEL BUFFER -// -bool spoutGL::ReadPixelData(ID3D11Texture2D* pStagingTexture, unsigned char* pixels, - unsigned int width, unsigned int height, GLenum glFormat, bool bInvert) -{ - if (!spoutdx.GetDX11Context() || !pStagingTexture || !pixels) - return false; - - // glFormat = GL_RGB 0x1907 - // glFormat = GL_RGBA 0x1908 - // glFormat = GL_BGR_EXT 0x80E0 - // glFormat = GL_BGRA_EXT 0x80E1 - // - // m_dwFormat = 28 RGBA staging textures - // m_dwFormat = 87 BGRA staging textures - - // Map the resource so we can access the pixels - D3D11_MAPPED_SUBRESOURCE mappedSubResource; - // Make sure all commands are done before mapping the staging texture - spoutdx.GetDX11Context()->Flush(); - // Map waits for GPU access - HRESULT hr = spoutdx.GetDX11Context()->Map(pStagingTexture, 0, D3D11_MAP_READ, 0, &mappedSubResource); - if (SUCCEEDED(hr)) { - // - // Copy from staging texture to the pixel buffer - // - // The shared texture format is BGRA or RGBA and the staging textures are the same format. - // If the texture format is BGRA and the receiving pixel buffer is RGBA/RGB or vice-versa, - // the data has to be converted from BGRA to RGBA/RGB or RGBA to BGRA/BGR during the pixel copy. - // - if (glFormat == GL_RGBA) { // RGBA pixel buffer - if (m_dwFormat == 28) // RGBA staging textures - spoutcopy.rgba2rgba(mappedSubResource.pData, pixels, width, height, mappedSubResource.RowPitch, bInvert); - else - spoutcopy.rgba2bgra(mappedSubResource.pData, pixels, width, height, mappedSubResource.RowPitch, bInvert); - } - else if (glFormat == GL_BGRA_EXT) { // BGRA pixel buffer - if (m_dwFormat == 28) - spoutcopy.rgba2bgra(mappedSubResource.pData, pixels, width, height, mappedSubResource.RowPitch, bInvert); - else - spoutcopy.rgba2rgba(mappedSubResource.pData, pixels, width, height, mappedSubResource.RowPitch, bInvert); - } - else if (glFormat == GL_RGB) { // RGB pixel buffer - if (m_dwFormat == 28) - spoutcopy.rgba2rgb(mappedSubResource.pData, pixels, m_Width, m_Height, mappedSubResource.RowPitch, bInvert); - else - spoutcopy.rgba2bgr(mappedSubResource.pData, pixels, m_Width, m_Height, mappedSubResource.RowPitch, bInvert); - } - else if (glFormat == GL_BGR_EXT) { // BGR pixel buffer - if (m_dwFormat == 28) - spoutcopy.rgba2bgr(mappedSubResource.pData, pixels, m_Width, m_Height, mappedSubResource.RowPitch, bInvert); - else - spoutcopy.rgba2rgb(mappedSubResource.pData, pixels, m_Width, m_Height, mappedSubResource.RowPitch, bInvert); - } - - spoutdx.GetDX11Context()->Unmap(pStagingTexture, 0); - - return true; - } // endif DX11 map OK - - return false; - -} // end ReadPixelData - - -// Create class staging textures for changed size or if they do not exist yet -// Two are available but only one can be allocated to save memory -// Format is the same as the shared texture - m_dwFormat -bool spoutGL::CheckStagingTextures(unsigned int width, unsigned int height, int nTextures) -{ - if (!spoutdx.GetDX11Device()) { - return false; - } - - D3D11_TEXTURE2D_DESC desc = { 0 }; - - if (m_pStaging[0]) { - - // Get the size to test for change - m_pStaging[0]->GetDesc(&desc); - if (desc.Width != width || desc.Height != height) { - // Staging textures must not be mapped before release - if (m_pStaging[0]) spoutdx.ReleaseDX11Texture(spoutdx.GetDX11Device(), m_pStaging[0]); - if (m_pStaging[1]) spoutdx.ReleaseDX11Texture(spoutdx.GetDX11Device(), m_pStaging[1]); - m_pStaging[0] = nullptr; - m_pStaging[1] = nullptr; - // Drop through to create new textures - } - else { - return true; - } - } - - if (!spoutdx.CreateDX11StagingTexture(spoutdx.GetDX11Device(), width, height, (DXGI_FORMAT)m_dwFormat, &m_pStaging[0])) - return false; - - if (nTextures > 1) { - if (!spoutdx.CreateDX11StagingTexture(spoutdx.GetDX11Device(), width, height, (DXGI_FORMAT)m_dwFormat, &m_pStaging[1])) - return false; - } - - // Update class width and height - m_Width = width; - m_Height = height; - - // Reset staging texture index - m_Index = 0; - m_NextIndex = 0; - - // Also reset PBO index - PboIndex = 0; - NextPboIndex = 0; - - // Did something go wrong somehow - if (!m_pStaging[0]) - return false; - if (nTextures > 1 && !m_pStaging[1]) - return false; - - return true; - -} // end CheckStagingTextures - - -// -// Memoryshare functions - receive only -// - -// -// Read rgba shared memory to texture pixel data -// -bool spoutGL::ReadMemory(const char* sendername, GLuint TexID, GLuint TextureTarget, - unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO) -{ - // Open the sender memory map and close it afterwards for a read, - // so that the receiver does not retain a handle to the shared memory - if (!memoryshare.OpenSenderMemory(sendername)) - return false; - - unsigned char* pBuffer = memoryshare.LockSenderMemory(); - - if (!pBuffer) { - memoryshare.CloseSenderMemory(); - return false; - } - - bool bRet = true; // Error only if pixel read fails - - // Query a new frame and read pixels while the buffer is locked - if (frame.GetNewFrame()) { - if (bInvert) { - // Create or resize a local OpenGL texture - CheckOpenGLTexture(m_TexID, GL_RGBA, width, height); - // Read the memory pixels into it - glBindTexture(GL_TEXTURE_2D, m_TexID); - glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, GL_BGRA_EXT, GL_UNSIGNED_BYTE, (GLvoid *)pBuffer); - glBindTexture(GL_TEXTURE_2D, 0); - // Copy to the user texture, inverting at the same time - bRet = CopyTexture(m_TexID, GL_TEXTURE_2D, TexID, TextureTarget, width, height, true, HostFBO); - } - else { - // No invert - copy memory pixels directly to the user texture - glBindTexture(TextureTarget, TexID); - glTexSubImage2D(TextureTarget, 0, 0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, (GLvoid *)pBuffer); - glBindTexture(TextureTarget, 0); - } - } // No new frame - - memoryshare.UnlockSenderMemory(); - - // Close the memory map handle so the sender can finally close the map - memoryshare.CloseSenderMemory(); - - return bRet; - -} - -// -// Read rgba shared memory to image pixels -// -bool spoutGL::ReadMemoryPixels(const char* sendername, unsigned char* pixels, - unsigned int width, unsigned int height, GLenum glFormat, bool bInvert) -{ - if (!pixels) - return false; - - // Open the sender memory map and close it afterwards for a read, - // so that the receiver does not retain a handle to the shared memory. - if (!memoryshare.OpenSenderMemory(sendername)) { - SpoutLogWarning("spoutGLDXinterop::ReadMemoryPixels - no buffer"); - return false; - } - - unsigned char* pBuffer = memoryshare.LockSenderMemory(); - if (!pBuffer) { - memoryshare.CloseSenderMemory(); - SpoutLogWarning("spoutGLDXinterop::ReadMemoryPixels - no buffer lock"); - return false; - } - - // Query a new frame and read pixels while the buffer is locked - if (frame.GetNewFrame()) { - // Read pixels from shared memory - if (glFormat == GL_RGBA) { - spoutcopy.CopyPixels(pBuffer, pixels, width, height, GL_RGBA, bInvert); - } - } - memoryshare.UnlockSenderMemory(); - // Close the memory map handle so the sender can close the map - memoryshare.CloseSenderMemory(); - - return true; - -} - -//--------------------------------------------------------- -bool spoutGL::SetHostPath(const char *sendername) -{ - SharedTextureInfo info; - if (!sendernames.getSharedInfo(sendername, &info)) { - SpoutLogWarning("spoutGL::SetHostPath(%s) - could not get sender info", sendername); - return false; - } - char exepath[256]; - GetModuleFileNameA(NULL, exepath, sizeof(exepath)); - // Description is defined as wide chars, but the path is stored as byte chars - strcpy_s((char*)info.description, 256, exepath); - if (!sendernames.setSharedInfo(sendername, &info)) { - SpoutLogWarning("spoutGL::SetHostPath(%s) - could not set sender info", sendername); - } - return true; - -} - - -//--------------------------------------------------------- -// CPU mode is "not GL/DX compatible" -// 2.006 senders will typically not have this bit set -// so GL/DX compatibility is assumed -bool spoutGL::SetSenderCPUmode(const char *sendername, bool bCPU) -{ - SharedTextureInfo info; - - if (sendernames.getSharedInfo(sendername, &info)) { - // CPU mode - set top bit of 32 bit partner ID field - // 1000 0000 0000 0000 0000 0000 0000 0000 - if (bCPU) { - info.partnerId = info.partnerId | 0x80000000; // Set bit - m_bSenderCPUmode = true; - } - else { - info.partnerId = info.partnerId & ~0x80000000; // Clear bit default - m_bSenderCPUmode = false; - } - - // Save the info for this sender in the sender shared memory map - sendernames.setSharedInfo(sendername, &info); - return true; - } - return false; - -} - -//--------------------------------------------------------- -bool spoutGL::OpenDirectX11() -{ - SpoutLogNotice("spoutGL::OpenDirectX11"); - return spoutdx.OpenDirectX11(); -} - -//--------------------------------------------------------- -ID3D11Device* spoutGL::GetDX11Device() -{ - return spoutdx.GetDX11Device(); -} - -//--------------------------------------------------------- -ID3D11DeviceContext* spoutGL::GetDX11Context() -{ - return spoutdx.GetDX11Context(); -} - -//--------------------------------------------------------- -void spoutGL::CleanupDirectX() -{ - // DirectX 9 not supported >= 2.007 - CleanupDX11(); -} - -//--------------------------------------------------------- -void spoutGL::CleanupDX11() -{ - if (spoutdx.GetDX11Device()) { - - SpoutLogNotice("spoutGL::CleanupDX11()"); - - // Reference count warnings are in the SpoutDirectX class - - if (m_pSharedTexture) { - SpoutLogNotice(" Releasing shared texture"); - // Release interop link before releasing the texture - if (m_hInteropDevice && m_hInteropObject) - wglDXUnregisterObjectNV(m_hInteropDevice, m_hInteropObject); - spoutdx.ReleaseDX11Texture(spoutdx.GetDX11Device(), m_pSharedTexture); - } - - // Important to set pointer to NULL or it will crash if released again - m_pSharedTexture = nullptr; - - // Re-set shared texture handle - m_dxShareHandle = nullptr; - - // Release staging texture if they have been used - if (m_pStaging[0]) spoutdx.ReleaseDX11Texture(spoutdx.GetDX11Device(), m_pStaging[0]); - if (m_pStaging[1]) spoutdx.ReleaseDX11Texture(spoutdx.GetDX11Device(), m_pStaging[1]); - m_pStaging[0] = nullptr; - m_pStaging[1] = nullptr; - m_Index = 0; - m_NextIndex = 0; - - // 12.11.18 - To avoid memory leak with dynamic objects - // must always be freed, not only on exit. - // Device recreated for a new sender. - // Releases immediate context and device in the SpoutDirectX class - // spoutdx.GetDX11Context() and spoutdx.GetDX11Device() are copies of these - spoutdx.CloseDirectX11(); - } - -} - -// -// Extensions and availability -// - -//--------------------------------------------------------- -bool spoutGL::LoadGLextensions() -{ - // Return silently if already loaded - if (m_caps > 0) - return true; - - m_caps = loadGLextensions(); // in spoutGLextensions - - if (m_caps == 0) { - SpoutLogError("spoutGL::LoadGLextensions failed"); - return false; - } - - m_bFBOavailable = false; - if (m_caps & GLEXT_SUPPORT_FBO) m_bFBOavailable = true; - // FBO not available is terminal - if (!m_bFBOavailable) { - SpoutLogError("spoutGL::LoadGLextensions - no FBO extensions available"); - return false; - } - - m_bGLDXavailable = false; - m_bBLITavailable = false; - m_bSWAPavailable = false; - m_bBGRAavailable = false; - m_bCOPYavailable = false; - m_bCONTEXTavailable = false; - - if (m_caps & GLEXT_SUPPORT_NVINTEROP) m_bGLDXavailable = true; // Interop needed for texture sharing - if (m_caps & GLEXT_SUPPORT_FBO_BLIT) m_bBLITavailable = true; - if (m_caps & GLEXT_SUPPORT_SWAP) m_bSWAPavailable = true; - if (m_caps & GLEXT_SUPPORT_BGRA) m_bBGRAavailable = true; - if (m_caps & GLEXT_SUPPORT_COPY) m_bCOPYavailable = true; - if (m_caps & GLEXT_SUPPORT_CONTEXT) m_bCONTEXTavailable = true; - - // Test PBO availability unless user has selected buffering off - // m_bPBOavailable also set by SetBufferMode() - if (m_bPBOavailable) - if (!(m_caps && GLEXT_SUPPORT_PBO)) m_bPBOavailable = false; - - if (!m_bGLDXavailable) - SpoutLogWarning("spoutGL::LoadGLextensions - interop extensions not available"); - if (!m_bBLITavailable) - SpoutLogWarning("spoutGL::LoadGLextensions - fbo blit extension not available"); - if (!m_bSWAPavailable) - SpoutLogWarning("spoutGL::LoadGLextensions - sync control extensions not available"); - if (!m_bBGRAavailable) - SpoutLogWarning("spoutGL::LoadGLextensions - bgra extension not available"); - if (!m_bCOPYavailable) - SpoutLogWarning("spoutGL::LoadGLextensions - copy extensions not available"); - if (!m_bPBOavailable) - SpoutLogWarning("spoutGL::LoadGLextensions - pbo extensions not available"); - if (!m_bCONTEXTavailable) - SpoutLogWarning("spoutGL::LoadGLextensions - context extension not available"); - m_bExtensionsLoaded = true; - - return true; -} - -//--------------------------------------------------------- -bool spoutGL::IsGLDXavailable() -{ - return m_bGLDXavailable; -} - -//--------------------------------------------------------- -bool spoutGL::IsBLITavailable() -{ - return m_bBLITavailable; -} - -//--------------------------------------------------------- -bool spoutGL::IsSWAPavailable() -{ - return m_bSWAPavailable; -} - -//--------------------------------------------------------- -bool spoutGL::IsBGRAavailable() -{ - return m_bBGRAavailable; -} - -//--------------------------------------------------------- -bool spoutGL::IsCOPYavailable() -{ - return m_bCOPYavailable; -} - -//--------------------------------------------------------- -bool spoutGL::IsPBOavailable() -{ - return m_bPBOavailable; -} - -//--------------------------------------------------------- -bool spoutGL::IsCONTEXTavailable() -{ - return m_bCONTEXTavailable; -} - -// -// Legacy OpenGL functions -// - -#ifdef legacyOpenGL - -//--------------------------------------------------------- -void spoutGL::SaveOpenGLstate(unsigned int width, unsigned int height, bool bFitWindow) -{ - float dim[4]; - float vpScaleX, vpScaleY, vpWidth, vpHeight; - int vpx, vpy; - - // save texture state, client state, etc. - glPushAttrib(GL_ALL_ATTRIB_BITS); - glPushClientAttrib(GL_CLIENT_ALL_ATTRIB_BITS); - - glMatrixMode(GL_TEXTURE); - glPushMatrix(); - glLoadIdentity(); - - glPushAttrib(GL_TRANSFORM_BIT); - - // find the current viewport dimensions in order to scale to the aspect ratio required - glGetFloatv(GL_VIEWPORT, dim); - - // Fit to window - if (bFitWindow) { - // Scale both width and height to the current viewport size - vpScaleX = dim[2] / (float)width; - vpScaleY = dim[3] / (float)height; - vpWidth = (float)width * vpScaleX; - vpHeight = (float)height * vpScaleY; - vpx = vpy = 0; - } - else { - // Preserve aspect ratio of the sender - // and fit to the width or the height - vpWidth = dim[2]; - vpHeight = ((float)height / (float)width)*vpWidth; - if (vpHeight > dim[3]) { - vpHeight = dim[3]; - vpWidth = ((float)width / (float)height)*vpHeight; - } - vpx = (int)(dim[2] - vpWidth) / 2;; - vpy = (int)(dim[3] - vpHeight) / 2; - } - - glViewport((int)vpx, (int)vpy, (int)vpWidth, (int)vpHeight); - - glMatrixMode(GL_PROJECTION); - glPushMatrix(); - glLoadIdentity(); // reset the current matrix back to its default state - glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0f, 1.0f); - - glMatrixMode(GL_MODELVIEW); - glPushMatrix(); - glLoadIdentity(); -} - - -void spoutGL::RestoreOpenGLstate() -{ - glMatrixMode(GL_MODELVIEW); - glPopMatrix(); - - glMatrixMode(GL_PROJECTION); - glPopMatrix(); - - glPopAttrib(); - - glMatrixMode(GL_TEXTURE); - glPopMatrix(); - - glPopClientAttrib(); - glPopAttrib(); - -} - -#endif - -// -// Utility -// - -//--------------------------------------------------------- -// Given a DeviceKey string from a DisplayDevice -// read all the information about the adapter. -// Only used by this class. -bool spoutGL::OpenDeviceKey(const char* key, int maxsize, char* description, char* version) -{ - if (!key) - return false; - - // Extract the subkey from the DeviceKey string - HKEY hRegKey = nullptr; - DWORD dwSize = 0; - DWORD dwKey = 0; - - char output[256]; - strcpy_s(output, 256, key); - char *found = strstr(output, "System"); - if (!found) - return false; - std::string SubKey = found; - - // Convert all slash to double slash using a C++ string function - // to get subkey string required to extract registry information - for (unsigned int i = 0; i < SubKey.length(); i++) { - if (SubKey[i] == '\\') { - SubKey.insert(i, 1, '\\'); - ++i; // Skip inserted char - } - } - - // Open the key to find the adapter details - if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, SubKey.c_str(), NULL, KEY_READ, &hRegKey) == 0) { - dwSize = MAX_PATH; - // Adapter name - if (RegQueryValueExA(hRegKey, "DriverDesc", NULL, &dwKey, (BYTE*)output, &dwSize) == 0) { - strcpy_s(description, (rsize_t)maxsize, output); - } - if (RegQueryValueExA(hRegKey, "DriverVersion", NULL, &dwKey, (BYTE*)output, &dwSize) == 0) { - // Find the last 6 characters of the version string then - // convert to a float and multiply to get decimal in the right place - sprintf_s(output, 256, "%5.2f", atof(output + strlen(output) - 6)*100.0); - strcpy_s(version, (rsize_t)maxsize, output); - } // endif DriverVersion - RegCloseKey(hRegKey); - } // endif RegOpenKey - - return true; -} - -//--------------------------------------------------------- -void spoutGL::trim(char* s) { - char* p = s; - int l = (int)strlen(p); - - while (isspace(p[l - 1])) p[--l] = 0; - while (*p && isspace(*p)) ++p, --l; - - memmove(s, p, (size_t)(l + 1)); -} - -// -// Errors -// - -void spoutGL::PrintFBOstatus(GLenum status) -{ - char tmp[256]; - sprintf_s(tmp, 256, "FBO status error %u (0x%.7X) - ", status, status); - if (status == GL_FRAMEBUFFER_UNSUPPORTED_EXT) - strcat_s(tmp, 256, "GL_FRAMEBUFFER_UNSUPPORTED_EXT"); - else if (status == GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT) - strcat_s(tmp, 256, "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT"); - else if (status == GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT) - strcat_s(tmp, 256, "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT"); - else if (status == GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT) - strcat_s(tmp, 256, "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT - width-height problems?"); - else if (status == GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT) - strcat_s(tmp, 256, "GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT"); - else if (status == GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT) - strcat_s(tmp, 256, "GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT"); - else if (status == GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT) - strcat_s(tmp, 256, "GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT"); - // else if (status == GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT) - // strcat_s(tmp, 256, "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT\n"); - else - strcat_s(tmp, 256, "Unknown Code"); - SpoutLogError("%s", tmp); - GLerror(); -} - -bool spoutGL::GLerror() { - GLenum err = GL_NO_ERROR; - bool bError = false; - while ((err = glGetError()) != GL_NO_ERROR) { - SpoutLogError(" GLerror - OpenGL error = %u (0x%.7X)", err, err); - bError = true; - // gluErrorString needs glu32.lib - // printf("GL error = %d (0x%.7X) %s\n", err, err, gluErrorString(err)); - } - return bError; -} - -// -// Group: User registry settings recorded by "SpoutSettings" -// -// User settings are retrieved in constructor and can be -// set for the application (except max senders which must be global) -// - -//--------------------------------------------------------- -// Function: GetBufferMode -// Get user buffering mode -// -bool spoutGL::GetBufferMode() -{ - return m_bPBOavailable; -} - -//--------------------------------------------------------- -// Function: SetBufferMode -// Set application buffering mode -void spoutGL::SetBufferMode(bool bActive) -{ - if (m_bExtensionsLoaded) { - if (bActive) { - if (m_caps & GLEXT_SUPPORT_PBO) { - m_bPBOavailable = true; - } - } - else { - m_bPBOavailable = false; - } - } - else { - m_bPBOavailable = false; - } -} - -//--------------------------------------------------------- -// Function: GetBuffers -// Get user number of pixel buffers -int spoutGL::GetBuffers() -{ - return m_nBuffers; -} - -//--------------------------------------------------------- -// Function: SetBuffers -// Set application number of pixel buffers -void spoutGL::SetBuffers(int nBuffers) -{ - m_nBuffers = nBuffers; -} - -//--------------------------------------------------------- -// Function: GetMaxSenders -// Get user Maximum senders allowed -int spoutGL::GetMaxSenders() -{ - return sendernames.GetMaxSenders(); -} - -//--------------------------------------------------------- -// Function: SetMaxSenders -// Set user Maximum senders allowed -void spoutGL::SetMaxSenders(int maxSenders) -{ - // Setting must be global for all applications - sendernames.SetMaxSenders(maxSenders); -} - -// -// Group: Retained for 2.006 compatibility -// - -//--------------------------------------------------------- -// Function: GetDX9 -// Get user DX9 mode -bool spoutGL::GetDX9() -{ - DWORD dwDX9 = 0; - ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "DX9", &dwDX9); - return (dwDX9 == 1); -} - -//--------------------------------------------------------- -// Function: SetDX9 -// Set user DX9 mode -bool spoutGL::SetDX9(bool bDX9) -{ - return WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "DX9", (DWORD)bDX9); -} - -//--------------------------------------------------------- -// Function: GetMemoryShareMode -// Get user memory share mode -bool spoutGL::GetMemoryShareMode() -{ - DWORD dwMem = 0; - ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "MemoryShare", &dwMem); - return (dwMem == 1); -} - -//--------------------------------------------------------- -// Function: SetMemoryShareMode -// Set user memory share mode -bool spoutGL::SetMemoryShareMode(bool bMem) -{ - return WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "MemoryShare", (DWORD)bMem); -} - -//--------------------------------------------------------- -// Function: GetCPUmode -// Get user CPU mode -bool spoutGL::GetCPUmode() -{ - DWORD dwCpu = 0; - ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "CPU", &dwCpu); - return (dwCpu == 1); -} - -//--------------------------------------------------------- -// Function: SetCPUmode -// Set user CPU mode -bool spoutGL::SetCPUmode(bool bCPU) -{ - return WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "CPU", (DWORD)bCPU); -} - -// Function: GetShareMode -// Get user share mode -// 0 - texture, 1 - memory, 2 - CPU -int spoutGL::GetShareMode() -{ - DWORD dwMem = 0; - DWORD dwCPU = 0; - ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "MemoryShare", &dwMem); - ReadDwordFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "CPU", &dwCPU); - - if (dwCPU > 0) { - return 2; - } - if (dwMem > 0) { - return 1; - } - - // 0 : Texture share default - return 0; - -} - -//--------------------------------------------------------- -// Function: SetShareMode -// Set user share mode -// 0 - texture, 1 - memory, 2 - CPU -void spoutGL::SetShareMode(int mode) -{ - switch (mode) { - - case 1: // Memory - WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "MemoryShare", 1); - WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "CPU", 0); - break; - case 2: // CPU - WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "MemoryShare", 0); - WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "CPU", 1); - break; - default: // 0 - Texture - WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "MemoryShare", 0); - WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "CPU", 0); - break; - } -} - -// -// Group: Information -// - -//--------------------------------------------------------- -// Function: GetHostPath -// The path of the host that produced the sender -// -// Retrieved from the description string in the sender info memory map -bool spoutGL::GetHostPath(const char* sendername, char* hostpath, int maxchars) -{ - SharedTextureInfo info; - int n; - - if (!sendernames.getSharedInfo(sendername, &info)) { - // Just quit if the key does not exist - SpoutLogWarning("spoutGL::GetHostPath - could not get sender info [%s]", sendername); - return false; - } - - n = maxchars; - if (n > 256) n = 256; // maximum field width in shared memory - - strcpy_s(hostpath, n, (char*)info.description); - - return true; -} - -//--------------------------------------------------------- -// Function: GetVerticalSync -// Vertical sync status -int spoutGL::GetVerticalSync() -{ - // Needs OpenGL context - if (wglGetCurrentContext()) { - // needed for both sender and receiver - if (m_bSWAPavailable) { - return(wglGetSwapIntervalEXT()); - } - } - return 0; -} - -//--------------------------------------------------------- -// Function: SetVerticalSync -// Lock to monitor vertical sync -bool spoutGL::SetVerticalSync(bool bSync) -{ - // wglSwapIntervalEXT specifies the minimum number - // of video frame periods per buffer swap - if (wglGetCurrentContext()) { - if (m_bSWAPavailable) { - if (bSync) { - wglSwapIntervalEXT(1); // lock to monitor vsync - } - else { - // buffer swaps are not synchronized to a video frame. - wglSwapIntervalEXT(0); // unlock from monitor vsync - } - return true; - } - } - return false; -} - -//--------------------------------------------------------- -// Function: GetSpoutVersion -// Get Spout version -int spoutGL::GetSpoutVersion() -{ - // Version number is retrieved from the registry at class initialization - // Integer number 2005, 2006, 2007 etc. - // 0 for earlier than 2.005 - // Set by the Spout installer for 2.005/2.006, or by SpoutSettings - return m_SpoutVersion; -} - -// -// Group: Utilities -// - -//--------------------------------------------------------- -// Function: CopyTexture -// Copy OpenGL texture with optional invert -// Textures must be the same size -bool spoutGL::CopyTexture(GLuint SourceID, GLuint SourceTarget, - GLuint DestID, GLuint DestTarget, unsigned int width, unsigned int height, - bool bInvert, GLuint HostFBO) -{ - GLenum status; - - // Create an fbo if not already - if (m_fbo == 0) - glGenFramebuffersEXT(1, &m_fbo); - - // bind the FBO (for both, READ_FRAMEBUFFER_EXT and DRAW_FRAMEBUFFER_EXT) - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, m_fbo); - - // Attach the Source texture to the color buffer in our frame buffer - glFramebufferTexture2DEXT(READ_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, SourceTarget, SourceID, 0); - glReadBuffer(GL_COLOR_ATTACHMENT0_EXT); - - // Attach destination texture (the texture we write into) to second attachment point - glFramebufferTexture2DEXT(DRAW_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT1_EXT, DestTarget, DestID, 0); - glDrawBuffer(GL_COLOR_ATTACHMENT1_EXT); - - status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); - if (status == GL_FRAMEBUFFER_COMPLETE_EXT) { - - if (m_bBLITavailable) { - if (bInvert) { - // Blit method with checks - 0.75 - 0.85 msec - // copy one texture buffer to the other while flipping upside down - // (OpenGL and DirectX have different texture origins) - glBlitFramebufferEXT(0, 0, // srcX0, srcY0, - width, height, // srcX1, srcY1 - 0, height, // dstX0, dstY0, - width, 0, // dstX1, dstY1, - GL_COLOR_BUFFER_BIT, GL_NEAREST); - } - else { - // Do not flip during blit - glBlitFramebufferEXT(0, 0, // srcX0, srcY0, - width, height, // srcX1, srcY1 - 0, 0, // dstX0, dstY0, - width, height, // dstX1, dstY1, - GL_COLOR_BUFFER_BIT, GL_NEAREST); - } - } - else { - // No fbo blit extension - // Copy from the fbo (source texture attached) to the dest texture - glBindTexture(DestTarget, DestID); - glCopyTexSubImage2D(DestTarget, 0, 0, 0, 0, 0, width, height); - glBindTexture(DestTarget, 0); - } - } - else { - PrintFBOstatus(status); - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO); - return false; - } - - // restore the previous fbo - default is 0 - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO); - - return true; - -} // end CopyTexture - -//--------------------------------------------------------- -// Function: RemovePadding -// Remove line padding from a source image and crerate a destination image without padding -void spoutGL::RemovePadding(const unsigned char *source, unsigned char *dest, - unsigned int width, unsigned int height, unsigned int stride, GLenum glFormat) -{ - spoutcopy.RemovePadding(source, dest, width, height, stride, glFormat); -} - - -// -// Group : DX11 texture copy versions -// -// - https://github.com/DashW/Spout2 -// - -//--------------------------------------------------------- -// Function: ReadTexture -// Copy the sender DirectX shared texture -bool spoutGL::ReadTexture(ID3D11Texture2D** texture) -{ - // Only for DX11 mode - if (!texture || !*texture || !spoutdx.GetDX11Context()) { - return false; - } - - D3D11_TEXTURE2D_DESC desc = { 0 }; - (*texture)->GetDesc(&desc); - if (desc.Width != m_Width || desc.Height != m_Height) { - return false; - } - if (frame.CheckTextureAccess(m_pSharedTexture)) { - // Copy the shared texture if the sender has produced a new frame - if (frame.GetNewFrame()) { - spoutdx.GetDX11Context()->CopyResource(*texture, m_pSharedTexture); - } - // Release mutex and allow access to the texture - frame.AllowTextureAccess(m_pSharedTexture); - } - - return true; - -} // end ReadTexture - -//--------------------------------------------------------- -// Function: WriteTexture -// Copy to the sender DirectX shared texture -bool spoutGL::WriteTexture(ID3D11Texture2D** texture) -{ - // Only for DX11 mode - if (!texture || !spoutdx.GetDX11Context()) { - SpoutLogWarning("spoutGL::WriteTexture(ID3D11Texture2D** texture) failed"); - if (!texture) - SpoutLogWarning(" ID3D11Texture2D** NULL"); - if (!spoutdx.GetDX11Context()) - SpoutLogVerbose(" pImmediateContext NULL"); - return false; - } - - bool bRet = false; - D3D11_TEXTURE2D_DESC desc = { 0 }; - - (*texture)->GetDesc(&desc); - if (desc.Width != m_Width || desc.Height != m_Height) { - SpoutLogWarning("spoutGL::WriteTexture(ID3D11Texture2D** texture) sizes do not match"); - SpoutLogWarning(" texture (%dx%d) : sender (%dx%d)", desc.Width, desc.Height, m_Width, m_Height); - return false; - } - - // Wait for access to the shared texture - if (frame.CheckTextureAccess(m_pSharedTexture)) { - spoutdx.GetDX11Context()->CopyResource(m_pSharedTexture, *texture); - // Flush after update of the shared texture on this device - spoutdx.GetDX11Context()->Flush(); - // Increment the sender frame counter - frame.SetNewFrame(); - // Release mutex and allow access to the texture - frame.AllowTextureAccess(m_pSharedTexture); - bRet = true; - } - - return bRet; -} diff --git a/Plugin/Spout/SpoutGL/SpoutGL.h b/Plugin/Spout/SpoutGL/SpoutGL.h deleted file mode 100644 index e3aea8a..0000000 --- a/Plugin/Spout/SpoutGL/SpoutGL.h +++ /dev/null @@ -1,414 +0,0 @@ -/* - - SpoutGL.h - - Base class for OpenGL SpoutSDK - See also Sender and Receiver wrapper classes. - - Copyright (c) 2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ -#pragma once - -#ifndef __spoutGL__ -#define __spoutGL__ - -// Change the path as required -#include "SpoutCommon.h" // for dll build and utilities -#include "SpoutSenderNames.h" // for sender creation and update -#include "SpoutDirectX.h" // for DX11 shared textures -#include "SpoutFrameCount.h" // for mutex lock and new frame signal -#include "SpoutCopy.h" // for pixel copy -#include "SpoutUtils.h" // Registry utiities -#include "SpoutGLextensions.h" // include last due to redefinition problems with OpenCL - -#include // for _getcwd -#include // for PROCESSENTRY32 -#include // for _tcsicmp - -using namespace spoututils; - -class SPOUT_DLLEXP spoutGL { - - public: - - spoutGL(); - ~spoutGL(); - - // - // OpenGL shared texture access - // - - // Bind OpenGL shared texture - bool BindSharedTexture(); - // Un-bind OpenGL shared texture - bool UnBindSharedTexture(); - // OpenGL shared texture ID - GLuint GetSharedTextureID(); - - // - // Graphics compatibility - // - - // Get auto GPU/CPU share depending on compatibility - bool GetAutoShare(); - // Set auto GPU/CPU share depending on compatibility - void SetAutoShare(bool bAuto = true); - // OpenGL texture share compatibility - bool IsGLDXready(); - - // - // User settings recorded by "SpoutSettings" - // - - // Get user buffering mode - bool GetBufferMode(); - // Set application buffering mode - void SetBufferMode(bool bActive = true); - // Get user number of pixel buffers - int GetBuffers(); - // Set application number of pixel buffers - void SetBuffers(int nBuffers); - // Get user Maximum senders allowed - int GetMaxSenders(); - // Set user Maximum senders allowed - void SetMaxSenders(int maxSenders); - - // - // 2.006 compatibility - // - - // Get user DX9 mode - bool GetDX9(); - // Set user DX9 mode - bool SetDX9(bool bDX9 = true); - // Get user memory share mode - bool GetMemoryShareMode(); - // Set user memory share mode - bool SetMemoryShareMode(bool bMem = true); - // Get user CPU mode - bool GetCPUmode(); - // Set user CPU mode - bool SetCPUmode(bool bCPU); - // Get user share mode - // 0 - texture, 1 - memory, 2 - CPU - int GetShareMode(); - // Set user share mode - // 0 - texture, 1 - memory, 2 - CPU - void SetShareMode(int mode); - - // - // Information - // - - // The path of the host that produced the sender - bool GetHostPath(const char *sendername, char *hostpath, int maxchars); - // Vertical sync status - int GetVerticalSync(); - // Lock to monitor vertical sync - bool SetVerticalSync(bool bSync = true); - // Get Spout version - int GetSpoutVersion(); - - // - // Utility - // - - // Copy OpenGL texture with optional invert - // Textures must be the same size - bool CopyTexture(GLuint SourceID, GLuint SourceTarget, GLuint DestID, GLuint DestTarget, - unsigned int width, unsigned int height, bool bInvert = false, GLuint HostFBO = 0); - // Correct for image stride - void RemovePadding(const unsigned char *source, unsigned char *dest, - unsigned int width, unsigned int height, unsigned int stride, GLenum glFormat = GL_RGBA); - - // DX11 texture read - // o Copy from the shared DX11 texture to a DX11 texture - bool ReadTexture(ID3D11Texture2D** texture); - // DX11 texture write - // o Copy a DX11 texture to the shared DX11 texture - bool WriteTexture(ID3D11Texture2D** texture); - - // Initialize OpenGL and DX11 - // o Load extensions and check for availability and function - // o Open DirectX and check for availability - // o Compatibility test for use or GL/DX interop - // o Optionally re-test compatibility even if already initialized - bool OpenSpout(bool bRetest = false); - // Initialize DirectX - bool OpenDirectX(); - // Set sender DX11 shared texture format - void SetDX11format(DXGI_FORMAT textureformat); - // Close DirectX and free resources - void CloseDirectX(); - // Create an OpenGL window and context for situations where there is none. - // Not used if applications already have an OpenGL context. - // Always call CloseOpenGL afterwards. - bool CreateOpenGL(); - // Close OpenGL window - bool CloseOpenGL(); - // Class initialization status - bool IsSpoutInitialized(); - - // Perform tests for GL/DX interop availability and compatibility - bool GLDXready(); - - - // 2.006 compatibility - bool OpenDirectX11(); - ID3D11Device* GetDX11Device(); - ID3D11DeviceContext* GetDX11Context(); - void CleanupDirectX(); - void CleanupDX11(); - void CleanupInterop(); - - // OpenGL extensions - bool LoadGLextensions(); - bool IsGLDXavailable(); // GL/DX interop extensions supported - bool IsBLITavailable(); // fbo blit extensions available - bool IsSWAPavailable(); // swap extensions available - bool IsBGRAavailable(); // bgra extensions available - bool IsCOPYavailable(); // copy extensions available - bool IsPBOavailable(); // pbo extensions supported - bool IsCONTEXTavailable(); // Context extension supported - - // Legacy OpenGL functions - // See _SpoutCommon.h_ #define legacyOpenGL -#ifdef legacyOpenGL - void SaveOpenGLstate(unsigned int width, unsigned int height, bool bFitWindow = true); - void RestoreOpenGLstate(); -#endif - - - // Public for special use - - // Link a shared DirectX texture to an OpenGL texture - HANDLE LinkGLDXtextures(void* pDXdevice, void* pSharedTexture, HANDLE dxShareHandle, GLuint glTextureID); - // Return a handle to the the DX/GL interop device - HANDLE GetInteropDevice(); - - // For external access - - // DirectX 11 texture sharing - spoutDirectX spoutdx; - // Pixel buffer copying - spoutCopy spoutcopy; - // Spout sender management - spoutSenderNames sendernames; - // Frame counting management - spoutFrameCount frame; - - // - // Memory sharing - receive only - // - // Used if a receiver detects a zero share handle for an existing 2.006 sender. - // Retained for 2.006 compatibility but may be removed for future release. - // - - struct { - - SpoutSharedMemory *senderMem; - unsigned int m_Width; - unsigned int m_Height; - - // Open an existing named shared memory map - bool OpenSenderMemory(const char *sendername) - { - std::string namestring = sendername; - // Create a name for the map from the sender name - namestring += "_map"; - // Create a new shared memory class object for this receiver - if (!senderMem) - senderMem = new SpoutSharedMemory(); - // Open the sender's shared memory map. - // This also creates a mutex for the receiver - // to lock and unlock the map for reads. - if (!senderMem->Open(namestring.c_str())) { - SpoutLogWarning("spoutGL.memoryshare::OpenSenderMemory - open shared memory failed"); - return false; - } - return true; - } // end OpenSenderMemory - - // Close the sender shared memory map - void CloseSenderMemory() - { - if (senderMem) senderMem->Close(); - senderMem = nullptr; - m_Width = 0; - m_Height = 0; - } // end CloseSenderMemory - - // Lock and unlock memory and retrieve buffer pointer - no size checks - unsigned char * LockSenderMemory() - { - if (!senderMem) return nullptr; - char *pBuf = senderMem->Lock(); - if (!pBuf) { - // https://github.com/leadedge/Spout2/issues/15 - // senderMem->Unlock(); - return nullptr; - } - return (unsigned char *)pBuf; - } - - void UnlockSenderMemory() - { - if (!senderMem) return; - senderMem->Unlock(); - } - - } memoryshare; - - -protected : - - // GL/DX functions - bool CreateInterop(unsigned int width, unsigned int height, DWORD dwFormat, bool bReceive); - HRESULT LockInteropObject(HANDLE hDevice, HANDLE *hObject); - HRESULT UnlockInteropObject(HANDLE hDevice, HANDLE *hObject); - void CleanupGL(); // Free OpenGL resources - - // OpenGL texture create - void CheckOpenGLTexture(GLuint &texID, GLenum GLformat, unsigned int width, unsigned int height); - void InitTexture(GLuint &texID, GLenum GLformat, unsigned int width, unsigned int height); - - // OpenGL texture copy - bool WriteGLDXtexture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert = true, GLuint HostFBO = 0); - bool ReadGLDXtexture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert = false, GLuint HostFBO = 0); - bool SetSharedTextureData(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO); - bool GetSharedTextureData(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO); - - // OpenGL pixel copy - bool WriteGLDXpixels(const unsigned char* pixels, unsigned int width, unsigned int height, GLenum glFormat = GL_RGBA, bool bInvert = false, GLuint HostFBO = 0); - bool ReadGLDXpixels(unsigned char* pixels, unsigned int width, unsigned int height, GLenum glFormat = GL_RGBA, bool bInvert = false, GLuint HostFBO = 0); - - // PBOs for OpenGL pixel copy - GLuint m_pbo[4]; - int PboIndex; - int NextPboIndex; - int m_nBuffers; - bool UnloadTexturePixels(GLuint TextureID, GLuint TextureTarget, - unsigned int width, unsigned int height, unsigned int pitch, - unsigned char* data, GLenum glFormat = GL_RGBA, - bool bInvert = false, GLuint HostFBO = 0); - - // OpenGL <-> DX11 - bool WriteDX11texture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO); - bool ReadDX11texture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO); - bool ReadTextureData(GLuint SourceID, GLuint SourceTarget, unsigned int width, unsigned int height, unsigned int pitch, unsigned char* dest, GLenum GLformat, bool bInvert, GLuint HostFBO); - - // Pixels <-> DX11 - bool WriteDX11pixels(const unsigned char* pixels, unsigned int width, unsigned int height, GLenum glFormat = GL_RGBA, bool bInvert = false); - bool ReadDX11pixels(unsigned char * pixels, unsigned int width, unsigned int height, GLenum glFormat = GL_RGBA, bool bInvert = false); - bool WritePixelData(const unsigned char* pixels, ID3D11Texture2D* pStagingTexture, unsigned int width, unsigned int height, GLenum glFormat, bool bInvert); - bool ReadPixelData(ID3D11Texture2D* pStagingTexture, unsigned char* pixels, unsigned int width, unsigned int height, GLenum glFormat, bool bInvert); - - // Staging textures for DX11 CPU copy - ID3D11Texture2D* m_pStaging[2]; - int m_Index; - int m_NextIndex; - bool CheckStagingTextures(unsigned int width, unsigned int height, int nTextures); - - // Shared memory - receive only - bool ReadMemory(const char* sendername, GLuint TexID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert = false, GLuint HostFBO = 0); - bool ReadMemoryPixels(const char* sendername, unsigned char* pixels, unsigned int width, unsigned int height, GLenum glFormat = GL_RGBA, bool bInvert = false); - - // Set host path to sender information - bool SetHostPath(const char *sendername); - // Set GL/DX compatibility to sender information - bool SetSenderCPUmode(const char *sendername, bool bCPU); - - // Utility - bool OpenDeviceKey(const char* key, int maxsize, char* description, char* version); - void trim(char* s); - - // Errors - void PrintFBOstatus(GLenum status); - bool GLerror(); - - // - // Class globals - // - - // Sender/Receiver - char m_SenderName[256]; - char m_SenderNameSetup[256]; - unsigned int m_Width; - unsigned int m_Height; - - // General - GLuint m_fbo; // Fbo used for OpenGL functions - GLuint m_TexID; // Class texture used for invert copy - unsigned int m_TexWidth; - unsigned int m_TexHeight; - DWORD m_TexFormat; - GLuint m_glTexture; // OpenGL shared texture - ID3D11Texture2D* m_pSharedTexture; // DirectX shared texture - HANDLE m_dxShareHandle; // DirectX shared texture handle - DWORD m_dwFormat; // DirectX shared texture format - DXGI_FORMAT m_DX11format; // DirectX 11 texture format - - // GL/DX interop - HANDLE m_hInteropDevice; // Handle to the DX/GL interop device - HANDLE m_hInteropObject; // Handle to the DX/GL interop object (the shared texture) - HWND m_hWnd; // OpenGL window - int m_SpoutVersion; // Spout version - - // For CreateOpenGL and CloseOpenGL - HDC m_hdc = NULL; - HWND m_hwndButton = NULL; - HGLRC m_hRc = NULL; - - // Status flags - bool m_bConnected; - bool m_bNewFrame; - bool m_bUpdated; - bool m_bInitialized; - bool m_bMirror; // Mirror image (used for SpoutCam) - bool m_bSwapRB; // RGB <> BGR (used for SpoutCam) - - // Sharing modes - bool m_bAuto; // Auto share mode - bool m_bUseGLDX; // GL/DX interop compatibility - bool m_bSenderCPUmode; // Sender GL/DX compatibility - - bool m_bSpoutPanelOpened; - bool m_bSpoutPanelActive; - SHELLEXECUTEINFOA m_ShExecInfo; - - // OpenGL extensions - unsigned int m_caps; - bool m_bGLDXavailable; - bool m_bFBOavailable; - bool m_bBLITavailable; - bool m_bPBOavailable; - bool m_bSWAPavailable; - bool m_bBGRAavailable; - bool m_bCOPYavailable; - bool m_bCONTEXTavailable; - bool m_bExtensionsLoaded; - -}; - -#endif diff --git a/Plugin/Spout/SpoutGL/SpoutGLextensions.cpp b/Plugin/Spout/SpoutGL/SpoutGLextensions.cpp deleted file mode 100644 index 1342dee..0000000 --- a/Plugin/Spout/SpoutGL/SpoutGLextensions.cpp +++ /dev/null @@ -1,573 +0,0 @@ -/* -// -// -// spoutGLextensions.cpp -// -// Used for load of openGL extensions with option -// to use Glew or disable dynamic load of specific extensions -// See spoutGLextions.h -// -// 01.09.15 - added MessageBox error warning in LoadGLextensions -// 11.11.15 - removed (unsigned) cast from GetProcAddress in FBO extensions -// 17.03.16 - added bgra extensions to find out if they are supported at compile and runtime -// 28.03.16 - caps is returned instead of fail for interop extensions -// 29.03.16 - Fixed loadInteropExtensions flag test in loadGLextensions -// 12.08.16 - Removed "isExtensionSupported" (https://github.com/leadedge/Spout2/issues/19) -// 13.01.17 - Removed try/catch from wglDXRegisterObjectNV calls -// - Clean up #ifdefs in all functions - return true if FBO of PBO are defined elsewhere -// 27.10.18 - Test for opengl context in loadglextensions -// 21.11.18 - Add copy extensions for future use -// 23.11.18 - Fix test for wglDXCloseDeviceNV in loadInteropExtensions -// 14.09.20 - Add legacyOpenGL define test in "isExtensionSupported" to avoid glGetString -// Thanks to Alexandre Buge (https://github.com/Qlex42) for the notice and fix -// 23.09.20 - Correct isExtensionSupported -// Include SpoutCommon.h for legacyOpenGL -// 11.12.20 - Add glGetBufferParameterivEXT -// - - Copyright (c) 2014-2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -#include "SpoutGLextensions.h" - -#ifndef USE_GLEW - -// GL/DX extensions -PFNWGLDXOPENDEVICENVPROC wglDXOpenDeviceNV = NULL; -PFNWGLDXREGISTEROBJECTNVPROC wglDXRegisterObjectNV = NULL; -PFNWGLDXSETRESOURCESHAREHANDLENVPROC wglDXSetResourceShareHandleNV = NULL; -PFNWGLDXLOCKOBJECTSNVPROC wglDXLockObjectsNV = NULL; -PFNWGLDXUNLOCKOBJECTSNVPROC wglDXUnlockObjectsNV = NULL; -PFNWGLDXCLOSEDEVICENVPROC wglDXCloseDeviceNV = NULL; -PFNWGLDXUNREGISTEROBJECTNVPROC wglDXUnregisterObjectNV = NULL; - -// FBO extensions -#ifdef USE_FBO_EXTENSIONS -glBindFramebufferEXTPROC glBindFramebufferEXT = NULL; -glBindRenderbufferEXTPROC glBindRenderbufferEXT = NULL; -glCheckFramebufferStatusEXTPROC glCheckFramebufferStatusEXT = NULL; -glDeleteFramebuffersEXTPROC glDeleteFramebuffersEXT = NULL; -glDeleteRenderBuffersEXTPROC glDeleteRenderBuffersEXT = NULL; -glFramebufferRenderbufferEXTPROC glFramebufferRenderbufferEXT = NULL; -glFramebufferTexture1DEXTPROC glFramebufferTexture1DEXT = NULL; -glFramebufferTexture2DEXTPROC glFramebufferTexture2DEXT = NULL; -glFramebufferTexture3DEXTPROC glFramebufferTexture3DEXT = NULL; -glGenFramebuffersEXTPROC glGenFramebuffersEXT = NULL; -glGenRenderbuffersEXTPROC glGenRenderbuffersEXT = NULL; -glGenerateMipmapEXTPROC glGenerateMipmapEXT = NULL; -glGetFramebufferAttachmentParameterivEXTPROC glGetFramebufferAttachmentParameterivEXT = NULL; -glGetRenderbufferParameterivEXTPROC glGetRenderbufferParameterivEXT = NULL; -glIsFramebufferEXTPROC glIsFramebufferEXT = NULL; -glIsRenderbufferEXTPROC glIsRenderbufferEXT = NULL; -glRenderbufferStorageEXTPROC glRenderbufferStorageEXT = NULL; -#endif - -// FBO blit extensions -glBlitFramebufferEXTPROC glBlitFramebufferEXT = NULL; - -#ifdef USE_FBO_EXTENSIONS -// OpenGL sync control extensions -PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = NULL; -PFNWGLGETSWAPINTERVALEXTPROC wglGetSwapIntervalEXT = NULL; -#endif - -// PBO extensions -#ifdef USE_PBO_EXTENSIONS -glGenBuffersPROC glGenBuffersEXT = NULL; -glDeleteBuffersPROC glDeleteBuffersEXT = NULL; -glBindBufferPROC glBindBufferEXT = NULL; -glBufferDataPROC glBufferDataEXT = NULL; -glMapBufferPROC glMapBufferEXT = NULL; -glUnmapBufferPROC glUnmapBufferEXT = NULL; -glGetBufferParameterivPROC glGetBufferParameterivEXT = NULL; -#endif - -//------------------- -// Copy extensions -// (for future use) -//------------------- -#ifdef USE_COPY_EXTENSIONS -PFNGLCOPYIMAGESUBDATAPROC glCopyImageSubData = NULL; -#endif - -//--------------------------- -// Context creation extension -//--------------------------- -PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB = NULL; - -#endif - -// -// Load the Nvidia-Extensions dynamically -// -bool loadInteropExtensions() { - -#ifdef USE_GLEW - if(WGLEW_NV_DX_interop) - return true; - else - return false; -#else - - // Here we provide warnings for individual extensions - - wglDXOpenDeviceNV = (PFNWGLDXOPENDEVICENVPROC)wglGetProcAddress("wglDXOpenDeviceNV"); - if(!wglDXOpenDeviceNV) { - SpoutLogWarning("loadInteropExtensions : wglDXOpenDeviceNV NULL"); - return false; - } - wglDXRegisterObjectNV = (PFNWGLDXREGISTEROBJECTNVPROC)wglGetProcAddress("wglDXRegisterObjectNV"); - if(!wglDXRegisterObjectNV) { - SpoutLogWarning("loadInteropExtensions : wglDXRegisterObjectNV NULL"); - return false; - } - wglDXUnregisterObjectNV = (PFNWGLDXUNREGISTEROBJECTNVPROC)wglGetProcAddress("wglDXUnregisterObjectNV"); - if(!wglDXUnregisterObjectNV) { - SpoutLogWarning("loadInteropExtensions : wglDXUnregisterObjectNV NULL"); - return false; - } - wglDXSetResourceShareHandleNV = (PFNWGLDXSETRESOURCESHAREHANDLENVPROC)wglGetProcAddress("wglDXSetResourceShareHandleNV"); - if(!wglDXSetResourceShareHandleNV) { - SpoutLogWarning("loadInteropExtensions : wglDXSetResourceShareHandleNV NULL"); - return false; - } - wglDXLockObjectsNV = (PFNWGLDXLOCKOBJECTSNVPROC)wglGetProcAddress("wglDXLockObjectsNV"); - if(!wglDXLockObjectsNV) { - SpoutLogWarning("loadInteropExtensions : wglDXLockObjectsNV NULL"); - return false; - } - wglDXUnlockObjectsNV = (PFNWGLDXUNLOCKOBJECTSNVPROC)wglGetProcAddress("wglDXUnlockObjectsNV"); - if(!wglDXUnlockObjectsNV) { - SpoutLogWarning("loadInteropExtensions : wglDXUnlockObjectsNV NULL"); - return false; - } - wglDXCloseDeviceNV = (PFNWGLDXCLOSEDEVICENVPROC)wglGetProcAddress("wglDXCloseDeviceNV"); - if(!wglDXCloseDeviceNV) { - SpoutLogWarning("loadInteropExtensions : wglDXCloseDeviceNV NULL"); - return false; - } - - return true; -#endif - -} - -bool loadFBOextensions() { - - // Here we use 'EXT_framebuffer_object' - // But for OpenGL version >= 3, framebuffer objects are core. - // Control this using the "legacyOpenGL" define in SpoutCommon.h - - // Thanks and credit to Menno Vink of Resolume for sharing the POSTFIX code - -#ifdef legacyOpenGL - #define FBO_EXTENSION_POSTFIX "EXT" -#else - #define FBO_EXTENSION_POSTFIX -#endif - -#ifdef USE_FBO_EXTENSIONS - - #ifdef USE_GLEW - if(GLEW_EXT_framebuffer_object) - return true; - else - return false; - #else - - glBindFramebufferEXT = (glBindFramebufferEXTPROC)wglGetProcAddress("glBindFramebuffer" FBO_EXTENSION_POSTFIX); - glBindRenderbufferEXT = (glBindRenderbufferEXTPROC)wglGetProcAddress("glBindRenderbuffer" FBO_EXTENSION_POSTFIX); - glCheckFramebufferStatusEXT = (glCheckFramebufferStatusEXTPROC)wglGetProcAddress("glCheckFramebufferStatus" FBO_EXTENSION_POSTFIX); - glDeleteFramebuffersEXT = (glDeleteFramebuffersEXTPROC)wglGetProcAddress("glDeleteFramebuffers" FBO_EXTENSION_POSTFIX); - glDeleteRenderBuffersEXT = (glDeleteRenderBuffersEXTPROC)wglGetProcAddress("glDeleteRenderbuffers" FBO_EXTENSION_POSTFIX); - glFramebufferRenderbufferEXT = (glFramebufferRenderbufferEXTPROC)wglGetProcAddress("glFramebufferRenderbuffer" FBO_EXTENSION_POSTFIX); - glFramebufferTexture1DEXT = (glFramebufferTexture1DEXTPROC)wglGetProcAddress("glFramebufferTexture1D" FBO_EXTENSION_POSTFIX); - glFramebufferTexture2DEXT = (glFramebufferTexture2DEXTPROC)wglGetProcAddress("glFramebufferTexture2D" FBO_EXTENSION_POSTFIX); - glFramebufferTexture3DEXT = (glFramebufferTexture3DEXTPROC)wglGetProcAddress("glFramebufferTexture3D" FBO_EXTENSION_POSTFIX); - glGenFramebuffersEXT = (glGenFramebuffersEXTPROC)wglGetProcAddress("glGenFramebuffers" FBO_EXTENSION_POSTFIX); - glGenRenderbuffersEXT = (glGenRenderbuffersEXTPROC)wglGetProcAddress("glGenRenderbuffers" FBO_EXTENSION_POSTFIX); - glGenerateMipmapEXT = (glGenerateMipmapEXTPROC)wglGetProcAddress("glGenerateMipmap" FBO_EXTENSION_POSTFIX); - glGetFramebufferAttachmentParameterivEXT = (glGetFramebufferAttachmentParameterivEXTPROC)wglGetProcAddress("glGetFramebufferAttachmentParameteriv" FBO_EXTENSION_POSTFIX); - glGetRenderbufferParameterivEXT = (glGetRenderbufferParameterivEXTPROC)wglGetProcAddress("glGetRenderbufferParameteriv" FBO_EXTENSION_POSTFIX); - glIsFramebufferEXT = (glIsFramebufferEXTPROC)wglGetProcAddress("glIsFramebuffer" FBO_EXTENSION_POSTFIX); - glIsRenderbufferEXT = (glIsRenderbufferEXTPROC)wglGetProcAddress("glIsRenderbuffer" FBO_EXTENSION_POSTFIX); - glRenderbufferStorageEXT = (glRenderbufferStorageEXTPROC)wglGetProcAddress("glRenderbufferStorage" FBO_EXTENSION_POSTFIX); - - if ( glBindFramebufferEXT != NULL && - glBindRenderbufferEXT != NULL && - glCheckFramebufferStatusEXT != NULL && - glDeleteFramebuffersEXT != NULL && - glDeleteRenderBuffersEXT != NULL && - glFramebufferRenderbufferEXT != NULL && - glFramebufferTexture1DEXT != NULL && - glFramebufferTexture2DEXT != NULL && - glFramebufferTexture3DEXT != NULL && - glGenFramebuffersEXT != NULL && - glGenRenderbuffersEXT != NULL && - glGenerateMipmapEXT != NULL && - glGetFramebufferAttachmentParameterivEXT != NULL && - glGetRenderbufferParameterivEXT != NULL && - glIsFramebufferEXT != NULL && - glIsRenderbufferEXT != NULL && - glRenderbufferStorageEXT != NULL) { - return true; - } - else { - return false; - } - #endif -#else - // FBO extensions defined elsewhere - return true; -#endif -} - - -bool loadBLITextension() { - -#ifdef USE_GLEW - if(GLEW_EXT_framebuffer_blit) - return true; - else - return false; -#else - glBlitFramebufferEXT = (glBlitFramebufferEXTPROC) wglGetProcAddress("glBlitFramebufferEXT"); - return glBlitFramebufferEXT!=NULL; -#endif - -} - -bool loadSwapExtensions() -{ - wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)wglGetProcAddress("wglSwapIntervalEXT"); - wglGetSwapIntervalEXT = (PFNWGLGETSWAPINTERVALEXTPROC)wglGetProcAddress("wglGetSwapIntervalEXT"); - if(wglSwapIntervalEXT == NULL || wglGetSwapIntervalEXT == NULL) { - return false; - } - - return true; - -} - - -// =================== PBO support 18.01.14 ================== -bool loadPBOextensions() -{ - -#ifdef USE_PBO_EXTENSIONS - - #ifdef USE_GLEW - if(glGenBuffersARB) - return true; - else - return false; - #else - glGenBuffersEXT = (glGenBuffersPROC)wglGetProcAddress("glGenBuffers"); - glDeleteBuffersEXT = (glDeleteBuffersPROC)wglGetProcAddress("glDeleteBuffers"); - glBindBufferEXT = (glBindBufferPROC)wglGetProcAddress("glBindBuffer"); - glBufferDataEXT = (glBufferDataPROC)wglGetProcAddress("glBufferData"); - glMapBufferEXT = (glMapBufferPROC)wglGetProcAddress("glMapBuffer"); - glUnmapBufferEXT = (glUnmapBufferPROC)wglGetProcAddress("glUnmapBuffer"); - glGetBufferParameterivEXT = (glGetBufferParameterivPROC)wglGetProcAddress("glGetBufferParameteriv"); - - if(glGenBuffersEXT != NULL && glDeleteBuffersEXT != NULL - && glBindBufferEXT != NULL && glBufferDataEXT != NULL - && glMapBufferEXT != NULL && glUnmapBufferEXT != NULL - && glGetBufferParameterivEXT != NULL) { - return true; - } - else { - return false; - } - #endif - -#else - // PBO extensions defined elsewhere - return true; -#endif -} - - - -bool loadCopyExtensions() -{ - -#ifdef USE_COPY_EXTENSIONS - -#ifdef USE_GLEW - if (glCopyImageSubData) - return true; - else - return false; -#else - - // Copy extensions - glCopyImageSubData = (PFNGLCOPYIMAGESUBDATAPROC)wglGetProcAddress("glCopyImageSubData"); - - if (glCopyImageSubData != NULL) { - return true; - } - else { - return false; - } -#endif - -#else - // COPY extensions defined elsewhere - return true; -#endif - -} - - -bool loadContextExtension() -{ - -#ifdef USE_CONTEXT_EXTENSION - - // Return if loadContextExtension() has been called before loading all the extensions - if (wglCreateContextAttribsARB) { - return true; - } - -#ifdef USE_GLEW - if (wglCreateContextAttribsARB) - return true; - else - return false; -#else - - // Context creation extension - wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)wglGetProcAddress("wglCreateContextAttribsARB"); - - if (wglCreateContextAttribsARB != NULL) { - return true; - } - else { - return false; - } -#endif - -#else - // Context creation extension defined elsewhere - return true; -#endif - -} - - -bool InitializeGlew() -{ -#ifdef USE_GLEW - HGLRC glContext; - GLenum glew_error; - - // Opengl context is necessary - glContext = wglGetCurrentContext(); - if(glContext == NULL) { - return false; - } - // - // Note from Glew : GLEW obtains information on the supported extensions from the graphics driver. - // Experimental or pre-release drivers, however, might not report every available extension through - // the standard mechanism, in which case GLEW will report it unsupported. To circumvent this situation, - // the glewExperimental global switch can be turned on by setting it to GL_TRUE before calling glewInit(), - // which ensures that all extensions with valid entry points will be exposed. - // - glewExperimental = GL_TRUE; - glew_error = glewInit(); - if (glew_error != GLEW_OK) { - return false; - } - // - // Glew should have loaded all the extensions and we can check for them - // - // http://glew.sourceforge.net/basic.html - // - return true; -#else - // Glew usage not defined so cannot initialize - return false; -#endif -} - - -// -// Load GL extensions -// -unsigned int loadGLextensions() { - - unsigned int caps = 0; // as per elio glextensions - - // wglGetProcAddress requires an OpenGL rendering context - HGLRC glContext = wglGetCurrentContext(); - if (glContext == NULL) { - spoututils::SpoutLogError("loadGLextensions : no OpenGL context"); - return 0; - } - -#ifdef USE_GLEW - InitializeGlew(); // probably needs failure check -#endif - - // Check for FBO extensions - no use continuing without them - if (loadFBOextensions()) { - caps |= GLEXT_SUPPORT_FBO; - } - else { - spoututils::SpoutLogError("loadGLextensions : loadFBOextensions fail"); - return 0; - } - - // Load other extensions - if(loadBLITextension()) { - caps |= GLEXT_SUPPORT_FBO_BLIT; - } - else { - spoututils::SpoutLogWarning("loadGLextensions : loadBLITextensions fail"); - } - - if(loadSwapExtensions()) { - caps |= GLEXT_SUPPORT_SWAP; - } - else { - spoututils::SpoutLogWarning("loadGLextensions : loadSwapExtensions fail"); - } - - if(loadPBOextensions()) { - caps |= GLEXT_SUPPORT_PBO; - } - else { - spoututils::SpoutLogWarning("loadGLextensions : loadPBOextensions fail"); - } - - if (loadCopyExtensions()) { - caps |= GLEXT_SUPPORT_COPY; - } - else { - spoututils::SpoutLogWarning("loadGLextensions : loadCopyExtensions fail"); - } - - if (loadContextExtension()) { - caps |= GLEXT_SUPPORT_CONTEXT; - } - else { - spoututils::SpoutLogWarning("loadGLextensions : loadContextExtension fail"); - } - - // Load wgl interop extensions - if (loadInteropExtensions()) { - caps |= GLEXT_SUPPORT_NVINTEROP; - } - else { - spoututils::SpoutLogWarning("loadGLextensions : loadInteropExtensions fail"); - } - - // spoututils::SpoutLogNotice("loadGLextensions : extensions loaded successfully"); - - // Find out whether bgra extensions are supported at compile and runtime -#ifdef GL_EXT_bgra - // - // "isExtensionSupported" code yet to be fully tested for - // various compilers, operating systems and environments. - // De-activate this function if you have problems. - // - if (isExtensionSupported("GL_EXT_bgra")) { - caps |= GLEXT_SUPPORT_BGRA; - } -#endif - - return caps; - -} - - -// -// Used to determine support for GL_EXT_bgra extensions -// -bool isExtensionSupported(const char *extension) -{ - if (!extension || *extension == '\0') - return false; - - // Extension names should not have spaces. - if(strchr(extension, ' ')) - return false; - -// glGetString can cause problems for core OpenGL context -#ifdef legacyOpenGL - const char * extensionsstr = (const char *)glGetString(GL_EXTENSIONS); - if (extensionsstr) { - std::string extensions = extensionsstr; - std::size_t found = extensions.find(extension); - if (found != std::string::npos) { - return true; - } - SpoutLogWarning("isExtensionSupported : extension [%s] not found", extension); - return false; - } -#else - // - // glGetstring not supported - // for a core GL context - // - // Code adapted from : https://bitbucket.org/Coin3D/coin/issues/54/support-for-opengl-3x-specifically - // Also : http://www.opengl.org/resources/features/OGLextensions/ - // - int n = 0; - int i = 0; - typedef GLubyte* (APIENTRY * COIN_PFNGLGETSTRINGIPROC)(GLenum enm, GLuint idx); - COIN_PFNGLGETSTRINGIPROC glGetStringi = 0; - glGetStringi = (COIN_PFNGLGETSTRINGIPROC)wglGetProcAddress("glGetStringi"); - if(glGetStringi != NULL) { - glGetIntegerv(GL_NUM_EXTENSIONS, &n); - if(n > 0) { - const char * exc = nullptr; - for (i = 0; i < n; i++) { - exc = (const char *)glGetStringi(GL_EXTENSIONS, (GLuint)i); - if(exc) { - if(strcmp(exc, extension) == 0) - break; - } - } - if(exc && i < n) { - return true; - } - SpoutLogWarning("isExtensionSupported : extension [%s] not found", extension); - return false; - } - else { - SpoutLogWarning("isExtensionSupported : glGetIntegerv(GL_NUM_EXTENSIONS) did not return a value"); - } - } - else { - SpoutLogWarning("isExtensionSupported : glGetStringi not found"); - } -#endif - - SpoutLogNotice("isExtensionSupported : unable to find extension [%s]", extension); - - return false; - -} - diff --git a/Plugin/Spout/SpoutGL/SpoutGLextensions.h b/Plugin/Spout/SpoutGL/SpoutGLextensions.h deleted file mode 100644 index 03b344f..0000000 --- a/Plugin/Spout/SpoutGL/SpoutGLextensions.h +++ /dev/null @@ -1,432 +0,0 @@ -// -// -// spoutGLextensions.h -// -// Used for load of openGL extensions with options to -// use Glew or disable dynamic load of specific extension types -// -// If Glew is used, none of the extensions are loaded dynamically. -// Individual extension types can be disabled if they conflict -// with extensions already managed by particular applications. -// -// NVIDIA GL/DX interop extensions -// Fbo extensions -// Fbo blit extensions -// Pbo extensions -// wglSwapInterval extensions -// -// -// 03.11.14 - added additional defines for framebuffer status checks -// 02.01.15 - added GL_BGR for SpoutCam -// 21.11.18 - added preprocessor define for Jitter externals -// https://github.com/robtherich/Spout2 -// -/* - - Copyright (c) 2014-2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ -#pragma once -#ifndef __spoutGLextensions__ // standard way as well -#define __spoutGLextensions__ - -// -// Header: spoutGLextensions -// -// Used for load of openGL extensions with options to use Glew -// or disable dynamic load of specific extension types. -// If Glew is used, none of the extensions are loaded dynamically. -// Individual extension types can be disabled if they conflict -// with extensions already managed by particular applications. -// -// Refer to source code for documentation. -// - - -// ====================== COMPILE OPTIONS ================================ -// -// set this to use GLEW instead of dynamic load of extensions -// #define USE_GLEW -// set this to use glew32s.lib instead of glew32.lib -// #define GLEW_STATIC - -// If load of FBO extensions conflicts with FFGL or Jitter, disable them here -#ifndef UNDEF_USE_FBO_EXTENSIONS -#define USE_FBO_EXTENSIONS // don't use for jitter -#endif - -// If load of PBO extensions conflicts, disable them here - OK for Jitter -#define USE_PBO_EXTENSIONS - -// If load of COPY extensions conflicts, disable them here -// Only used for testing -#define USE_COPY_EXTENSIONS - -// If load of context creation extension conflicts, disable it here -// Only used for testing -#define USE_CONTEXT_EXTENSION -// ========================================================================== - - -#include -#include // for debug print -#include "SpoutCommon.h" // for legacyOpenGL define -#include "SpoutUtils.h" - -using namespace spoututils; - -#ifdef USE_GLEW - #include - #include // wglew.h and glxew.h, which define the available WGL and GLX extensions -#else - #include - #ifndef USE_FBO_EXTENSIONS - // For Max/Msp Jitter - #include "jit.gl.h" - #define glDeleteFramebuffersEXT (_jit_gl_get_proctable()->DeleteFramebuffersEXT) - #endif -#endif - -#ifndef GL_CLAMP_TO_EDGE -#define GL_CLAMP_TO_EDGE 0x812F -#endif - -#ifndef GL_READ_FRAMEBUFFER_EXT -#define GL_READ_FRAMEBUFFER_EXT 0x8CA8 -#endif - -#ifndef GL_DRAW_FRAMEBUFFER_EXT -#define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9 -#endif - -#ifndef GL_DRAW_FRAMEBUFFER_BINDING_EXT -#define GL_DRAW_FRAMEBUFFER_BINDING_EXT 0x8CA6 -#endif - -#ifndef GL_READ_FRAMEBUFFER_BINDING_EXT -#define GL_READ_FRAMEBUFFER_BINDING_EXT 0x8CAA -#endif - -#ifndef GL_INVALID_FRAMEBUFFER_OPERATION_EXT -#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506 -#endif - - -//------------------------------------ -// EXTENSION SUPPORT FLAGS -//------------------------------------ -#define GLEXT_SUPPORT_NVINTEROP 1 -#define GLEXT_SUPPORT_FBO 2 -#define GLEXT_SUPPORT_FBO_BLIT 4 -#define GLEXT_SUPPORT_PBO 8 -#define GLEXT_SUPPORT_SWAP 16 -#define GLEXT_SUPPORT_BGRA 32 -#define GLEXT_SUPPORT_COPY 64 -#define GLEXT_SUPPORT_CONTEXT 128 - -//----------------------------------------------------- -// GL consts that are needed and aren't present in GL.h -//----------------------------------------------------- -#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 -#define WGL_ACCESS_READ_ONLY_NV 0x0000 -#define WGL_ACCESS_READ_WRITE_NV 0x0001 -#define WGL_ACCESS_WRITE_DISCARD_NV 0x0002 - -#define GL_CLAMP_TO_EDGE 0x812F - -// Other -#ifndef GL_MAJOR_VERSION -#define GL_MAJOR_VERSION 0x821B -#endif -#ifndef GL_MINOR_VERSION -#define GL_MINOR_VERSION 0x821C -#endif -#ifndef GL_NUM_EXTENSIONS -#define GL_NUM_EXTENSIONS 0x821D -#endif -#ifndef GL_CONTEXT_FLAGS // The flags with which the context was created. -#define GL_CONTEXT_FLAGS 0x821E -#endif - -#ifndef GL_CONTEXT_FLAGS -#define GL_CONTEXT_FLAGS 0x821E -#endif -#ifndef GL_CONTEXT_PROFILE_MASK -#define GL_CONTEXT_PROFILE_MASK 0x9126 -#endif - -// TODO clean up -#ifndef GL_CONTEXT_CORE_PROFILE_BIT -#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 -#endif -#ifndef GL_CONTEXT_COMPATIBILITY_PROFILE_BIT -#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 -#endif -#ifndef GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT -#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 -#endif -#ifndef GL_CONTEXT_FLAG_DEBUG_BIT -#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 -#endif -#ifndef GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT -#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004 -#endif -#ifndef GL_CONTEXT_FLAG_NO_ERROR_BIT -#define GL_CONTEXT_FLAG_NO_ERROR_BIT 0x00000008 -#endif - -#ifndef USE_GLEW - -// ---------------------------- -// Memory management extensions -// ---------------------------- -#define GL_GPU_MEM_INFO_TOTAL_AVAILABLE_MEM_NVX 0x9048 -#define GL_GPU_MEM_INFO_CURRENT_AVAILABLE_MEM_NVX 0x9049 - - -//---------------------- -// GL interop extensions -//---------------------- -typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (void* dxDevice); -typedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice); -typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void* dxObject, GLuint name, GLenum type, GLenum access); -typedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject); -typedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (void *dxResource, HANDLE shareHandle); -typedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects); -typedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects); - -extern PFNWGLDXOPENDEVICENVPROC wglDXOpenDeviceNV; -extern PFNWGLDXCLOSEDEVICENVPROC wglDXCloseDeviceNV; -extern PFNWGLDXREGISTEROBJECTNVPROC wglDXRegisterObjectNV; -extern PFNWGLDXUNREGISTEROBJECTNVPROC wglDXUnregisterObjectNV; -extern PFNWGLDXSETRESOURCESHAREHANDLENVPROC wglDXSetResourceShareHandleNV; -extern PFNWGLDXLOCKOBJECTSNVPROC wglDXLockObjectsNV; -extern PFNWGLDXUNLOCKOBJECTSNVPROC wglDXUnlockObjectsNV; - - -//--------------- -// FBO extensions -//--------------- -#ifdef USE_FBO_EXTENSIONS -#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506 -#define GL_FRAMEBUFFER_UNDEFINED_EXT 0x8219 -#define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8 -#define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6 -#define GL_RENDERBUFFER_BINDING_EXT 0x8CA7 -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0 -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4 -#define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5 -#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6 -#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7 -#define GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 0x8CD8 -#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9 -#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA -#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB -#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC -#define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD -#define GL_FRAMEBUFFER_STATUS_ERROR_EXT 0x8CDE -#define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF -#define GL_COLOR_ATTACHMENT0_EXT 0x8CE0 -#define GL_COLOR_ATTACHMENT1_EXT 0x8CE1 -#define GL_COLOR_ATTACHMENT2_EXT 0x8CE2 -#define GL_COLOR_ATTACHMENT3_EXT 0x8CE3 -#define GL_COLOR_ATTACHMENT4_EXT 0x8CE4 -#define GL_COLOR_ATTACHMENT5_EXT 0x8CE5 -#define GL_COLOR_ATTACHMENT6_EXT 0x8CE6 -#define GL_COLOR_ATTACHMENT7_EXT 0x8CE7 -#define GL_COLOR_ATTACHMENT8_EXT 0x8CE8 -#define GL_COLOR_ATTACHMENT9_EXT 0x8CE9 -#define GL_COLOR_ATTACHMENT10_EXT 0x8CEA -#define GL_COLOR_ATTACHMENT11_EXT 0x8CEB -#define GL_COLOR_ATTACHMENT12_EXT 0x8CEC -#define GL_COLOR_ATTACHMENT13_EXT 0x8CED -#define GL_COLOR_ATTACHMENT14_EXT 0x8CEE -#define GL_COLOR_ATTACHMENT15_EXT 0x8CEF -#define GL_DEPTH_ATTACHMENT_EXT 0x8D00 -#define GL_STENCIL_ATTACHMENT_EXT 0x8D20 -#define GL_FRAMEBUFFER_EXT 0x8D40 -#define GL_RENDERBUFFER_EXT 0x8D41 -#define GL_RENDERBUFFER_WIDTH_EXT 0x8D42 -#define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43 -#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44 -#define GL_STENCIL_INDEX_EXT 0x8D45 -#define GL_STENCIL_INDEX1_EXT 0x8D46 -#define GL_STENCIL_INDEX4_EXT 0x8D47 -#define GL_STENCIL_INDEX8_EXT 0x8D48 -#define GL_STENCIL_INDEX16_EXT 0x8D49 -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8 - -typedef void (APIENTRY *glBindFramebufferEXTPROC) (GLenum target, GLuint framebuffer); -typedef void (APIENTRY *glBindRenderbufferEXTPROC) (GLenum target, GLuint renderbuffer); -typedef GLenum (APIENTRY *glCheckFramebufferStatusEXTPROC) (GLenum target); -typedef void (APIENTRY *glDeleteFramebuffersEXTPROC) (GLsizei n, const GLuint* framebuffers); -typedef void (APIENTRY *glDeleteRenderBuffersEXTPROC) (GLsizei n, const GLuint* renderbuffers); -typedef void (APIENTRY *glFramebufferRenderbufferEXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (APIENTRY *glFramebufferTexture1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRY *glFramebufferTexture2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRY *glFramebufferTexture3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -typedef void (APIENTRY *glGenFramebuffersEXTPROC) (GLsizei n, GLuint* framebuffers); -typedef void (APIENTRY *glGenRenderbuffersEXTPROC) (GLsizei n, GLuint* renderbuffers); -typedef void (APIENTRY *glGenerateMipmapEXTPROC) (GLenum target); -typedef void (APIENTRY *glGetFramebufferAttachmentParameterivEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params); -typedef void (APIENTRY *glGetRenderbufferParameterivEXTPROC) (GLenum target, GLenum pname, GLint* params); -typedef GLboolean (APIENTRY *glIsFramebufferEXTPROC) (GLuint framebuffer); -typedef GLboolean (APIENTRY *glIsRenderbufferEXTPROC) (GLuint renderbuffer); -typedef void (APIENTRY *glRenderbufferStorageEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); - -extern glBindFramebufferEXTPROC glBindFramebufferEXT; -extern glBindRenderbufferEXTPROC glBindRenderbufferEXT; -extern glCheckFramebufferStatusEXTPROC glCheckFramebufferStatusEXT; -extern glDeleteFramebuffersEXTPROC glDeleteFramebuffersEXT; -extern glDeleteRenderBuffersEXTPROC glDeleteRenderBuffersEXT; -extern glFramebufferRenderbufferEXTPROC glFramebufferRenderbufferEXT; -extern glFramebufferTexture1DEXTPROC glFramebufferTexture1DEXT; -extern glFramebufferTexture2DEXTPROC glFramebufferTexture2DEXT; -extern glFramebufferTexture3DEXTPROC glFramebufferTexture3DEXT; -extern glGenFramebuffersEXTPROC glGenFramebuffersEXT; -extern glGenRenderbuffersEXTPROC glGenRenderbuffersEXT; -extern glGenerateMipmapEXTPROC glGenerateMipmapEXT; -extern glGetFramebufferAttachmentParameterivEXTPROC glGetFramebufferAttachmentParameterivEXT; -extern glGetRenderbufferParameterivEXTPROC glGetRenderbufferParameterivEXT; -extern glIsFramebufferEXTPROC glIsFramebufferEXT; -extern glIsRenderbufferEXTPROC glIsRenderbufferEXT; -extern glRenderbufferStorageEXTPROC glRenderbufferStorageEXT; -#endif - -//------------------- -// Blit FBO extension -//------------------- -#define READ_FRAMEBUFFER_EXT 0x8CA8 -#define DRAW_FRAMEBUFFER_EXT 0x8CA9 - -typedef void (APIENTRY *glBlitFramebufferEXTPROC) (GLint srcX0,GLint srcY0,GLint srcX1,GLint srcY1,GLint dstX0,GLint dstY0,GLint dstX1,GLint dstY1,GLbitfield mask,GLenum filter); -extern glBlitFramebufferEXTPROC glBlitFramebufferEXT; - -//------------------- -// Blit FBO extension -//------------------- -#define READ_FRAMEBUFFER_EXT 0x8CA8 -#define DRAW_FRAMEBUFFER_EXT 0x8CA9 - -typedef void (APIENTRY *glBlitFramebufferEXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -extern glBlitFramebufferEXTPROC glBlitFramebufferEXT; - -// ------------------------------ -// OpenGL sync control extensions -// ------------------------------ -#ifdef USE_FBO_EXTENSIONS -typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval); -typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void); -extern PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT; -extern PFNWGLGETSWAPINTERVALEXTPROC wglGetSwapIntervalEXT; -#endif - -//---------------- -// PBO extensions -//---------------- -#ifdef USE_PBO_EXTENSIONS -#define GL_PIXEL_PACK_BUFFER 0x88EB -#define GL_PIXEL_UNPACK_BUFFER 0x88EC -#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED -#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF -#define GL_STREAM_DRAW 0x88E0 -#define GL_STREAM_READ 0x88E1 -#define GL_READ_ONLY 0x88B8 -#define GL_WRITE_ONLY 0x88B9 -#define GL_BUFFER_SIZE_EXT 0x8764 - - -// PBO functions -typedef ptrdiff_t GLsizeiptr; -typedef void (APIENTRY *glGenBuffersPROC) (GLsizei n, const GLuint* buffers); -typedef void (APIENTRY *glDeleteBuffersPROC) (GLsizei n, const GLuint* buffers); -typedef void (APIENTRY *glBindBufferPROC) (GLenum target, const GLuint buffer); -typedef void (APIENTRY *glBufferDataPROC) (GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage); -typedef void * (APIENTRY *glMapBufferPROC) (GLenum target, GLenum access); -typedef void (APIENTRY *glUnmapBufferPROC) (GLenum target); -typedef void (APIENTRY *glGetBufferParameterivPROC) (GLenum target, GLenum value, GLint * data); - -extern glGenBuffersPROC glGenBuffersEXT; -extern glDeleteBuffersPROC glDeleteBuffersEXT; -extern glBindBufferPROC glBindBufferEXT; -extern glBufferDataPROC glBufferDataEXT; -extern glMapBufferPROC glMapBufferEXT; -extern glUnmapBufferPROC glUnmapBufferEXT; -extern glGetBufferParameterivPROC glGetBufferParameterivEXT; - -#endif // USE_PBO_EXTENSIONS - -//------------------- -// Copy extensions -//------------------- -#ifdef USE_COPY_EXTENSIONS -typedef void (APIENTRY * PFNGLCOPYIMAGESUBDATAPROC)(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); -extern PFNGLCOPYIMAGESUBDATAPROC glCopyImageSubData; -#endif // USE_COPY_EXTENSIONS - -//--------------------------- -// Context creation extension -//--------------------------- -typedef HGLRC (APIENTRY * PFNWGLCREATECONTEXTATTRIBSARBPROC)(HDC hDC, HGLRC hShareContext, const int *attribList); -extern PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB; - -// Tokens accepted as an attribute name in <*attribList>: -#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 -#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 -#define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093 -#define WGL_CONTEXT_FLAGS_ARB 0x2094 -#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126 - -// Accepted as bits in the attribute value for WGL_CONTEXT_FLAGS in <*attribList>: -#define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001 -#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 - -// Accepted as bits in the attribute value for -// WGL_CONTEXT_PROFILE_MASK_ARB in <*attribList>: -#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 -#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 - -// New errors returned by GetLastError: -#define ERROR_INVALID_VERSION_ARB 0x2095 -#define ERROR_INVALID_PROFILE_ARB 0x2096 - -#endif // end GLEW - -//---------------- -// Local functions -//---------------- -bool InitializeGlew(); -unsigned int loadGLextensions(); -bool loadInteropExtensions(); -bool loadFBOextensions(); -bool loadBLITextension(); -bool loadSwapExtensions(); -bool loadPBOextensions(); -bool loadCopyExtensions(); -bool loadContextExtension(); -bool isExtensionSupported(const char *extension); - -#endif diff --git a/Plugin/Spout/SpoutGL/SpoutReceiver.cpp b/Plugin/Spout/SpoutGL/SpoutReceiver.cpp deleted file mode 100644 index 780c8aa..0000000 --- a/Plugin/Spout/SpoutGL/SpoutReceiver.cpp +++ /dev/null @@ -1,545 +0,0 @@ -// -// SpoutReceiver -// -// ==================================================================================== -// Revisions : -// -// 27-07-14 - CreateReceiver - bUseActive flag instead of null name -// 03.09.14 - Cleanup -// 23.09.14 - return DirectX 11 capability in SetDX9 -// 28.09.14 - Added Host FBO for ReceiveTexture -// 12.10.14 - changed SelectSenderPanel arg to const char -// 23.12.14 - added host fbo arg to ReceiveImage -// 08.02.15 - Changed default texture format for ReceiveImage in header to GL_RGBA -// 29.05.15 - Included SetAdapter for multiple adapters - Franz Hildgen. -// 02.06.15 - Added GetAdapter, GetNumAdapters, GetAdapterName -// 24.08.15 - Added GetHostPath to retrieve the path of the host that produced the sender -// 15.09.15 - Removed SetMemoryShareMode for 2.005 - now done globally by SpoutDirectX.exe -// 10.10.15 - Added transition flag to set invert true for 2.004 rather than default false for 2.005 -// - currently not used - see SpoutSDK.cpp CreateSender -// 14.11.15 - changed functions to "const char *" where required -// 18.11.15 - added CheckReceiver so that DrawSharedTexture can be used by a receiver -// 18.06.16 - Add invert to ReceiveImage -// 17.09.16 - removed CheckSpout2004() from constructor -// 13.01.17 - Add SetCPUmode, GetCPUmode, SetBufferMode, GetBufferMode -// - Add HostFBO arg to DrawSharedTexture -// 15.01.17 - Add GetShareMode, SetShareMode -// 06.06.17 - Add OpenSpout -// 05.11.18 - Add IsSpoutInitialized -// 11.11.18 - Add 2.007 high level application functions -// 13.11.18 - Remove SetCPUmode, GetCPUmode -// 24.11.18 - Remove redundant GetImageSize -// 28.11.18 - Add IsFrameNew -// 11.12.18 - Add utility functions -// 05.01.19 - Make names for 2.007 functions compatible with SpoutLibrary -// 16.01.19 - Initialize class variables -// 16.03.19 - Add IsFrameCountEnabled -// 19.03.19 - Change IsInitialized to IsConnected -// 05.04.19 - Change GetSenderName(index, ..) to GetSender -// Create const char * GetSenderName for receiver class -// 18.09.19 - Remove UseDX9 from GetDX9 to avoid registry change -// - Remove reset of m_SenderNameSetup from SetupReceiver -// - Add connected test to IsUpdated -// - Remove redundant CloseReceiver -// 28.11.19 - Remove SetupReceiver -// Add invert option to ReceiveTextureData and ReceiveImageData -// 13.01.20 - Add null texture option for ReceiveTextureData -// Add ReceiveTextureData option with no args and GetSenderTextureID() -// Updated receiver example -// 18.01.20 - Add CopyTexture. Update receiver example -// 20.01.20 - Changed GetSenderTextureID() to GetSharedTextureID -// 25.01.20 - Remove GetDX9compatible and SetDX9compatible -// 25.01.20 - Change ReceiveTextureData and ReceiveImageData to overloads -// 26.04.20 - Reset the update flag in IsUpdated -// 30.04.20 - Add ReceiveTexture() -// 17.06.20 - Add GetSenderFormat() -// 17.09.20 - Change GetMemoryShare(const char* sendername) to -// GetSenderMemoryShare(const char* sendername) for compatibility with SpoutLibrary -// Add GetSenderAdapter -// 25.09.20 - Remove GetSenderAdapter - not reliable -// 17.10.20 - Change SetDX9format from D3D_FORMAT to DWORD -// -// 27.12.20 - Multiple changes for SpoutGL base class - see SpoutSDK.cpp -// -// ==================================================================================== -// -// Copyright (c) 2014-2021, Lynn Jarvis. All rights reserved. -// -// Redistribution and use in source and binary forms, with or without modification, -// are permitted provided that the following conditions are met: -// -// 1. Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimer. -// -// 2. Redistributions in binary form must reproduce the above copyright notice, -// this list of conditions and the following disclaimer in the documentation -// and/or other materials provided with the distribution. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY -// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// - -#include "SpoutReceiver.h" - -// -// Class: SpoutReceiver -// -// Convenience wrapper class for developing receiver applications. -// -// Insulates the programmer from sender functions. -// -// --- Code -// #include "SpoutReceiver.h" -// --- -// -// The main Spout class can be used but will expose both Sender and Receiver functions -// which cannot be used within the same object. -// A Receiver can still access lower level common functions for example : -// --- Code -// SpoutReceiver receiver; -// receiver.spout.GLDXready(); -// --- -// -// Refer to the Spout class for function documentation. -// - -//--------------------------------------------------------- -SpoutReceiver::SpoutReceiver() -{ - -} - -//--------------------------------------------------------- -SpoutReceiver::~SpoutReceiver() -{ - spout.ReleaseReceiver(); -} - - -//--------------------------------------------------------- -void SpoutReceiver::SetReceiverName(const char * SenderName) -{ - spout.SetReceiverName(SenderName); -} - - -//--------------------------------------------------------- -// Release receiver and resources -// ready to connect to another sender -void SpoutReceiver::ReleaseReceiver() -{ - spout.ReleaseReceiver(); -} - - - -//--------------------------------------------------------- -bool SpoutReceiver::ReceiveTexture() -{ - return spout.ReceiveTexture(0, 0); -} - -//--------------------------------------------------------- -bool SpoutReceiver::ReceiveTexture(GLuint TextureID, GLuint TextureTarget, bool bInvert, GLuint HostFbo) -{ - return spout.ReceiveTexture(TextureID, TextureTarget, bInvert, HostFbo); -} - -//--------------------------------------------------------- -bool SpoutReceiver::ReceiveImage(char* Sendername, unsigned int &width, unsigned int &height, - unsigned char* pixels, GLenum glFormat, bool bInvert, GLuint HostFBO) -{ - return spout.ReceiveImage(Sendername, width, height, pixels, glFormat, bInvert, HostFBO); -} - -//--------------------------------------------------------- -bool SpoutReceiver::IsUpdated() -{ - return spout.IsUpdated(); -} - -//--------------------------------------------------------- -bool SpoutReceiver::IsConnected() -{ - return spout.IsConnected(); -} - -//--------------------------------------------------------- -bool SpoutReceiver::IsFrameNew() -{ - return spout.IsFrameNew(); -} - -//--------------------------------------------------------- -DWORD SpoutReceiver::GetSenderFormat() -{ - return spout.GetSenderFormat(); -} - -//--------------------------------------------------------- -const char * SpoutReceiver::GetSenderName() -{ - return spout.GetSenderName(); -} - -//--------------------------------------------------------- -unsigned int SpoutReceiver::GetSenderWidth() -{ - return spout.GetSenderWidth(); -} - -//--------------------------------------------------------- -unsigned int SpoutReceiver::GetSenderHeight() -{ - return spout.GetSenderHeight(); -} - -//--------------------------------------------------------- -double SpoutReceiver::GetSenderFps() -{ - return spout.GetSenderFps(); -} - -//--------------------------------------------------------- -long SpoutReceiver::GetSenderFrame() -{ - return spout.GetSenderFrame(); -} - -//--------------------------------------------------------- -HANDLE SpoutReceiver::GetSenderHandle() -{ - return spout.GetSenderHandle(); -} - -//--------------------------------------------------------- -bool SpoutReceiver::GetSenderCPUmode() -{ - return spout.GetSenderCPUmode(); -} - -//--------------------------------------------------------- -void SpoutReceiver::SelectSender() -{ - spout.SelectSenderPanel(); -} - - -// -// Frame count -// - -//--------------------------------------------------------- -void SpoutReceiver::SetFrameCount(bool bEnable) -{ - return spout.SetFrameCount(bEnable); -} - -//--------------------------------------------------------- -void SpoutReceiver::DisableFrameCount() -{ - spout.DisableFrameCount(); -} - -//--------------------------------------------------------- -bool SpoutReceiver::IsFrameCountEnabled() -{ - return spout.IsFrameCountEnabled(); -} - -//--------------------------------------------------------- -void SpoutReceiver::HoldFps(int fps) -{ - spout.HoldFps(fps); -} - -//--------------------------------------------------------- -bool SpoutReceiver::GetAutoShare() -{ - return spout.GetAutoShare(); -} - -//--------------------------------------------------------- -void SpoutReceiver::SetAutoShare(bool bAuto) -{ - spout.SetAutoShare(bAuto); -} - -//--------------------------------------------------------- -bool SpoutReceiver::IsGLDXready() -{ - return spout.IsGLDXready(); -} - -// -// Sender names -// - -//--------------------------------------------------------- -int SpoutReceiver::GetSenderCount() -{ - return spout.GetSenderCount(); -} - -//--------------------------------------------------------- -// Get a sender name given an index into the sender names set -bool SpoutReceiver::GetSender(int index, char* sendername, int sendernameMaxSize) -{ - return spout.GetSender(index, sendername, sendernameMaxSize); -} - -//--------------------------------------------------------- -bool SpoutReceiver::GetSenderInfo(const char* sendername, unsigned int &width, unsigned int &height, HANDLE &dxShareHandle, DWORD &dwFormat) -{ - return spout.GetSenderInfo(sendername, width, height, dxShareHandle, dwFormat); -} - -//--------------------------------------------------------- -bool SpoutReceiver::GetActiveSender(char* Sendername) -{ - return spout.GetActiveSender(Sendername); -} - -//--------------------------------------------------------- -bool SpoutReceiver::SetActiveSender(const char* Sendername) -{ - return spout.SetActiveSender(Sendername); -} - -// -// Adapter functions -// - -//--------------------------------------------------------- -int SpoutReceiver::GetNumAdapters() -{ - return spout.GetNumAdapters(); -} - -//--------------------------------------------------------- -bool SpoutReceiver::GetAdapterName(int index, char *adaptername, int maxchars) -{ - return spout.GetAdapterName(index, adaptername, maxchars); -} - -//--------------------------------------------------------- -int SpoutReceiver::GetAdapter() -{ - return spout.GetAdapter(); -} - -//--------------------------------------------------------- -bool SpoutReceiver::SetAdapter(int index) -{ - return spout.SetAdapter(index); -} - -//--------------------------------------------------------- -bool SpoutReceiver::GetAdapterInfo(char *renderdescription, char *displaydescription, int maxchars) -{ - return spout.GetAdapterInfo(renderdescription, displaydescription, maxchars); -} - -//--------------------------------------------------------- -int SpoutReceiver::Adapter() -{ - return spout.Adapter(); -} - -//--------------------------------------------------------- -char * SpoutReceiver::AdapterName() -{ - return spout.AdapterName(); -} - -// -// User settings recorded by "SpoutSettings" -// - -//--------------------------------------------------------- -bool SpoutReceiver::GetBufferMode() -{ - return spout.GetBufferMode(); -} - -//--------------------------------------------------------- -void SpoutReceiver::SetBufferMode(bool bActive) -{ - spout.SetBufferMode(bActive); -} - -//--------------------------------------------------------- -int SpoutReceiver::GetBuffers() -{ - return spout.GetBuffers(); -} - -//--------------------------------------------------------- -void SpoutReceiver::SetBuffers(int nBuffers) -{ - spout.SetBuffers(nBuffers); -} - -//--------------------------------------------------------- -int SpoutReceiver::GetMaxSenders() -{ - return spout.GetMaxSenders(); -} - -//--------------------------------------------------------- -void SpoutReceiver::SetMaxSenders(int maxSenders) -{ - spout.SetMaxSenders(maxSenders); -} - -// -// For 2.006 compatibility -// - -bool SpoutReceiver::GetDX9() -{ - return spout.GetDX9(); -} - -bool SpoutReceiver::SetDX9(bool bDX9) -{ - return spout.SetDX9(bDX9); -} - -bool SpoutReceiver::GetMemoryShareMode() -{ - return spout.GetMemoryShareMode(); -} - -bool SpoutReceiver::SetMemoryShareMode(bool bMem) -{ - return spout.SetMemoryShareMode(bMem); -} - - -bool SpoutReceiver::GetCPUmode() -{ - return spout.GetCPUmode(); -} - -bool SpoutReceiver::SetCPUmode(bool bCPU) -{ - return spout.SetCPUmode(bCPU); -} - -int SpoutReceiver::GetShareMode() -{ - return spout.GetShareMode(); -} - -void SpoutReceiver::SetShareMode(int mode) -{ - spout.SetShareMode(mode); -} - -// -// Information -// - -//--------------------------------------------------------- -bool SpoutReceiver::GetHostPath(const char *sendername, char *hostpath, int maxchars) -{ - return spout.GetHostPath(sendername, hostpath, maxchars); -} - -//--------------------------------------------------------- -int SpoutReceiver::GetVerticalSync() -{ - return spout.GetVerticalSync(); -} - -//--------------------------------------------------------- -bool SpoutReceiver::SetVerticalSync(bool bSync) -{ - return spout.SetVerticalSync(bSync); -} - -//--------------------------------------------------------- -int SpoutReceiver::GetSpoutVersion() -{ - return spout.GetSpoutVersion(); -} - -// -// OpenGL utilities -// - -//--------------------------------------------------------- -bool SpoutReceiver::CreateOpenGL() -{ - return spout.CreateOpenGL(); -} - -//--------------------------------------------------------- -bool SpoutReceiver::CloseOpenGL() -{ - return spout.CloseOpenGL(); -} - -//--------------------------------------------------------- -bool SpoutReceiver::CopyTexture(GLuint SourceID, GLuint SourceTarget, - GLuint DestID, GLuint DestTarget, - unsigned int width, unsigned int height, - bool bInvert, GLuint HostFBO) -{ - return spout.CopyTexture(SourceID, SourceTarget, DestID, DestTarget, - width, height, bInvert, HostFBO); -} - -// -// 2.006 compatibility -// - -//--------------------------------------------------------- -bool SpoutReceiver::CreateReceiver(char* sendername, unsigned int &width, unsigned int &height, bool bUseActive) -{ - return spout.CreateReceiver(sendername, width, height, bUseActive); -} - -//--------------------------------------------------------- -bool SpoutReceiver::CheckReceiver(char* name, unsigned int &width, unsigned int &height, bool &bConnected) -{ - return spout.CheckReceiver(name, width, height, bConnected); -} - -//--------------------------------------------------------- -bool SpoutReceiver::ReceiveTexture(char* name, unsigned int &width, unsigned int &height, - GLuint TextureID, GLuint TextureTarget, bool bInvert, GLuint HostFBO) -{ - return spout.ReceiveTexture(name, width, height, TextureID, TextureTarget, bInvert, HostFBO); -} - -//--------------------------------------------------------- -bool SpoutReceiver::ReceiveImage(unsigned char *pixels, GLenum glFormat, bool bInvert, GLuint HostFbo) -{ - return spout.ReceiveImage(pixels, glFormat, bInvert, HostFbo); -} - -//--------------------------------------------------------- -bool SpoutReceiver::SelectSenderPanel(const char *message) -{ - return spout.SelectSenderPanel(message); -} - - -// Legacy OpenGL Draw function -#ifdef legacyOpenGL - -//--------------------------------------------------------- -bool SpoutReceiver::DrawSharedTexture(float max_x, float max_y, float aspect, bool bInvert, GLuint HostFBO) -{ - return spout.DrawSharedTexture(max_x, max_y, aspect, bInvert, HostFBO); -} -#endif diff --git a/Plugin/Spout/SpoutGL/SpoutReceiver.h b/Plugin/Spout/SpoutGL/SpoutReceiver.h deleted file mode 100644 index 366240a..0000000 --- a/Plugin/Spout/SpoutGL/SpoutReceiver.h +++ /dev/null @@ -1,249 +0,0 @@ -/* - - SpoutReceiver.h - - Copyright (c) 2014-2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ -#pragma once - -#ifndef __SpoutReceiver__ -#define __SpoutReceiver__ - -#include "Spout.h" - -class SPOUT_DLLEXP SpoutReceiver { - - public: - - SpoutReceiver(); - ~SpoutReceiver(); - - // Specify sender for connection - // The application will not connect to any other unless the user selects one - // If that sender closes, the application will wait for the nominated sender to open - // If no name is specified, the receiver will connect to the active sender - void SetReceiverName(const char * sendername); - // Close receiver and release resources ready to connect to another sender - void ReleaseReceiver(); - // Receive shared texture - // Connect to a sender and retrieve texture details ready for access - // (see BindSharedTexture and UnBindSharedTexture) - bool ReceiveTexture(); - // Receive OpenGL texture - // Connect to a sender and inform the application to update - // the receiving texture if it has changed dimensions - // For no change, copy the sender shared texture to the application texture - bool ReceiveTexture(GLuint TextureID, GLuint TextureTarget, bool bInvert = false, GLuint HostFbo = 0); - // Receive image pixels - // Connect to a sender and inform the application to update - // the receiving buffer if it has changed dimensions - // For no change, copy the sender shared texture to the pixel buffer - bool ReceiveImage(unsigned char* pixels, GLenum glFormat = GL_RGBA, bool bInvert = false, GLuint HostFbo = 0); - // Query whether the sender has changed - // Checked at every cycle before receiving data - bool IsUpdated(); - // Query sender connection - // If the sender closes, receiving functions return false, - bool IsConnected(); - // Query received frame status - // The receiving texture or pixel buffer is only refreshed if the sender has produced a new frame - // This can be queried to process texture data only for new frames - bool IsFrameNew(); - // Received sender name - const char * GetSenderName(); - // Received sender width - unsigned int GetSenderWidth(); - // Received sender height - unsigned int GetSenderHeight(); - // Received sender DX11 texture format - DWORD GetSenderFormat(); - // Received sender frame rate - double GetSenderFps(); - // Received sender frame number - long GetSenderFrame(); - // Received sender share handle - HANDLE GetSenderHandle(); - // Received sender sharing mode - bool GetSenderCPUmode(); - // Open sender selection dialog - void SelectSender(); - - // - // Frame count - // - - // Enable or disable frame counting globally - void SetFrameCount(bool bEnable); - // Disable frame counting specifically for this application - void DisableFrameCount(); - // Return frame count status - bool IsFrameCountEnabled(); - // Frame rate control - void HoldFps(int fps); - - // - // Graphics compatibility - // - - // Get auto GPU/CPU share depending on compatibility - bool GetAutoShare(); - // Set auto GPU/CPU share depending on compatibility - void SetAutoShare(bool bAuto = true); - // OpenGL texture share compatibility - bool IsGLDXready(); - - // - // Sender names - // - - // Number of senders - int GetSenderCount(); - // Sender item name - bool GetSender(int index, char* sendername, int MaxSize = 256); - // Sender information - bool GetSenderInfo(const char* sendername, unsigned int &width, unsigned int &height, HANDLE &dxShareHandle, DWORD &dwFormat); - // Current active sender - bool GetActiveSender(char* sendername); - // Set sender as active - bool SetActiveSender(const char* sendername); - - // - // Adapter functions - // - - // The number of graphics adapters in the system - int GetNumAdapters(); - // Get adapter item name - bool GetAdapterName(int index, char *adaptername, int maxchars = 256); - // Get adapter index - int GetAdapter(); - // Set graphics adapter for output - bool SetAdapter(int index = 0); - // Get the current adapter description - bool GetAdapterInfo(char *renderdescription, char *displaydescription, int maxchars); - // Current adapter - int Adapter(); - // Current adapter name - char * AdapterName(); - - // - // User settings recorded by "SpoutSettings" - // - - // Get user buffering mode - bool GetBufferMode(); - // Set application buffering mode - void SetBufferMode(bool bActive = true); - // Get user number of pixel buffers - int GetBuffers(); - // Set application number of pixel buffers - void SetBuffers(int nBuffers); - // Get user Maximum senders allowed - int GetMaxSenders(); - // Set user Maximum senders allowed - void SetMaxSenders(int maxSenders); - - // - // 2.006 compatibility - // - - // Get user DX9 mode - bool GetDX9(); - // Set user DX9 mode - bool SetDX9(bool bDX9 = true); - // Get user memory share mode - bool GetMemoryShareMode(); - // Set user memory share mode - bool SetMemoryShareMode(bool bMem = true); - // Get user CPU mode - bool GetCPUmode(); - // Set user CPU mode - bool SetCPUmode(bool bCPU); - // Get user share mode - // 0 - texture, 1 - memory, 2 - CPU - int GetShareMode(); - // Set user share mode - // 0 - texture, 1 - memory, 2 - CPU - void SetShareMode(int mode); - - // - // Information - // - - // The path of the host that produced the sender - bool GetHostPath(const char *sendername, char *hostpath, int maxchars); - // Vertical sync status - int GetVerticalSync(); - // Lock to monitor vertical sync - bool SetVerticalSync(bool bSync = true); - // Get Spout version - int GetSpoutVersion(); - - // - // OpenGL utilities - // - - // Create an OpenGL window and context for situations where there is none. - // Not used if applications already have an OpenGL context. - // Always call CloseOpenGL afterwards. - bool CreateOpenGL(); - // Close OpenGL window - bool CloseOpenGL(); - // Copy OpenGL texture with optional invert - // Textures must be the same size - bool CopyTexture(GLuint SourceID, GLuint SourceTarget, - GLuint DestID, GLuint DestTarget, - unsigned int width, unsigned int height, - bool bInvert = false, GLuint HostFBO = 0); - - - // - // 2.006 compatibility - // - - // Create receiver connection - bool CreateReceiver(char* Sendername, unsigned int &width, unsigned int &height, bool bUseActive = false); - // Check receiver connection - bool CheckReceiver(char* Sendername, unsigned int &width, unsigned int &height, bool &bConnected); - // Receive OpenGL texture - bool ReceiveTexture(char* Sendername, unsigned int &width, unsigned int &height, GLuint TextureID = 0, GLuint TextureTarget = 0, bool bInvert = false, GLuint HostFBO = 0); - // Receive image pixels - bool ReceiveImage(char* Sendername, unsigned int &width, unsigned int &height, unsigned char* pixels, GLenum glFormat = GL_RGBA, bool bInvert = false, GLuint HostFBO = 0); - // Open dialog for the user to select a sender - // Optional message argument - bool SelectSenderPanel(const char* message = nullptr); - - // Legacy OpenGL Draw function - // See _SpoutCommon.h_ #define legacyOpenGL -#ifdef legacyOpenGL - // Render the shared texture - bool DrawSharedTexture(float max_x = 1.0, float max_y = 1.0, float aspect = 1.0, bool bInvert = true, GLuint HostFBO = 0); -#endif - - // For access to all functions - Spout spout; - -}; - -#endif diff --git a/Plugin/Spout/SpoutGL/SpoutSender.cpp b/Plugin/Spout/SpoutGL/SpoutSender.cpp deleted file mode 100644 index dabeb65..0000000 --- a/Plugin/Spout/SpoutGL/SpoutSender.cpp +++ /dev/null @@ -1,506 +0,0 @@ -// -// SpoutSender -// -// ==================================================================================== -// Revisions : -// 23.09.14 - return DirectX 11 capability in SetDX9 -// 28.09.14 - Added GL format for SendImage -// - Added bAlignment (4 byte alignment) flag for SendImage -// - Added Host FBO for SendTexture, DrawToSharedTexture -// 08.02.15 - Changed default texture format for SendImage in header to GL_RGBA -// 29.05.15 - Included SetAdapter for multiple adapters - Franz Hildgen. -// 02.06.15 - Added GetAdapter, GetNumAdapters, GetAdapterName -// 08.06.15 - Added SelectSenderPanel for user adapter output selection -// 24.08.15 - Added GetHostPath to retrieve the path of the host that produced the sender -// 25.09.15 - Changed SetMemoryShareMode for 2.005 - now will only set true for 2.005 and above -// 09.10.15 - DrawToSharedTexture - invert default false instead of true -// 10.10.15 - Added transition flag to set invert true for 2.004 rather than default false for 2.005 -// - currently not used - see SpoutSDK.cpp CreateSender -// 14.11.15 - changed functions to "const char *" where required -// 17.03.16 - changed to const unsigned char for Sendimage buffer -// 17.09.16 - removed CheckSpout2004() from constructor -// 13.01.17 - Add SetCPUmode, GetCPUmode, SetBufferMode, GetBufferMode -// 15.01.17 - Add GetShareMode, SetShareMode -// 06.06.17 - Add OpenSpout -// 10.06.17 - Add SetFrameReady -// - Changed CreateSender from (const char* sendername) -// to (char* sendername) to return the sender name if changed -// 18.08.18 - Changed CreateSender, InitSender back to const char -// 23.08.18 - Added SendFboTexture -// 05.11.18 - Add IsInitialized -// 11.11.18 - Add high level application functions -// 13.11.18 - Remove CPU mode functions -// 27.11.18 - Add RemovePadding -// 01.12.18 - Add GetFps and GetFrame -// 11.12.18 - Add utility functions -// 14.12.18 - Clean up -// 16.01.19 - Initialize class variables -// 21.01.19 - Add Bind and UnBindSharedTexture -// 26.02.19 - Add IsFrameCountEnabled -// 07.05.19 - Add HoldFps -// 18.06.19 - Change sender Update to include sender name -// 26.06.19 - Changes to Update and spout.UpdateSender -// 13.09.19 - UpdateSender - update class variables for 2.007 methods -// 18.09.19 - Remove UseDX9 from GetDX9 to avoid registry change -// 18.09.19 - Remove redundant 2.007 functions SetupSender and Update -// - Add invert argument to CreateSender -// 15.10.19 - Check zero width and height for SendData functions -// 13.01.20 - Remove send data functions and replace with overloads of 2.006 functions -// 19.01.20 - Remove send data functions entirely to simplify -// - Change SendFboTexture to SendFbo -// 21.01.20 - Remove auto sender update in send functions -// 24.01.20 - Add GetSharedTextureID and CopyTexture for sender as well as receiver -// - Removed SelectSenderPanel -// 25.01.20 - Remove GetDX9compatible and SetDX9compatible -// 28.04.20 - Add GetName() - get sender name -// 19.06.20 - Remove delay argument from ReleaseSender -// - Remove SenderDebug function - retain in SpoutSenderNames -// 06.07.20 - Add SetSenderName and private CheckSender -// 14.07.20 - CheckSender add zero dimension check -// 04.08.20 - Document header file functions -// 17.09.20 - Change GetMemoryShare(const char* sendername) to -// GetSenderMemoryShare(const char* sendername) for compatibility with SpoutLibrary -// 17.10.20 - Change SetDX9format from D3D_FORMAT to DWORD -// 27.12.20 - Multiple changes for SpoutGL base class - see SpoutSDK.cpp -// -// ==================================================================================== -/* - - Copyright (c) 2014-2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ -#include "SpoutSender.h" - -// -// Class: SpoutSender -// -// Convenience wrapper class for developing sender applications. -// -// Insulates the programmer from receiver functions. -// -// --- Code -// #include "SpoutSender.h" -// --- -// -// The main Spout class can be used but will expose both Sender and Receiver functions -// which cannot be used within the same object. -// A Sender can still access lower level common functions for example : -// --- Code -// SpoutSender sender; -// sender.spout.GLDXready(); -// --- -// -// Refer to the Spout class for function documentation. -// - -//--------------------------------------------------------- -SpoutSender::SpoutSender() -{ - -} - -//--------------------------------------------------------- -SpoutSender::~SpoutSender() -{ - ReleaseSender(); -} - -//--------------------------------------------------------- -void SpoutSender::SetSenderName(const char* sendername) -{ - spout.SetSenderName(sendername); -} - -//--------------------------------------------------------- -void SpoutSender::SetSenderFormat(DWORD dwFormat) -{ - spout.SetSenderFormat(dwFormat); -} - -//--------------------------------------------------------- -void SpoutSender::ReleaseSender() -{ - spout.ReleaseSender(); -} - -//--------------------------------------------------------- -bool SpoutSender::SendFbo(GLuint FboID, unsigned int width, unsigned int height, bool bInvert) -{ - return spout.SendFbo(FboID, width, height, bInvert); -} - -//--------------------------------------------------------- -bool SpoutSender::SendTexture(GLuint TextureID, GLuint TextureTarget, - unsigned int width, unsigned int height, bool bInvert, GLuint HostFBO) -{ - return spout.SendTexture(TextureID, TextureTarget, width, height, bInvert, HostFBO); -} - -//--------------------------------------------------------- -bool SpoutSender::SendImage(const unsigned char* pixels, unsigned int width, unsigned int height, GLenum glFormat, bool bInvert, GLuint HostFBO) -{ - return spout.SendImage(pixels, width, height, glFormat, bInvert, HostFBO); -} - -//--------------------------------------------------------- -bool SpoutSender::IsInitialized() -{ - return spout.IsInitialized(); -} - -//--------------------------------------------------------- -const char * SpoutSender::GetName() -{ - return spout.GetName(); -} - -//--------------------------------------------------------- -unsigned int SpoutSender::GetWidth() -{ - return spout.GetWidth(); -} - -//--------------------------------------------------------- -unsigned int SpoutSender::GetHeight() -{ - return spout.GetHeight(); -} - -//--------------------------------------------------------- -double SpoutSender::GetFps() -{ - return spout.GetFps(); -} - -//--------------------------------------------------------- -long SpoutSender::GetFrame() -{ - return spout.GetFrame(); -} - -//--------------------------------------------------------- -HANDLE SpoutSender::GetHandle() -{ - return spout.GetHandle(); -} - -// -// Frame count -// - -//--------------------------------------------------------- -void SpoutSender::SetFrameCount(bool bEnable) -{ - return spout.SetFrameCount(bEnable); -} - -//--------------------------------------------------------- -void SpoutSender::DisableFrameCount() -{ - spout.DisableFrameCount(); -} - -//--------------------------------------------------------- -bool SpoutSender::IsFrameCountEnabled() -{ - return spout.IsFrameCountEnabled(); -} - -//--------------------------------------------------------- -void SpoutSender::HoldFps(int fps) -{ - spout.HoldFps(fps); -} - -// -// Graphics compatibility -// - -//--------------------------------------------------------- -bool SpoutSender::GetAutoShare() -{ - return spout.GetAutoShare(); -} - -//--------------------------------------------------------- -void SpoutSender::SetAutoShare(bool bAuto) -{ - spout.SetAutoShare(bAuto); -} - -//--------------------------------------------------------- -bool SpoutSender::IsGLDXready() -{ - return spout.IsGLDXready(); -} - -// -// Sender names -// - -//--------------------------------------------------------- -int SpoutSender::GetSenderCount() -{ - return spout.GetSenderCount(); -} - -//--------------------------------------------------------- -// Get a sender name given an index into the sender names set -bool SpoutSender::GetSender(int index, char* sendername, int sendernameMaxSize) -{ - return spout.GetSender(index, sendername, sendernameMaxSize); -} - -//--------------------------------------------------------- -bool SpoutSender::GetSenderInfo(const char* sendername, unsigned int &width, unsigned int &height, HANDLE &dxShareHandle, DWORD &dwFormat) -{ - return spout.GetSenderInfo(sendername, width, height, dxShareHandle, dwFormat); -} - -//--------------------------------------------------------- -bool SpoutSender::GetActiveSender(char* Sendername) -{ - return spout.GetActiveSender(Sendername); -} - -//--------------------------------------------------------- -bool SpoutSender::SetActiveSender(const char* Sendername) -{ - return spout.SetActiveSender(Sendername); -} - -// -// Adapter functions -// - -//--------------------------------------------------------- -int SpoutSender::SpoutSender::GetNumAdapters() -{ - return spout.GetNumAdapters(); -} - -//--------------------------------------------------------- -bool SpoutSender::GetAdapterName(int index, char *adaptername, int maxchars) -{ - return spout.GetAdapterName(index, adaptername, maxchars); -} - -//--------------------------------------------------------- -int SpoutSender::GetAdapter() -{ - return spout.GetAdapter(); -} - -//--------------------------------------------------------- -bool SpoutSender::SetAdapter(int index) -{ - return spout.SetAdapter(index); -} - -//--------------------------------------------------------- -bool SpoutSender::GetAdapterInfo(char *renderdescription, char *displaydescription, int maxchars) -{ - return spout.GetAdapterInfo(renderdescription, displaydescription, maxchars); -} - -//--------------------------------------------------------- -int SpoutSender::Adapter() -{ - return spout.Adapter(); -} - -//--------------------------------------------------------- -char * SpoutSender::AdapterName() -{ - return spout.AdapterName(); -} - -// -// User settings recorded by "SpoutSettings" -// - -//--------------------------------------------------------- -bool SpoutSender::GetBufferMode() -{ - return spout.GetBufferMode(); -} - -//--------------------------------------------------------- -void SpoutSender::SetBufferMode(bool bActive) -{ - spout.SetBufferMode(bActive); -} - -//--------------------------------------------------------- -int SpoutSender::GetBuffers() -{ - return spout.GetBuffers(); -} - -//--------------------------------------------------------- -void SpoutSender::SetBuffers(int nBuffers) -{ - spout.SetBuffers(nBuffers); -} - -//--------------------------------------------------------- -int SpoutSender::GetMaxSenders() -{ - return spout.GetMaxSenders(); -} - -//--------------------------------------------------------- -void SpoutSender::SetMaxSenders(int maxSenders) -{ - spout.SetMaxSenders(maxSenders); -} - -// -// For 2.006 compatibility -// - -bool SpoutSender::GetDX9() -{ - return spout.GetDX9(); -} - -bool SpoutSender::SetDX9(bool bDX9) -{ - return spout.SetDX9(bDX9); -} - -bool SpoutSender::GetMemoryShareMode() -{ - return spout.GetMemoryShareMode(); -} - -bool SpoutSender::SetMemoryShareMode(bool bMem) -{ - return spout.SetMemoryShareMode(bMem); -} - - -bool SpoutSender::GetCPUmode() -{ - return spout.GetCPUmode(); -} - -bool SpoutSender::SetCPUmode(bool bCPU) -{ - return spout.SetCPUmode(bCPU); -} - -int SpoutSender::GetShareMode() -{ - return spout.GetShareMode(); -} - -void SpoutSender::SetShareMode(int mode) -{ - spout.SetShareMode(mode); -} - -// -// Information -// - -//--------------------------------------------------------- -bool SpoutSender::GetHostPath(const char *sendername, char *hostpath, int maxchars) -{ - return spout.GetHostPath(sendername, hostpath, maxchars); -} - -//--------------------------------------------------------- -int SpoutSender::GetVerticalSync() -{ - return spout.GetVerticalSync(); -} - -//--------------------------------------------------------- -bool SpoutSender::SetVerticalSync(bool bSync) -{ - return spout.SetVerticalSync(bSync); -} - -//--------------------------------------------------------- -int SpoutSender::GetSpoutVersion() -{ - return spout.GetSpoutVersion(); -} - -// -// OpenGL utilities -// - -//--------------------------------------------------------- -bool SpoutSender::CreateOpenGL() -{ - return spout.CreateOpenGL(); -} - -//--------------------------------------------------------- -bool SpoutSender::CloseOpenGL() -{ - return spout.CloseOpenGL(); -} - -//--------------------------------------------------------- -bool SpoutSender::CopyTexture(GLuint SourceID, GLuint SourceTarget, - GLuint DestID, GLuint DestTarget, - unsigned int width, unsigned int height, - bool bInvert, GLuint HostFBO) -{ - return spout.CopyTexture(SourceID, SourceTarget, DestID, DestTarget, - width, height, bInvert, HostFBO); -} - -// -// 2.006 compatibility -// - -//--------------------------------------------------------- -bool SpoutSender::CreateSender(const char* name, unsigned int width, unsigned int height, DWORD dwFormat) -{ - return spout.CreateSender(name, width, height, dwFormat); -} - -//--------------------------------------------------------- -bool SpoutSender::UpdateSender(const char* name, unsigned int width, unsigned int height) -{ - return spout.UpdateSender(name, width, height); -} - -// Legacy OpenGL DrawTo function -#ifdef legacyOpenGL - -//--------------------------------------------------------- -bool SpoutSender::DrawToSharedTexture(GLuint TextureID, GLuint TextureTarget, - unsigned int width, unsigned int height, - float max_x, float max_y, float aspect, - bool bInvert, GLuint HostFBO) -{ - return spout.DrawToSharedTexture(TextureID, TextureTarget, - width, height, max_x, max_y, aspect, bInvert, HostFBO); - -} -#endif diff --git a/Plugin/Spout/SpoutGL/SpoutSender.h b/Plugin/Spout/SpoutGL/SpoutSender.h deleted file mode 100644 index 5481800..0000000 --- a/Plugin/Spout/SpoutGL/SpoutSender.h +++ /dev/null @@ -1,228 +0,0 @@ -/* - - SpoutSender.h - - Copyright (c) 2014-2021, Lynn Jarvis. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ -#pragma once - -#ifndef __SpoutSender__ -#define __SpoutSender__ - -#include "Spout.h" - -class SPOUT_DLLEXP SpoutSender { - - public: - - SpoutSender(); - ~SpoutSender(); - - // Set name for sender creation - // If no name is specified, the executable name is used. - void SetSenderName(const char* sendername = nullptr); - // Set the sender DX11 shared texture format - void SetSenderFormat(DWORD dwFormat); - // Close sender and free resources - // A sender is created or updated by all sending functions - void ReleaseSender(); - // Send texture attached to fbo. - // The fbo must be currently bound. - // The sending texture can be larger than the size that the sender is set up for. - // For example, if the application is using only a portion of the allocated texture space, - // such as for Freeframe plugins. (The 2.006 equivalent is DrawToSharedTexture). - bool SendFbo(GLuint FboID, unsigned int width, unsigned int height, bool bInvert = true); - // Send OpenGL texture - bool SendTexture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert = true, GLuint HostFBO = 0); - // Send image pixels - bool SendImage(const unsigned char* pixels, unsigned int width, unsigned int height, GLenum glFormat = GL_RGBA, bool bInvert = false, GLuint HostFBO = 0); - // Sender status - bool IsInitialized(); - // Sender name - const char * GetName(); - // Sender width - unsigned int GetWidth(); - // Sender height - unsigned int GetHeight(); - // Sender frame rate - double GetFps(); - // Sender frame number - long GetFrame(); - // Sender share handle - HANDLE GetHandle(); - - // - // Frame count - // - - // Enable or disable frame counting globally - void SetFrameCount(bool bEnable); - // Disable frame counting specifically for this application - void DisableFrameCount(); - // Return frame count status - bool IsFrameCountEnabled(); - // Frame rate control - void HoldFps(int fps); - - // - // Graphics compatibility - // - - // Get auto GPU/CPU share depending on compatibility - bool GetAutoShare(); - // Set auto GPU/CPU share depending on compatibility - void SetAutoShare(bool bAuto = true); - // OpenGL texture share compatibility - bool IsGLDXready(); - - // - // Sender names - // - - // Number of senders - int GetSenderCount(); - // Sender item name - bool GetSender(int index, char* sendername, int MaxSize = 256); - // Sender information - bool GetSenderInfo(const char* sendername, unsigned int &width, unsigned int &height, HANDLE &dxShareHandle, DWORD &dwFormat); - // Current active sender - bool GetActiveSender(char* sendername); - // Set sender as active - bool SetActiveSender(const char* sendername); - - // - // Adapter functions - // - - // The number of graphics adapters in the system - int GetNumAdapters(); - // Get adapter item name - bool GetAdapterName(int index, char *adaptername, int maxchars = 256); - // Get adapter index - int GetAdapter(); - // Set graphics adapter for output - bool SetAdapter(int index = 0); - // Get the current adapter description - bool GetAdapterInfo(char *renderdescription, char *displaydescription, int maxchars); - // Current adapter - int Adapter(); - // Current adapter name - char * AdapterName(); - - // - // User settings recorded by "SpoutSettings" - // - - // Get user buffering mode - bool GetBufferMode(); - // Set application buffering mode - void SetBufferMode(bool bActive = true); - // Get user number of pixel buffers - int GetBuffers(); - // Set application number of pixel buffers - void SetBuffers(int nBuffers); - // Get user Maximum senders allowed - int GetMaxSenders(); - // Set user Maximum senders allowed - void SetMaxSenders(int maxSenders); - - // - // 2.006 compatibility - // - - // Get user DX9 mode - bool GetDX9(); - // Set user DX9 mode - bool SetDX9(bool bDX9 = true); - // Get user memory share mode - bool GetMemoryShareMode(); - // Set user memory share mode - bool SetMemoryShareMode(bool bMem = true); - // Get user CPU mode - bool GetCPUmode(); - // Set user CPU mode - bool SetCPUmode(bool bCPU); - // Get user share mode - // 0 - texture, 1 - memory, 2 - CPU - int GetShareMode(); - // Set user share mode - // 0 - texture, 1 - memory, 2 - CPU - void SetShareMode(int mode); - - // - // Information - // - - // The path of the host that produced the sender - bool GetHostPath(const char *sendername, char *hostpath, int maxchars); - // Vertical sync status - int GetVerticalSync(); - // Lock to monitor vertical sync - bool SetVerticalSync(bool bSync = true); - // Get Spout version - int GetSpoutVersion(); - - // - // OpenGL utilities - // - - // Create an OpenGL window and context for situations where there is none. - // Not used if applications already have an OpenGL context. - // Always call CloseOpenGL afterwards. - bool CreateOpenGL(); - // Close OpenGL window - bool CloseOpenGL(); - // Copy OpenGL texture with optional invert - // Textures must be the same size - bool CopyTexture(GLuint SourceID, GLuint SourceTarget, - GLuint DestID, GLuint DestTarget, - unsigned int width, unsigned int height, - bool bInvert = false, GLuint HostFBO = 0); - - - // - // 2.006 compatibility - // - - // Create a sender - bool CreateSender(const char *Sendername, unsigned int width = 0, unsigned int height = 0, DWORD dwFormat = 0); - // Update a sender - bool UpdateSender(const char* Sendername, unsigned int width, unsigned int height); - - // Legacy OpenGL DrawTo function - // See _SpoutCommon.h_ #define legacyOpenGL -#ifdef legacyOpenGL - // Render a texture to the shared texture. - bool DrawToSharedTexture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, float max_x = 1.0, float max_y = 1.0, float aspect = 1.0, bool bInvert = false, GLuint HostFBO = 0); -#endif - - // For access to all functions - Spout spout; - -protected : - - -}; - -#endif diff --git a/Plugin/Spout/SpoutGL/SpoutSenderNames.cpp b/Plugin/Spout/SpoutSenderNames.cpp similarity index 90% rename from Plugin/Spout/SpoutGL/SpoutSenderNames.cpp rename to Plugin/Spout/SpoutSenderNames.cpp index 5382f6c..be4c7bb 100644 --- a/Plugin/Spout/SpoutGL/SpoutSenderNames.cpp +++ b/Plugin/Spout/SpoutSenderNames.cpp @@ -66,6 +66,12 @@ Write host path to the sender shared memory Description field in CreateSender 13.01.21 - Remove CleanSenders until sender registration investigations are completed Fix typo in host path write. To be tested. + 10.02.21 - GetActiveSender - erase the active sender memory map if the sender info is closed + 15.02.21 - Rebuild Win32 /MD for GitHub 2.007b release + 26.02.21 - Change SetSenderCPUmode to include CPU sharing mode and GLDX compatibility + 27.02.21 - Change SetSenderCPUmode name to SetSenderID + 09.04.21 - Add GetSender to retrieve class sender. + Remove SenderDebug - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Copyright (c) 2014-2021, Lynn Jarvis. All rights reserved. @@ -200,6 +206,7 @@ bool spoutSenderNames::ReleaseSenderName(const char* Sendername) // Create the shared memory for the sender name set if it does not exist if(!CreateSenderSet()) return false; + // Get the current map into a buffer char *pBuf = m_senderNames.Lock(); if (!pBuf) return false; @@ -210,6 +217,7 @@ bool spoutSenderNames::ReleaseSenderName(const char* Sendername) m_senders->erase(namestring); } + // Read the buffer to a set to iterate through the names readSenderSetFromBuffer(pBuf, SenderNames, m_MaxSenders); // Discovered that the project properties had been set to CLI @@ -217,16 +225,16 @@ bool spoutSenderNames::ReleaseSenderName(const char* Sendername) // and this caused the set "find" function not to work. // It also disabled intellisense. - // Get the current map to update the list + // If the sender exists if(SenderNames.find(Sendername) != SenderNames.end() ) { - SenderNames.erase(Sendername); // erase the matching Sender + SenderNames.erase(Sendername); + // Write the sender names back to the buffer writeBufferFromSenderSet(SenderNames, pBuf, m_MaxSenders); // Is there a set left ? if(SenderNames.size() > 0) { - // This should be OK because the user selects the active sender // Was it the active sender ? if( (getActiveSenderName(name) && strcmp(name, Sendername) == 0) || SenderNames.size() == 1) { - // It was, so choose the first in the list + // It was, so choose the first in the list and make it active instead std::set::iterator iter = SenderNames.begin(); namestring = *iter; strcpy_s(name, namestring.c_str()); @@ -481,7 +489,7 @@ bool spoutSenderNames::SetSenderInfo(const char* sendername, unsigned int width, { return false; } - + info.width = (unsigned __int32)width; info.height = (unsigned __int32)height; #ifdef _M_X64 @@ -498,13 +506,14 @@ bool spoutSenderNames::SetSenderInfo(const char* sendername, unsigned int width, // Texture usage info.usage = 0; - // Partner ID : Sender CPU mode - // TODO - // info.partnerId = 0; - // Description : Host path char exepath[256]; GetModuleFileNameA(NULL, exepath, sizeof(exepath)); + + // Partner ID : Sender CPU sharing mode + // Set by SetSenderID + // TODO : combine here + // Description is defined as wide chars, but the path is stored as byte chars memcpy((void *)info.description, (void *)exepath, 256); // wchar 128 @@ -518,6 +527,47 @@ bool spoutSenderNames::SetSenderInfo(const char* sendername, unsigned int width, } // end SetSenderInfo +// +// Set sender CPU sharing mode and hardware compatibility with GL/DX linkage +// to the two top bits of the 32 bit partnerID field in sender shared memory +// +// bCPU - means "using CPU sharing methods" +// 1000 0000 0000 0000 0000 0000 0000 0000 = 0x80000000 +// bGLDX - means "compatible with OpenGL/DirectX interop" +// 0100 0000 0000 0000 0000 0000 0000 0000 = 0x40000000 +// Both set - means "GL/DX compatible but using CPU sharing methods" +// 1100 0000 0000 0000 0000 0000 0000 0000 = 0xC0000000 +// +// 2.006 senders may or may not have these bits set but will rarely have the exact values. +// +bool spoutSenderNames::SetSenderID(const char *sendername, bool bCPU, bool bGLDX) +{ + SharedTextureInfo info; + + SpoutLogNotice("spoutSenderNames::SetSenderID(%s, %d, %d)", sendername, bCPU, bGLDX); + + if (getSharedInfo(sendername, &info)) { + + // Using CPU sharing methods - set top bit + // 1000 0000 0000 0000 0000 0000 0000 0000 + // GL/DX compatible hardware - set next to top bit + // 0100 0000 0000 0000 0000 0000 0000 0000 + + info.partnerId = 0x00000000; // Default both bits clear + if (bCPU) + info.partnerId = 0x80000000; + if (bGLDX) + info.partnerId |= 0x40000000; + + // Save the info for this sender in the sender shared memory map + setSharedInfo(sendername, &info); + + return true; + } + + return false; +} + // Functions to set or get the active Sender name // The "active" Sender is the one of the multiple Senders // that is top of the list or is the one selected by the user from this list. @@ -560,7 +610,6 @@ bool spoutSenderNames::SetActiveSender(const char *Sendername) } // end SetActiveSender - // Retrieve the current active Sender name bool spoutSenderNames::GetActiveSender(char Sendername[SpoutMaxSenderNameLen]) { @@ -574,7 +623,8 @@ bool spoutSenderNames::GetActiveSender(char Sendername[SpoutMaxSenderNameLen]) return true; } else { - // Erase the active sender name ? + // Erase the active sender memory map + m_activeSender.Close(); } } @@ -625,11 +675,10 @@ bool spoutSenderNames::FindActiveSender(char sendername[SpoutMaxSenderNameLen], } // end FindActiveSender - -///////////////////////////////////////////////////////////////////////////////////// -// Functions to Create, Update and Close a sender and retrieve sender texture info // -// without initializing DirectX or the GL/DX interop functions // -///////////////////////////////////////////////////////////////////////////////////// +// =============================================================================== +// Functions to Create, Update and Close a sender and retrieve sender texture info +// without initializing DirectX or the GL/DX interop functions +// =============================================================================== // Create a sender bool spoutSenderNames::CreateSender(const char *sendername, unsigned int width, unsigned int height, HANDLE hSharehandle, DWORD dwFormat) @@ -655,25 +704,24 @@ bool spoutSenderNames::UpdateSender(const char *sendername, unsigned int width, { std::string namestring = sendername; - if (m_senders->find(namestring) == m_senders->end()) { + if (m_senders->find(namestring) == m_senders->end()) { // New sender + // Create or open a shared memory map for this sender - allocate enough for the texture info SpoutSharedMemory *senderInfoMem = new SpoutSharedMemory(); SpoutCreateResult result = senderInfoMem->Create(sendername, sizeof(SharedTextureInfo)); - if(result == SPOUT_CREATE_FAILED) { + + if (result == SPOUT_CREATE_FAILED) { delete senderInfoMem; m_senderNames.Unlock(); return false; } + (*m_senders)[namestring] = senderInfoMem; - } - // Save the info for this sender in the sender shared memory map - if(!SetSenderInfo(sendername, width, height, hSharehandle, dwFormat)) { - return false; } - - - return true; + + // Save the info for this sender in the sender shared memory map + return SetSenderInfo(sendername, width, height, hSharehandle, dwFormat); } // end UpdateSender @@ -688,47 +736,6 @@ bool spoutSenderNames::UpdateSender(const char *sendername, unsigned int width, // DX11 - D3D11_USAGE_DEFAULT // =============================================================================== -// Find a sender and return the name, width and height, sharhandle and format -bool spoutSenderNames::FindSender(char *sendername, unsigned int &width, unsigned int &height, HANDLE &hSharehandle, DWORD &dwFormat) -{ - SharedTextureInfo info; - - // Check the user entered Sender name to see if it exists - if(sendername[0] == 0) { - // Passed name was null, so find the active sender - if(!GetActiveSender(sendername)) - return false; - } - // now we have either an existing sender name or the active sender name - - // 01.08.15 - Is the given sender registered ? - // 09.03.18 - change to logic so that the sendernames map is not - // accessed every frame by a receiver when looking for a named sender - // getSharedInfo fails if the sender is not there and ReleaseSenderName - // is not necessary. A sender will release it's name from the list when it closes - // and will only not do so if the sender crashes. - // Then SpoutPanel will clean the sender set and remove senders that do not exist - // This is also done by RegisterSenderName for every sender that is registered - - // Try to get the sender information - if(getSharedInfo(sendername, &info)) { - width = (unsigned int)info.width; // pass back sender size - height = (unsigned int)info.height; -#ifdef _M_X64 - hSharehandle = (HANDLE)(LongToHandle((long)info.shareHandle)); -#else - hSharehandle = (HANDLE)info.shareHandle; -#endif - dwFormat = (DWORD)info.format; - return true; - } - - // Not there - could have closed or crashed - return false; - -} // end FindSender - - // // Check the details of an existing sender // @@ -749,8 +756,8 @@ bool spoutSenderNames::CheckSender(const char *sendername, unsigned int &theWidt { SharedTextureInfo info; - //// Is the given sender registered ? - // if(FindSenderName(sendername)) { + // Is the given sender registered ? + if(FindSenderName(sendername)) { // Does it still exist ? if(getSharedInfo(sendername, &info)) { // Return the texture info @@ -764,11 +771,11 @@ bool spoutSenderNames::CheckSender(const char *sendername, unsigned int &theWidt dwFormat = (DWORD)info.format; return true; - // } - // else { + } + else { // Sender is registered but does not exist so close it - // ReleaseSenderName(sendername); - // } + ReleaseSenderName(sendername); + } } @@ -780,6 +787,55 @@ bool spoutSenderNames::CheckSender(const char *sendername, unsigned int &theWidt } // end CheckSender +// Find a sender and return the name, width and height, sharhandle and format +bool spoutSenderNames::FindSender(char *sendername, unsigned int &width, unsigned int &height, HANDLE &hSharehandle, DWORD &dwFormat) +{ + SharedTextureInfo info; + + // Check the user entered Sender name to see if it exists + if (sendername[0] == 0) { + // Passed name was null, so find the active sender + if (!GetActiveSender(sendername)) + return false; + } + // now we have either an existing sender name or the active sender name + + // 01.08.15 - Is the given sender registered ? + // 09.03.18 - change to logic so that the sendernames map is not + // accessed every frame by a receiver when looking for a named sender + // getSharedInfo fails if the sender is not there and ReleaseSenderName + // is not necessary. A sender will release it's name from the list when it closes + // and will only not do so if the sender crashes. + // Then SpoutPanel will clean the sender set and remove senders that do not exist + // This is also done by RegisterSenderName for every sender that is registered + + // Try to get the sender information + if (getSharedInfo(sendername, &info)) { + width = (unsigned int)info.width; // pass back sender size + height = (unsigned int)info.height; +#ifdef _M_X64 + hSharehandle = (HANDLE)(LongToHandle((long)info.shareHandle)); +#else + hSharehandle = (HANDLE)info.shareHandle; +#endif + dwFormat = (DWORD)info.format; + return true; + } + + // Not there - could have closed or crashed + return false; + +} // end FindSender + +// Get sender in this class +bool spoutSenderNames::GetSender(const char* sendername) +{ + std::string namestring = sendername; + if (m_senders->find(namestring) != m_senders->end()) + return true; + + return false; +} // Release any orphaned senders if the name exists // in the sender list but the shared memory info does not @@ -805,7 +861,6 @@ void spoutSenderNames::CleanSenders() // we have the name already, so look for it's info if (!getSharedInfo(name, &info)) { // Sender does not exist any more so release from the name list - // printf("[%s] does not exist any more\n", name); ReleaseSenderName(name); } } @@ -895,7 +950,6 @@ bool spoutSenderNames::CreateSenderSet() SpoutLogError("spoutSenderNames::CreateSenderSet() : SPOUT_CREATE_FAILED"); return false; } - return true; } // end CreateSenderSet @@ -1041,82 +1095,3 @@ bool spoutSenderNames::hasSharedInfo(const char* sharedMemoryName) } // end hasSharedInfo - - -//--------------------------------------------------------- -bool spoutSenderNames::SenderDebug(const char *Sendername, int size) -{ - // HANDLE hMap1 = NULL; - // HANDLE hMap2 = NULL; - // HANDLE hMap3 = NULL; - std::set SenderNames; - std::set::iterator iter; - std::string namestring; - - UNREFERENCED_PARAMETER(Sendername); - UNREFERENCED_PARAMETER(size); - - // printf("**** SENDER DEBUG ****\n"); - - // m_senderNames.Debug(); - - // Check the sender names - /* - // printf(" GetSenderSet\n"); - if(GetSenderSet(SenderNames)) { - // printf(" SenderNames size = [%d]\n", SenderNames.size()); - if (SenderNames.size() > 0) { - for(iter = SenderNames.begin(); iter != SenderNames.end(); iter++) { - namestring = *iter; - // printf(" Sender : [%s]\n", namestring.c_str()); - } - } - } - else { - // printf(" GetSenderSet failed\n"); - } - */ - - /* - printf(" GetSenderNames\n"); - if(GetSenderNames(&SenderNames)) { - printf(" SenderNames size = [%d]\n", SenderNames.size()); - if (SenderNames.size() > 0) { - for(iter = SenderNames.begin(); iter != SenderNames.end(); iter++) { - namestring = *iter; - printf(" Sender : [%s]\n", namestring.c_str()); - } - } - else { - printf(" SenderNames size = 0\n"); - } - } - else { - printf(" GetSenderSet failed\n"); - } - */ - - // MessageBoxA(NULL,"spoutSenderNames::SenderDebug()", "Info", MB_OK); - - /* - // printf("2) Closing - hSenderNamesMap = [%x], pSenderNamesMap = [%x]\n", m_hSenderNamesMap, m_pSenderNamesMap); - - // Close and try to reopen - CloseMap(m_pSenderNamesMap, m_hSenderNamesMap); - - hMap2 = OpenFileMappingA (FILE_MAP_ALL_ACCESS, false, "SpoutSenderNames"); - if(hMap2) { - // printf(" Sendernames map [%x] did not close\n", hMap2); - CloseHandle(hMap2); - } - else { - // printf(" Closed sendernames map OK\n"); - } - - CloseMap(m_pActiveSenderMap, m_hActiveSenderMap); - */ - - // m_activeSender.Debug(); - - return true; -} diff --git a/Plugin/Spout/SpoutGL/SpoutSenderNames.h b/Plugin/Spout/SpoutSenderNames.h similarity index 96% rename from Plugin/Spout/SpoutGL/SpoutSenderNames.h rename to Plugin/Spout/SpoutSenderNames.h index 20652a0..b9e6711 100644 --- a/Plugin/Spout/SpoutGL/SpoutSenderNames.h +++ b/Plugin/Spout/SpoutSenderNames.h @@ -98,7 +98,7 @@ class SPOUT_DLLEXP spoutSenderNames { // Register a sender name in the list of senders bool RegisterSenderName(const char* sendername); - // Remove a name fromn the list + // Remove a name from the list bool ReleaseSenderName(const char* sendername); // Find a name in the list bool FindSenderName(const char* sendername); @@ -132,6 +132,8 @@ class SPOUT_DLLEXP spoutSenderNames { bool GetSenderInfo (const char* sendername, unsigned int &width, unsigned int &height, HANDLE &dxShareHandle, DWORD &dwFormat); // Set sender information bool SetSenderInfo (const char* sendername, unsigned int width, unsigned int height, HANDLE dxShareHandle, DWORD dwFormat); + // Set sender PartnerID field with "CPU" sharing method and GL/DX compatibility + bool SetSenderID(const char *sendername, bool bCPU, bool bGLDX); // Generic sender map info read (returned in a shared texture information structure) bool getSharedInfo (const char* sendername, SharedTextureInfo* info); // Generic sender map info write @@ -165,11 +167,11 @@ class SPOUT_DLLEXP spoutSenderNames { bool CheckSender (const char* sendername, unsigned int &width, unsigned int &height, HANDLE &hSharehandle, DWORD &dwFormat); // Find a sender and return details bool FindSender (char* sendername, unsigned int &width, unsigned int &height, HANDLE &hSharehandle, DWORD &dwFormat); + // Get sender in this class + bool GetSender(const char* sendername); // Release orphaned senders void CleanSenders(); - // Debuging function - bool SenderDebug (const char* sendername, int size); protected: diff --git a/Plugin/Spout/SpoutGL/SpoutSharedMemory.cpp b/Plugin/Spout/SpoutSharedMemory.cpp similarity index 93% rename from Plugin/Spout/SpoutGL/SpoutSharedMemory.cpp rename to Plugin/Spout/SpoutSharedMemory.cpp index 4c28b41..c9d83ae 100644 --- a/Plugin/Spout/SpoutGL/SpoutSharedMemory.cpp +++ b/Plugin/Spout/SpoutSharedMemory.cpp @@ -32,7 +32,7 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + */ #include "SpoutSharedMemory.h" @@ -113,6 +113,9 @@ SpoutCreateResult SpoutSharedMemory::Create(const char* name, int size) } } + // We can depend on the mapping object to be initially zeros. + // https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createfilemappinga + m_pBuffer = (char*)MapViewOfFile(m_hMap, FILE_MAP_ALL_ACCESS, 0, 0, 0); if (!m_pBuffer) { @@ -173,6 +176,8 @@ bool SpoutSharedMemory::Open(const char* name) } m_pName = _strdup(name); + // OpenFileMapping/MapViewOfFile do not return the map size + // Only the process that creates the shared memory can save it's size. m_size = 0; return true; @@ -201,6 +206,8 @@ void SpoutSharedMemory::Close() m_pName = NULL; } + m_size = 0; + } @@ -240,7 +247,6 @@ char* SpoutSharedMemory::Lock() void SpoutSharedMemory::Unlock() { - assert(m_hMutex); m_lockCount--; @@ -251,6 +257,16 @@ void SpoutSharedMemory::Unlock() } } +const char* SpoutSharedMemory::Name() +{ + return m_pName; +} + +int SpoutSharedMemory::Size() +{ + return m_size; +} + void SpoutSharedMemory::Debug() { if (m_pName) { diff --git a/Plugin/Spout/SpoutGL/SpoutSharedMemory.h b/Plugin/Spout/SpoutSharedMemory.h similarity index 96% rename from Plugin/Spout/SpoutGL/SpoutSharedMemory.h rename to Plugin/Spout/SpoutSharedMemory.h index fcf5d41..0e97b84 100644 --- a/Plugin/Spout/SpoutGL/SpoutSharedMemory.h +++ b/Plugin/Spout/SpoutSharedMemory.h @@ -73,6 +73,12 @@ class SPOUT_DLLEXP SpoutSharedMemory { // Unlock a map void Unlock(); + // Name of an existing map + const char* Name(); + + // Size of an existing map + int Size(); + // Print map information for debugging void Debug(); diff --git a/Plugin/Spout/SpoutGL/SpoutUtils.cpp b/Plugin/Spout/SpoutUtils.cpp similarity index 95% rename from Plugin/Spout/SpoutGL/SpoutUtils.cpp rename to Plugin/Spout/SpoutUtils.cpp index 55bd3ee..9124792 100644 --- a/Plugin/Spout/SpoutGL/SpoutUtils.cpp +++ b/Plugin/Spout/SpoutUtils.cpp @@ -65,6 +65,12 @@ 23.09.20 - _doLog : always prevent multiple logs by comparing with the last instead of reserving for > warnings 16.10.20 - Add bool WriteBinaryToRegistry + 04.03.21 - Add std::string GetSDKversion() + 09.03.21 - Fix code if USE_CHRONO not defined + 17.04.21 - Disable close button on console + Bring the main window to the top again + 07.05.21 - Remove noisy warning from ReadPathFromRegistry + 09.06.21 - Update Version to "2.007.002" */ #include "SpoutUtils.h" @@ -96,15 +102,17 @@ namespace spoututils { std::string logFileName = ""; // file name for the logfile std::string LastSpoutLog = ""; bool bConsole = false; -#if _MSC_VER >= 1900 +#ifdef USE_CHRONO std::chrono::steady_clock::time_point start; std::chrono::steady_clock::time_point end; #endif + std::string SDKversion = "2.007.002"; // Spout SDK version number string // // Console management // +#ifndef MINI_SPOUTUTILS void OpenSpoutConsole() { // AllocConsole fails if the process already has a console @@ -113,11 +121,18 @@ namespace spoututils { bConsole = true; } else { + // Get calling process window + HWND hwndFgnd = GetForegroundWindow(); if (AllocConsole()) { errno_t err = freopen_s(&pCout, "CONOUT$", "w", stdout); if (err == 0) { SetConsoleTitleA("Spout Log"); bConsole = true; + // Disable close button + HMENU hmenu = GetSystemMenu(GetConsoleWindow(), FALSE); + EnableMenuItem(hmenu, SC_CLOSE, MF_GRAYED); + // Bring the main window to the top again + SetWindowPos(hwndFgnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); } else { pCout = NULL; @@ -125,7 +140,6 @@ namespace spoututils { } } } - } void CloseSpoutConsole(bool bWarning) @@ -286,6 +300,7 @@ namespace spoututils { { CurrentLogLevel = level; } +#endif // MINI_SPOUTUTILS void SpoutLog(const char* format, ...) @@ -336,6 +351,7 @@ namespace spoututils { va_end(args); } +#ifndef MINI_SPOUTUTILS // // MessageBox // @@ -395,6 +411,7 @@ namespace spoututils { return iRet; } +#endif // MINI_SPOUTUTILS // // Registry utilities @@ -422,7 +439,7 @@ namespace spoututils { if (regres == ERROR_SUCCESS) return true; } - + // Just quit if the key does not exist return false; @@ -487,8 +504,6 @@ namespace spoututils { return true; } // Quit if the key does not exist - SpoutLogWarning("ReadPathFromRegistry - could not open subkey [%s] Error (%ld)", subkey, regres); - return false; } @@ -550,11 +565,6 @@ namespace spoututils { } if (regres == ERROR_SUCCESS && hRegKey != NULL) { - - // Write the binary string - // printf("\nhexdata size = %d\n", (int)sizeof(hexdata)); - - regres = RegSetValueExA(hRegKey, valuename, 0, REG_BINARY, (BYTE *)hexdata, nChars); RegCloseKey(hRegKey); } @@ -621,20 +631,32 @@ namespace spoututils { } +#ifndef MINI_SPOUTUTILS // Timing utility functions -#ifdef USE_CHRONO void StartTiming() { +#ifdef USE_CHRONO start = std::chrono::steady_clock::now(); +#endif } double EndTiming() { +#ifdef USE_CHRONO end = std::chrono::steady_clock::now(); double elapsed = static_cast(std::chrono::duration_cast(end - start).count()); - // printf("elapsed [%.3f] msec\n", elapsed / 1000.0); + // printf(" elapsed [%.4f] msec\n", elapsed / 1000.0); // printf("elapsed [%.3f] u/sec\n", elapsed); return elapsed; - } +#else + return 0.0; #endif + } +#endif // MINI_SPOUTUTILS + + // Get SDK version number string e.g. "2.007.000" + std::string GetSDKversion() + { + return SDKversion; + } // Perform the log void _doLog(SpoutLogLevel level, const char* format, va_list args) @@ -660,6 +682,7 @@ namespace spoututils { // Prevent multiple logs by comparing with the last if (logString == LastSpoutLog) return; + LastSpoutLog = logString; // update the last log // Console logging @@ -699,6 +722,7 @@ namespace spoututils { namespace { +#ifndef MINI_SPOUTUTILS // Get the default log file path std::string _getLogPath() { @@ -712,7 +736,7 @@ namespace spoututils { if (SUCCEEDED(hr) && appdatapath) { wcscpy_s(wpath, MAX_PATH, appdatapath); wcscat_s(wpath, MAX_PATH, L"\\Spout"); - wcstombs_s(NULL, logpath, wpath, MAX_PATH); + wcstombs_s(NULL, logpath, MAX_PATH, wpath, MAX_PATH); if (_access(logpath, 0) == -1) { if (!CreateDirectoryA(logpath, NULL)) { hr = S_FALSE; @@ -730,6 +754,7 @@ namespace spoututils { return logpath; } +#endif // MINI_SPOUTUTILS // Get the name for the current log level std::string _levelName(SpoutLogLevel level) { @@ -751,6 +776,7 @@ namespace spoututils { } } +#ifndef MINI_SPOUTUTILS // Log to file with optional append void _logtofile(bool append) { @@ -858,13 +884,11 @@ namespace spoututils { // Find SpoutSettings path char exePath[MAX_PATH]; if (!ReadPathFromRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\Spout", "SpoutSettings", exePath)) { - printf("Spout::SetNVIDIAmode - SpoutSettings path not found\n"); SpoutLogError("Spout::SetNVIDIAmode - SpoutSettings path not found"); return false; } if (!PathFileExistsA(exePath)) { - printf("Spout::SetNVIDIAmode - SpoutSettings.exe not found\n[%s]\n", exePath); SpoutLogError("Spout::SetNVIDIAmode - SpoutSettings.exe not found"); return false; } @@ -919,6 +943,7 @@ namespace spoututils { return bRet; } +#endif // MINI_SPOUTUTILS } // end private namespace diff --git a/Plugin/Spout/SpoutGL/SpoutUtils.h b/Plugin/Spout/SpoutUtils.h similarity index 95% rename from Plugin/Spout/SpoutGL/SpoutUtils.h rename to Plugin/Spout/SpoutUtils.h index 3408d7f..8210932 100644 --- a/Plugin/Spout/SpoutGL/SpoutUtils.h +++ b/Plugin/Spout/SpoutUtils.h @@ -41,7 +41,7 @@ #include // for _access #include #include -#include // for shellexecute +#include // for shellexecute #include // for path functions #include // to find the AppData folder @@ -97,6 +97,7 @@ namespace spoututils { // Console management // +#ifndef MINI_SPOUTUTILS // Open console window. // A console window opens without logs. // Useful for debugging with console output. @@ -142,6 +143,7 @@ namespace spoututils { // Set the current log level void SetSpoutLogLevel(SpoutLogLevel level); +#endif // MINI_SPOUTUTILS // General purpose log void SpoutLog(const char* format, ...); @@ -161,6 +163,7 @@ namespace spoututils { // Fatal - always show log void SpoutLogFatal(const char* format, ...); +#ifndef MINI_SPOUTUTILS // // MessageBox dialog // @@ -173,6 +176,7 @@ namespace spoututils { // MessageBox dialog with standard arguments. // Replaces an existing MessageBox call. int SpoutMessageBox(HWND hwnd, LPCSTR message, LPCSTR caption, UINT uType, DWORD dwMilliseconds = 0); +#endif // MINI_SPOUTUTILS // // Registry utilities @@ -204,6 +208,22 @@ namespace spoututils { // Find subkey bool FindSubKey(HKEY hKey, const char *subkey); +#ifndef MINI_SPOUTUTILS + // + // Timing functions + // +#ifdef USE_CHRONO + // Start timing period + void StartTiming(); + // Stop timing and return microseconds elapsed. + // Code console output can be enabled for quick timing tests. + double EndTiming(); +#endif +#endif // MINI_SPOUTUTILS + + // Get SDK version number string e.g. "2.007.000" + std::string GetSDKversion(); + // Logging function. // Used internally to perform logging. // The function code can be changed to produce logs as required @@ -216,28 +236,21 @@ namespace spoututils { { // Local functions +#ifndef MINI_SPOUTUTILS std::string _getLogPath(); +#endif // MINI_SPOUTUTILS std::string _levelName(SpoutLogLevel level); +#ifndef MINI_SPOUTUTILS void _logtofile(bool append = false); // Used internally for NVIDIA profile functions bool GetNVIDIAmode(const char *command, int * mode); bool SetNVIDIAmode(const char *command, int mode); bool ExecuteProcess(char *path); +#endif // MINI_SPOUTUTILS } - // - // Timing functions - // -#ifdef USE_CHRONO - // Start timing period - void StartTiming(); - // Stop timing and return microseconds elapsed. - // Code console output can be enabled for quick timing tests. - double EndTiming(); -#endif - } diff --git a/Plugin/System.h b/Plugin/System.h new file mode 100644 index 0000000..c8be3bf --- /dev/null +++ b/Plugin/System.h @@ -0,0 +1,101 @@ +#pragma once + +#include "Common.h" + +namespace KlakSpout { + +// Singleton system class that manages DX11/12 device/context objects +class System final +{ +public: + + System(IUnityInterfaces* unity) + : _unity(unity), + isD3D12(getGraphics()->GetRenderer() == kUnityGfxRendererD3D12) {} + + void shutdown() + { + _d3d11on12 = nullptr; + _d3d11_device = nullptr; + _d3d11_context = nullptr; + } + + IUnityGraphics* getGraphics() const + { + return _unity->Get(); + } + + WRL::ComPtr getD3D12Device() const + { + return _unity->Get()->GetDevice(); + } + + WRL::ComPtr getD3D11On12Device() + { + if (!_d3d11_device) PrepareD3D11On12(); + WRL::ComPtr d3d11on12; + _d3d11_device.As(&d3d11on12); + return d3d11on12; + } + + WRL::ComPtr getD3D11Device() + { + if (isD3D12) + { + if (!_d3d11_device) PrepareD3D11On12(); + return _d3d11_device; + } + else + { + return _unity->Get()->GetDevice(); + } + } + + WRL::ComPtr getD3D11Context() + { + if (isD3D12) + { + if (!_d3d11_context) PrepareD3D11On12(); + return _d3d11_context; + } + else + { + WRL::ComPtr ctx; + _unity->Get() + ->GetDevice()->GetImmediateContext(&ctx); + return ctx; + } + } + +private: + + IUnityInterfaces* _unity; + +public: + + spoutSenderNames spout; + const bool isD3D12; + +public: + + WRL::ComPtr _d3d11on12; + WRL::ComPtr _d3d11_device; + WRL::ComPtr _d3d11_context; + + void PrepareD3D11On12() + { + // Command queue array + IUnknown* queues[] + = { _unity->Get()->GetCommandQueue() }; + + // Create a D3D11-on-12 device. + D3D11On12CreateDevice + (getD3D12Device().Get(), 0, nullptr, 0, + queues, 1, 0, &_d3d11_device, &_d3d11_context, nullptr); + } +}; + +// Singleton instance +inline std::unique_ptr _system; + +} // namespace KlakSpout diff --git a/Plugin/Unity/IUnityGraphics.h b/Plugin/Unity/IUnityGraphics.h index 3759921..71dea56 100644 --- a/Plugin/Unity/IUnityGraphics.h +++ b/Plugin/Unity/IUnityGraphics.h @@ -1,6 +1,13 @@ +// Unity Native Plugin API copyright © 2015 Unity Technologies ApS +// +// Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). +// +// Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS†BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. + #pragma once #include "IUnityInterface.h" +// Has to match the GfxDeviceRenderer enum typedef enum UnityGfxRenderer { //kUnityGfxRendererOpenGL = 0, // Legacy OpenGL, removed @@ -9,7 +16,7 @@ typedef enum UnityGfxRenderer kUnityGfxRendererNull = 4, // "null" device (used in batch mode) kUnityGfxRendererOpenGLES20 = 8, // OpenGL ES 2.0 kUnityGfxRendererOpenGLES30 = 11, // OpenGL ES 3.0 - kUnityGfxRendererGXM = 12, // PlayStation Vita + //kUnityGfxRendererGXM = 12, // PlayStation Vita, removed kUnityGfxRendererPS4 = 13, // PlayStation 4 kUnityGfxRendererXboxOne = 14, // Xbox One kUnityGfxRendererMetal = 16, // iOS Metal @@ -17,7 +24,11 @@ typedef enum UnityGfxRenderer kUnityGfxRendererD3D12 = 18, // Direct3D 12 kUnityGfxRendererVulkan = 21, // Vulkan kUnityGfxRendererNvn = 22, // Nintendo Switch NVN API - kUnityGfxRendererXboxOneD3D12 = 23 // MS XboxOne Direct3D 12 + kUnityGfxRendererXboxOneD3D12 = 23, // MS XboxOne Direct3D 12 + kUnityGfxRendererGameCoreXboxOne = 24, // GameCore Xbox One + kUnityGfxRendererGameCoreXboxSeries = 25, // GameCore XboxSeries + kUnityGfxRendererPS5 = 26, // PS5 + kUnityGfxRendererPS5NGGC = 27 // PS5 NGGC } UnityGfxRenderer; typedef enum UnityGfxDeviceEventType diff --git a/Plugin/Unity/IUnityGraphicsD3D11.h b/Plugin/Unity/IUnityGraphicsD3D11.h index e018003..612318c 100644 --- a/Plugin/Unity/IUnityGraphicsD3D11.h +++ b/Plugin/Unity/IUnityGraphicsD3D11.h @@ -1,3 +1,9 @@ +// Unity Native Plugin API copyright © 2015 Unity Technologies ApS +// +// Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). +// +// Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS†BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. + #pragma once #include "IUnityInterface.h" diff --git a/Plugin/Unity/IUnityGraphicsD3D12.h b/Plugin/Unity/IUnityGraphicsD3D12.h index 692116a..19f839f 100644 --- a/Plugin/Unity/IUnityGraphicsD3D12.h +++ b/Plugin/Unity/IUnityGraphicsD3D12.h @@ -77,7 +77,7 @@ UNITY_DECLARE_INTERFACE(IUnityGraphicsD3D12v6) ID3D12CommandQueue* (UNITY_INTERFACE_API * GetCommandQueue)(); - ID3D12Resource* (UNITY_INTERFACE_API * TextureFromRenderBuffer)(UnityRenderBuffer * rb); + ID3D12Resource* (UNITY_INTERFACE_API * TextureFromRenderBuffer)(UnityRenderBuffer rb); ID3D12Resource* (UNITY_INTERFACE_API * TextureFromNativeTexture)(UnityTextureID texture); // Change the precondition for a specific user-defined event @@ -106,7 +106,7 @@ UNITY_DECLARE_INTERFACE(IUnityGraphicsD3D12v5) ID3D12CommandQueue* (UNITY_INTERFACE_API * GetCommandQueue)(); - ID3D12Resource* (UNITY_INTERFACE_API * TextureFromRenderBuffer)(UnityRenderBuffer * rb); + ID3D12Resource* (UNITY_INTERFACE_API * TextureFromRenderBuffer)(UnityRenderBuffer rb); }; UNITY_REGISTER_INTERFACE_GUID(0xF5C8D8A37D37BC42ULL, 0xB02DFE93B5064A27ULL, IUnityGraphicsD3D12v5) diff --git a/Plugin/Unity/IUnityInterface.h b/Plugin/Unity/IUnityInterface.h index 190c5a0..ab713ec 100644 --- a/Plugin/Unity/IUnityInterface.h +++ b/Plugin/Unity/IUnityInterface.h @@ -1,3 +1,9 @@ +// Unity Native Plugin API copyright © 2015 Unity Technologies ApS +// +// Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). +// +// Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS†BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. + #pragma once // Unity native plugin API @@ -9,9 +15,9 @@ #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || defined(WINAPI_FAMILY) #define UNITY_INTERFACE_API __stdcall #define UNITY_INTERFACE_EXPORT __declspec(dllexport) -#elif defined(__MACH__) || defined(__ANDROID__) || defined(__linux__) +#elif defined(__MACH__) || defined(__ANDROID__) || defined(__linux__) || defined(LUMIN) #define UNITY_INTERFACE_API - #define UNITY_INTERFACE_EXPORT + #define UNITY_INTERFACE_EXPORT __attribute__ ((visibility ("default"))) #else #define UNITY_INTERFACE_API #define UNITY_INTERFACE_EXPORT diff --git a/Plugin/Unity/IUnityProfiler.h b/Plugin/Unity/IUnityProfiler.h deleted file mode 100644 index 07811b8..0000000 --- a/Plugin/Unity/IUnityProfiler.h +++ /dev/null @@ -1,272 +0,0 @@ -// Unity Native Plugin API copyright © 2015 Unity Technologies ApS -// -// Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). -// -// Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS†BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. - -#pragma once -#include "IUnityInterface.h" - -#include - -// Unity Profiler Native plugin API provides an ability to register callbacks for Unity Profiler events. -// The basic functionality includes: -// 1. Ability to create a Unity Profiler Marker. -// 2. Begin and end sample. -// 3. Register a thread for profiling. -// 4. Obtain an information if profiler is available and enabled. -// -// Usage example: -// -// #include -// #include -// -// static IUnityProfiler* s_UnityProfiler = NULL; -// static const UnityProfilerMarkerDesc* s_MyPluginMarker = NULL; -// static bool s_IsDevelopmentBuild = false; -// -// static void MyPluginWorkMethod() -// { -// if (s_IsDevelopmentBuild) -// s_UnityProfiler->BeginSample(s_MyPluginMarker); -// -// // Code I want to see in Unity Profiler as "MyPluginMethod". -// // ... -// -// if (s_IsDevelopmentBuild) -// s_UnityProfiler->EndSample(s_MyPluginMarker); -// } -// -// extern "C" void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API UnityPluginLoad(IUnityInterfaces* unityInterfaces) -// { -// s_UnityProfiler = unityInterfaces->Get(); -// if (s_UnityProfiler == NULL) -// return; -// s_IsDevelopmentBuild = s_UnityProfiler->IsAvailable() != 0; -// s_UnityProfiler->CreateMarker(&s_MyPluginMarker, "MyPluginMethod", kUnityProfilerCategoryOther, kUnityProfilerMarkerFlagDefault, 0); -// } -// -// extern "C" void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API UnityPluginUnload() -// { -// } - - -typedef uint32_t UnityProfilerMarkerId; - -enum UnityBuiltinProfilerCategory_ -{ - kUnityProfilerCategoryRender = 0, - kUnityProfilerCategoryScripts = 1, - kUnityProfilerCategoryManagedJobs = 2, - kUnityProfilerCategoryBurstJobs = 3, - kUnityProfilerCategoryGUI = 4, - kUnityProfilerCategoryPhysics = 5, - kUnityProfilerCategoryAnimation = 6, - kUnityProfilerCategoryAI = 7, - kUnityProfilerCategoryAudio = 8, - kUnityProfilerCategoryAudioJob = 9, - kUnityProfilerCategoryAudioUpdateJob = 10, - kUnityProfilerCategoryVideo = 11, - kUnityProfilerCategoryParticles = 12, - kUnityProfilerCategoryGi = 13, - kUnityProfilerCategoryNetwork = 14, - kUnityProfilerCategoryLoading = 15, - kUnityProfilerCategoryOther = 16, - kUnityProfilerCategoryGC = 17, - kUnityProfilerCategoryVSync = 18, - kUnityProfilerCategoryOverhead = 19, - kUnityProfilerCategoryPlayerLoop = 20, - kUnityProfilerCategoryDirector = 21, - kUnityProfilerCategoryVR = 22, - kUnityProfilerCategoryAllocation = 23, kUnityProfilerCategoryMemory = 23, - kUnityProfilerCategoryInternal = 24, - kUnityProfilerCategoryFileIO = 25, - kUnityProfilerCategoryUISystemLayout = 26, - kUnityProfilerCategoryUISystemRender = 27, - kUnityProfilerCategoryVFX = 28, - kUnityProfilerCategoryBuildInterface = 29, - kUnityProfilerCategoryInput = 30, - kUnityProfilerCategoryVirtualTexturing = 31, -}; -typedef uint16_t UnityProfilerCategoryId; - -typedef struct UnityProfilerCategoryDesc -{ - // Incremental category index. - UnityProfilerCategoryId id; - // Reserved. - uint16_t reserved0; - // Internally associated category color which is in 0xRRGGBBAA format. - uint32_t rgbaColor; - // NULL-terminated string which is associated with the category. - const char* name; -} UnityProfilerCategoryDesc; - -enum UnityProfilerMarkerFlag_ -{ - kUnityProfilerMarkerFlagDefault = 0, - - kUnityProfilerMarkerFlagScriptUser = 1 << 1, // Markers created with C# API. - kUnityProfilerMarkerFlagScriptInvoke = 1 << 5, // Runtime invocations with ScriptingInvocation::Invoke. - kUnityProfilerMarkerFlagScriptEnterLeave = 1 << 6, // Deep profiler. - - kUnityProfilerMarkerFlagAvailabilityEditor = 1 << 2, // Editor-only marker, doesn't present in dev and non-dev players. - kUnityProfilerMarkerFlagAvailabilityNonDev = 1 << 3, // Non-development marker, is present everywhere including release builds. - - kUnityProfilerMarkerFlagWarning = 1 << 4, // Indicates undesirable, performance-wise suboptimal code path. - - kCounter = 1 << 7, // Marker is also used as a counter. - - kUnityProfilerMarkerFlagVerbosityDebug = 1 << 10, // Internal debug markers - e.g. JobSystem Idle. - kUnityProfilerMarkerFlagVerbosityInternal = 1 << 11, // Internal markers - e.g. Mutex/semaphore waits. - kUnityProfilerMarkerFlagVerbosityAdvanced = 1 << 12 // Markers which are useful for advanced users - e.g. Loading. -}; -typedef uint16_t UnityProfilerMarkerFlags; - -enum UnityProfilerMarkerEventType_ -{ - kUnityProfilerMarkerEventTypeBegin = 0, - kUnityProfilerMarkerEventTypeEnd = 1, - kUnityProfilerMarkerEventTypeSingle = 2 -}; -typedef uint16_t UnityProfilerMarkerEventType; - -typedef struct UnityProfilerMarkerDesc -{ - // Per-marker callback chain pointer. Don't use. - const void* callback; - // Event id. - UnityProfilerMarkerId id; - // UnityProfilerMarkerFlag_ value. - UnityProfilerMarkerFlags flags; - // Category index the marker belongs to. - UnityProfilerCategoryId categoryId; - // NULL-terminated string which is associated with the marker. - const char* name; - // Metadata descriptions chain. Don't use. - const void* metaDataDesc; -} UnityProfilerMarkerDesc; - -enum UnityProfilerMarkerDataType_ -{ - kUnityProfilerMarkerDataTypeNone = 0, - kUnityProfilerMarkerDataTypeInstanceId = 1, - kUnityProfilerMarkerDataTypeInt32 = 2, - kUnityProfilerMarkerDataTypeUInt32 = 3, - kUnityProfilerMarkerDataTypeInt64 = 4, - kUnityProfilerMarkerDataTypeUInt64 = 5, - kUnityProfilerMarkerDataTypeFloat = 6, - kUnityProfilerMarkerDataTypeDouble = 7, - kUnityProfilerMarkerDataTypeString = 8, - kUnityProfilerMarkerDataTypeString16 = 9, - kUnityProfilerMarkerDataTypeBlob8 = 11, - kUnityProfilerMarkerDataTypeCount // Total count of data types -}; -typedef uint8_t UnityProfilerMarkerDataType; - -enum UnityProfilerMarkerDataUnit_ -{ - kUnityProfilerMarkerDataUnitUndefined = 0, - kUnityProfilerMarkerDataUnitTimeNanoseconds = 1, - kUnityProfilerMarkerDataUnitBytes = 2, - kUnityProfilerMarkerDataUnitCount = 3, - kUnityProfilerMarkerDataUnitPercent = 4, - kUnityProfilerMarkerDataUnitFrequencyHz = 5, -}; -typedef uint8_t UnityProfilerMarkerDataUnit; - -typedef struct UnityProfilerMarkerData -{ - UnityProfilerMarkerDataType type; - uint8_t reserved0; - uint16_t reserved1; - uint32_t size; - const void* ptr; -} UnityProfilerMarkerData; - -enum UnityProfilerFlowEventType_ -{ - // Starts flow chain for a current profiler marker scope (__enclosing__ scope). - // Mark the scheduler function with "begin" flow to connect it later to execution function on another thread. - kUnityProfilerFlowEventTypeBegin = 0, - // The flow continues with the next sample. - // Marks the __next__ profiler sample connected to the sample which started the flow (kUnityProfilerFlowEventTypeBegin) or previous (in time) kUnityProfilerFlowEventTypeNext flow event. - // All parallel flow instances are equivalent and connected to the same previous in time kUnityProfilerFlowEventTypeBegin or kUnityProfilerFlowEventTypeNext events and next (also in time) kUnityProfilerFlowEventTypeNext event. - kUnityProfilerFlowEventTypeParallelNext = 1, - // Ends flow started by kUnityProfilerFlowEventTypeBegin. Usually represents a sync point (SyncFence) - // Marks the __enclosing__ sample as endpoint. - kUnityProfilerFlowEventTypeEnd = 2, - // The flow continues with the next sample. - // Marks the __next__ profiler sample connected to the sample which started the flow (kUnityProfilerFlowEventTypeBegin). - kUnityProfilerFlowEventTypeNext = 3, -}; -typedef uint8_t UnityProfilerFlowEventType; - -typedef uint64_t UnityProfilerThreadId; - -// Available since 2020.1 -UNITY_DECLARE_INTERFACE(IUnityProfiler) -{ - void BeginSample(const UnityProfilerMarkerDesc* markerDesc) - { - (this->EmitEvent)(markerDesc, kUnityProfilerMarkerEventTypeBegin, 0, NULL); - } - - void BeginSample(const UnityProfilerMarkerDesc* markerDesc, uint16_t eventDataCount, const UnityProfilerMarkerData* eventData) - { - (this->EmitEvent)(markerDesc, kUnityProfilerMarkerEventTypeBegin, eventDataCount, eventData); - } - - void EndSample(const UnityProfilerMarkerDesc* markerDesc) - { - (this->EmitEvent)(markerDesc, kUnityProfilerMarkerEventTypeEnd, 0, NULL); - } - - // Create instrumentation event. - // \param markerDesc is a pointer to marker description struct. - // \param eventType is an event type - UnityProfilerMarkerEventType_. - // \param eventDataCount is an event metadata count passed in eventData. Must be less than eventDataCount specified in CreateMarker. - // \param eventData is a metadata array of eventDataCount elements. - void(UNITY_INTERFACE_API * EmitEvent)(const UnityProfilerMarkerDesc* markerDesc, UnityProfilerMarkerEventType eventType, uint16_t eventDataCount, const UnityProfilerMarkerData* eventData); - - // Returns 1 if Unity Profiler is enabled, 0 overwise. - int(UNITY_INTERFACE_API * IsEnabled)(); - - // Returns 1 if Unity Profiler is available, 0 overwise. - // Profiler is available only in Development builds. Release builds have Unity Profiler compiled out. - // However individual markers can be available even in Release builds (e.g. GC.Collect) and be collected with - // Recorder API or forwarded to platform and other profilers (via IUnityProfilerCallbacks::RegisterMarkerEventCallback API). - // You can choose whenever you want or not emit profiler event in Development and Release builds using the cached result of this method. - int(UNITY_INTERFACE_API * IsAvailable)(); - - // Creates a new Unity Profiler marker. - // \param desc Pointer to the const UnityProfilerMarkerDesc* which is set to the created marker in a case of a succesful execution. - // \param name Marker name to be displayed in Unity Profiler. - // \param flags Marker flags. One of UnityProfilerMarkerFlag_ enum. Use kUnityProfilerMarkerFlagDefault if not sure. - // \param eventDataCount Maximum count of potential metadata parameters count. - // \return 0 on success and non-zero in case of error. - int(UNITY_INTERFACE_API * CreateMarker)(const UnityProfilerMarkerDesc** desc, const char* name, UnityProfilerCategoryId category, UnityProfilerMarkerFlags flags, int eventDataCount); - - // Set a metadata description for the Unity Profiler marker. - // \param markerDesc is a pointer to marker description struct. - // \param index metadata index to set name for. - // \param metadataType Data type. Must be of UnityProfilerMarkerDataType_ enum. - // \param name Metadata name. - // \return 0 on success and non-zero in case of error. - int(UNITY_INTERFACE_API * SetMarkerMetadataName)(const UnityProfilerMarkerDesc* desc, int index, const char* metadataName, UnityProfilerMarkerDataType metadataType, UnityProfilerMarkerDataUnit metadataUnit); - - // Registers current thread with Unity Profiler. - // Has no effect in Release Players. - // \param threadId Optional Unity Profiler thread identifier which it written on successful method call. Can be used with UnregisterThread. - // \param groupName Thread group name. Unity Profiler aggregates threads with the same group. - // \param name Thread name. - // \return 0 on success and non-zero in case of error. - int(UNITY_INTERFACE_API * RegisterThread)(UnityProfilerThreadId* threadId, const char* groupName, const char* name); - - // Unregisters current thread from Unity Profiler and cleans up all associated memory. - // Has no effect in Release Players. - // \param threadId Unity Profiler thread identifier obtained with RegisterThread call. Use 0 to cleanup the current thread. - // \return 0 on success and non-zero in case of error. - int(UNITY_INTERFACE_API * UnregisterThread)(UnityProfilerThreadId threadId); -}; -UNITY_REGISTER_INTERFACE_GUID(0x2CE79ED8316A4833ULL, 0x87076B2013E1571FULL, IUnityProfiler) diff --git a/Plugin/Unity/IUnityRenderingExtensions.h b/Plugin/Unity/IUnityRenderingExtensions.h deleted file mode 100644 index 88efccb..0000000 --- a/Plugin/Unity/IUnityRenderingExtensions.h +++ /dev/null @@ -1,340 +0,0 @@ -#pragma once - - -#include "IUnityGraphics.h" - -/* - Low-level Native Plugin Rendering Extensions - ============================================ - - On top of the Low-level native plugin interface, Unity also supports low level rendering extensions that can receive callbacks when certain events happen. - This is mostly used to implement and control low-level rendering in your plugin and enable it to work with Unity’s multithreaded rendering. - - Due to the low-level nature of this extension the plugin might need to be preloaded before the devices get created. - Currently the convention is name-based namely the plugin name must be prefixed by “GfxPluginâ€. Example: GfxPluginMyFancyNativePlugin. - - - // Native plugin code example - - enum PluginCustomCommands - { - kPluginCustomCommandDownscale = kUnityRenderingExtUserEventsStart, - kPluginCustomCommandUpscale, - - // insert your own events here - - kPluginCustomCommandCount - }; - - static IUnityInterfaces* s_UnityInterfaces = NULL; - - extern "C" void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API - UnityPluginLoad(IUnityInterfaces* unityInterfaces) - { - // initialization code here... - } - - extern "C" void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API - UnityRenderingExtEvent(UnityRenderingExtEventType event, void* data) - { - switch (event) - { - case kUnityRenderingExtEventBeforeDrawCall: - // do some stuff - break; - case kUnityRenderingExtEventAfterDrawCall: - // undo some stuff - break; - case kPluginCustomCommandDownscale: - // downscale some stuff - break; - case kPluginCustomCommandUpscale: - // upscale some stuff - break; - } - } - -*/ - - -// These events will be propagated to all plugins that implement void UnityRenderingExtEvent(UnityRenderingExtEventType event, void* data); - -enum UnityRenderingExtEventType -{ - kUnityRenderingExtEventSetStereoTarget, // issued during SetStereoTarget and carrying the current 'eye' index as parameter - kUnityRenderingExtEventSetStereoEye, // issued during stereo rendering at the beginning of each eye's rendering loop. It carries the current 'eye' index as parameter - kUnityRenderingExtEventStereoRenderingDone, // issued after the rendering has finished - kUnityRenderingExtEventBeforeDrawCall, // issued during BeforeDrawCall and carrying UnityRenderingExtBeforeDrawCallParams as parameter - kUnityRenderingExtEventAfterDrawCall, // issued during AfterDrawCall. This event doesn't carry any parameters - kUnityRenderingExtEventCustomGrab, // issued during GrabIntoRenderTexture since we can't simply copy the resources - // when custom rendering is used - we need to let plugin handle this. It carries over - // a UnityRenderingExtCustomBlitParams params = { X, source, dest, 0, 0 } ( X means it's irrelevant ) - kUnityRenderingExtEventCustomBlit, // issued by plugin to insert custom blits. It carries over UnityRenderingExtCustomBlitParams as param. - kUnityRenderingExtEventUpdateTextureBegin, // issued to update a texture. It carries over UnityRenderingExtTextureUpdateParams - kUnityRenderingExtEventUpdateTextureEnd, // issued to signal the plugin that the texture update has finished. It carries over the same UnityRenderingExtTextureUpdateParams as kUnityRenderingExtEventUpdateTextureBegin - - // keep this last - kUnityRenderingExtEventCount, - kUnityRenderingExtUserEventsStart = kUnityRenderingExtEventCount -}; - - -enum UnityRenderingExtCustomBlitCommands -{ - kUnityRenderingExtCustomBlitVRFlush, // This event is mostly used in multi GPU configurations ( SLI, etc ) in order to allow the plugin to flush all GPU's targets - - // keep this last - kUnityRenderingExtCustomBlitCount, - kUnityRenderingExtUserCustomBlitStart = kUnityRenderingExtCustomBlitCount -}; - -/* - This will be propagated to all plugins implementing UnityRenderingExtQuery. -*/ -enum UnityRenderingExtQueryType -{ - kUnityRenderingExtQueryOverrideViewport = 1 << 0, // The plugin handles setting up the viewport rects. Unity will skip its internal SetViewport calls - kUnityRenderingExtQueryOverrideScissor = 1 << 1, // The plugin handles setting up the scissor rects. Unity will skip its internal SetScissor calls - kUnityRenderingExtQueryOverrideVROcclussionMesh = 1 << 2, // The plugin handles its own VR occlusion mesh rendering. Unity will skip rendering its internal VR occlusion mask - kUnityRenderingExtQueryOverrideVRSinglePass = 1 << 3, // The plugin uses its own single pass stereo technique. Unity will only traverse and render the render node graph once. - // and it will clear the whole render target not just per-eye on demand. - kUnityRenderingExtQueryKeepOriginalDoubleWideWidth_DEPRECATED = 1 << 4, // Instructs unity to keep the original double wide width. By default unity will try and have a power-of-two width for mip-mapping requirements. - kUnityRenderingExtQueryRequestVRFlushCallback = 1 << 5, // Instructs unity to provide callbacks when the VR eye textures need flushing. Useful for multi GPU synchronization. -}; - - -enum UnityRenderingExtTextureFormat -{ - kUnityRenderingExtFormatNone = 0, kUnityRenderingExtFormatFirst = kUnityRenderingExtFormatNone, - - // sRGB formats - kUnityRenderingExtFormatR8_SRGB, - kUnityRenderingExtFormatR8G8_SRGB, - kUnityRenderingExtFormatR8G8B8_SRGB, - kUnityRenderingExtFormatR8G8B8A8_SRGB, - - // 8 bit integer formats - kUnityRenderingExtFormatR8_UNorm, - kUnityRenderingExtFormatR8G8_UNorm, - kUnityRenderingExtFormatR8G8B8_UNorm, - kUnityRenderingExtFormatR8G8B8A8_UNorm, - kUnityRenderingExtFormatR8_SNorm, - kUnityRenderingExtFormatR8G8_SNorm, - kUnityRenderingExtFormatR8G8B8_SNorm, - kUnityRenderingExtFormatR8G8B8A8_SNorm, - kUnityRenderingExtFormatR8_UInt, - kUnityRenderingExtFormatR8G8_UInt, - kUnityRenderingExtFormatR8G8B8_UInt, - kUnityRenderingExtFormatR8G8B8A8_UInt, - kUnityRenderingExtFormatR8_SInt, - kUnityRenderingExtFormatR8G8_SInt, - kUnityRenderingExtFormatR8G8B8_SInt, - kUnityRenderingExtFormatR8G8B8A8_SInt, - - // 16 bit integer formats - kUnityRenderingExtFormatR16_UNorm, - kUnityRenderingExtFormatR16G16_UNorm, - kUnityRenderingExtFormatR16G16B16_UNorm, - kUnityRenderingExtFormatR16G16B16A16_UNorm, - kUnityRenderingExtFormatR16_SNorm, - kUnityRenderingExtFormatR16G16_SNorm, - kUnityRenderingExtFormatR16G16B16_SNorm, - kUnityRenderingExtFormatR16G16B16A16_SNorm, - kUnityRenderingExtFormatR16_UInt, - kUnityRenderingExtFormatR16G16_UInt, - kUnityRenderingExtFormatR16G16B16_UInt, - kUnityRenderingExtFormatR16G16B16A16_UInt, - kUnityRenderingExtFormatR16_SInt, - kUnityRenderingExtFormatR16G16_SInt, - kUnityRenderingExtFormatR16G16B16_SInt, - kUnityRenderingExtFormatR16G16B16A16_SInt, - - // 32 bit integer formats - kUnityRenderingExtFormatR32_UInt, - kUnityRenderingExtFormatR32G32_UInt, - kUnityRenderingExtFormatR32G32B32_UInt, - kUnityRenderingExtFormatR32G32B32A32_UInt, - kUnityRenderingExtFormatR32_SInt, - kUnityRenderingExtFormatR32G32_SInt, - kUnityRenderingExtFormatR32G32B32_SInt, - kUnityRenderingExtFormatR32G32B32A32_SInt, - - // HDR formats - kUnityRenderingExtFormatR16_SFloat, - kUnityRenderingExtFormatR16G16_SFloat, - kUnityRenderingExtFormatR16G16B16_SFloat, - kUnityRenderingExtFormatR16G16B16A16_SFloat, - kUnityRenderingExtFormatR32_SFloat, - kUnityRenderingExtFormatR32G32_SFloat, - kUnityRenderingExtFormatR32G32B32_SFloat, - kUnityRenderingExtFormatR32G32B32A32_SFloat, - - // Luminance and Alpha format - kUnityRenderingExtFormatL8_UNorm, - kUnityRenderingExtFormatA8_UNorm, - kUnityRenderingExtFormatA16_UNorm, - - // BGR formats - kUnityRenderingExtFormatB8G8R8_SRGB, - kUnityRenderingExtFormatB8G8R8A8_SRGB, - kUnityRenderingExtFormatB8G8R8_UNorm, - kUnityRenderingExtFormatB8G8R8A8_UNorm, - kUnityRenderingExtFormatB8G8R8_SNorm, - kUnityRenderingExtFormatB8G8R8A8_SNorm, - kUnityRenderingExtFormatB8G8R8_UInt, - kUnityRenderingExtFormatB8G8R8A8_UInt, - kUnityRenderingExtFormatB8G8R8_SInt, - kUnityRenderingExtFormatB8G8R8A8_SInt, - - // 16 bit packed formats - kUnityRenderingExtFormatR4G4B4A4_UNormPack16, - kUnityRenderingExtFormatB4G4R4A4_UNormPack16, - kUnityRenderingExtFormatR5G6B5_UNormPack16, - kUnityRenderingExtFormatB5G6R5_UNormPack16, - kUnityRenderingExtFormatR5G5B5A1_UNormPack16, - kUnityRenderingExtFormatB5G5R5A1_UNormPack16, - kUnityRenderingExtFormatA1R5G5B5_UNormPack16, - - // Packed formats - kUnityRenderingExtFormatE5B9G9R9_UFloatPack32, - kUnityRenderingExtFormatB10G11R11_UFloatPack32, - - kUnityRenderingExtFormatA2B10G10R10_UNormPack32, - kUnityRenderingExtFormatA2B10G10R10_UIntPack32, - kUnityRenderingExtFormatA2B10G10R10_SIntPack32, - kUnityRenderingExtFormatA2R10G10B10_UNormPack32, - kUnityRenderingExtFormatA2R10G10B10_UIntPack32, - kUnityRenderingExtFormatA2R10G10B10_SIntPack32, - kUnityRenderingExtFormatA2R10G10B10_XRSRGBPack32, - kUnityRenderingExtFormatA2R10G10B10_XRUNormPack32, - kUnityRenderingExtFormatR10G10B10_XRSRGBPack32, - kUnityRenderingExtFormatR10G10B10_XRUNormPack32, - kUnityRenderingExtFormatA10R10G10B10_XRSRGBPack32, - kUnityRenderingExtFormatA10R10G10B10_XRUNormPack32, - - // ARGB formats... TextureFormat legacy - kUnityRenderingExtFormatA8R8G8B8_SRGB, - kUnityRenderingExtFormatA8R8G8B8_UNorm, - kUnityRenderingExtFormatA32R32G32B32_SFloat, - - // Depth Stencil for formats - kUnityRenderingExtFormatD16_UNorm, - kUnityRenderingExtFormatD24_UNorm, - kUnityRenderingExtFormatD24_UNorm_S8_UInt, - kUnityRenderingExtFormatD32_SFloat, - kUnityRenderingExtFormatD32_SFloat_S8_Uint, - kUnityRenderingExtFormatS8_Uint, - - // Compression formats - kUnityRenderingExtFormatRGB_DXT1_SRGB, - kUnityRenderingExtFormatRGB_DXT1_UNorm, - kUnityRenderingExtFormatRGBA_DXT3_SRGB, - kUnityRenderingExtFormatRGBA_DXT3_UNorm, - kUnityRenderingExtFormatRGBA_DXT5_SRGB, - kUnityRenderingExtFormatRGBA_DXT5_UNorm, - kUnityRenderingExtFormatR_BC4_UNorm, - kUnityRenderingExtFormatR_BC4_SNorm, - kUnityRenderingExtFormatRG_BC5_UNorm, - kUnityRenderingExtFormatRG_BC5_SNorm, - kUnityRenderingExtFormatRGB_BC6H_UFloat, - kUnityRenderingExtFormatRGB_BC6H_SFloat, - kUnityRenderingExtFormatRGBA_BC7_SRGB, - kUnityRenderingExtFormatRGBA_BC7_UNorm, - - kUnityRenderingExtFormatRGB_PVRTC_2Bpp_SRGB, - kUnityRenderingExtFormatRGB_PVRTC_2Bpp_UNorm, - kUnityRenderingExtFormatRGB_PVRTC_4Bpp_SRGB, - kUnityRenderingExtFormatRGB_PVRTC_4Bpp_UNorm, - kUnityRenderingExtFormatRGBA_PVRTC_2Bpp_SRGB, - kUnityRenderingExtFormatRGBA_PVRTC_2Bpp_UNorm, - kUnityRenderingExtFormatRGBA_PVRTC_4Bpp_SRGB, - kUnityRenderingExtFormatRGBA_PVRTC_4Bpp_UNorm, - - kUnityRenderingExtFormatRGB_ETC_UNorm, - kUnityRenderingExtFormatRGB_ETC2_SRGB, - kUnityRenderingExtFormatRGB_ETC2_UNorm, - kUnityRenderingExtFormatRGB_A1_ETC2_SRGB, - kUnityRenderingExtFormatRGB_A1_ETC2_UNorm, - kUnityRenderingExtFormatRGBA_ETC2_SRGB, - kUnityRenderingExtFormatRGBA_ETC2_UNorm, - - kUnityRenderingExtFormatR_EAC_UNorm, - kUnityRenderingExtFormatR_EAC_SNorm, - kUnityRenderingExtFormatRG_EAC_UNorm, - kUnityRenderingExtFormatRG_EAC_SNorm, - - kUnityRenderingExtFormatRGBA_ASTC4X4_SRGB, - kUnityRenderingExtFormatRGBA_ASTC4X4_UNorm, - kUnityRenderingExtFormatRGBA_ASTC5X5_SRGB, - kUnityRenderingExtFormatRGBA_ASTC5X5_UNorm, - kUnityRenderingExtFormatRGBA_ASTC6X6_SRGB, - kUnityRenderingExtFormatRGBA_ASTC6X6_UNorm, - kUnityRenderingExtFormatRGBA_ASTC8X8_SRGB, - kUnityRenderingExtFormatRGBA_ASTC8X8_UNorm, - kUnityRenderingExtFormatRGBA_ASTC10X10_SRGB, - kUnityRenderingExtFormatRGBA_ASTC10X10_UNorm, - kUnityRenderingExtFormatRGBA_ASTC12X12_SRGB, - kUnityRenderingExtFormatRGBA_ASTC12X12_UNorm, - - // Video formats - kUnityRenderingExtFormatYUV2, - - // Automatic formats, back-end decides - kUnityRenderingExtFormatLDRAuto, - kUnityRenderingExtFormatHDRAuto, - kUnityRenderingExtFormatDepthAuto, - kUnityRenderingExtFormatShadowAuto, - kUnityRenderingExtFormatVideoAuto, kUnityRenderingExtFormatLast = kUnityRenderingExtFormatVideoAuto, // Remove? -}; - - -struct UnityRenderingExtBeforeDrawCallParams -{ - void* vertexShader; // bound vertex shader (platform dependent) - void* fragmentShader; // bound fragment shader (platform dependent) - void* geometryShader; // bound geometry shader (platform dependent) - void* hullShader; // bound hull shader (platform dependent) - void* domainShader; // bound domain shader (platform dependent) - int eyeIndex; // the index of the current stereo "eye" being currently rendered. -}; - - -struct UnityRenderingExtCustomBlitParams -{ - UnityTextureID source; // source texture - UnityRenderBuffer destination; // destination surface - unsigned int command; // command for the custom blit - could be any UnityRenderingExtCustomBlitCommands command or custom ones. - unsigned int commandParam; // custom parameters for the command - unsigned int commandFlags; // custom flags for the command -}; - -struct UnityRenderingExtTextureUpdateParams -{ - void* texData; // source data for the texture update. Must be set by the plugin - unsigned int userData; // user defined data. Set by the plugin - - unsigned int textureID; // texture ID of the texture to be updated. - UnityRenderingExtTextureFormat format; // format of the texture to be updated - unsigned int width; // width of the texture - unsigned int height; // height of the texture - unsigned int bpp; // texture bytes per pixel. -}; - - -// Certain Unity APIs (GL.IssuePluginEventAndData, CommandBuffer.IssuePluginEventAndData) can callback into native plugins. -// Provide them with an address to a function of this signature. -typedef void (UNITY_INTERFACE_API * UnityRenderingEventAndData)(int eventId, void* data); - - -#ifdef __cplusplus -extern "C" { -#endif - -// If exported by a plugin, this function will be called for all the events in UnityRenderingExtEventType -void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API UnityRenderingExtEvent(UnityRenderingExtEventType event, void* data); -// If exported by a plugin, this function will be called to query the plugin for the queries in UnityRenderingExtQueryType -bool UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API UnityRenderingExtQuery(UnityRenderingExtQueryType query); - -#ifdef __cplusplus -} -#endif diff --git a/Plugin/Util.h b/Plugin/Util.h new file mode 100644 index 0000000..75d294b --- /dev/null +++ b/Plugin/Util.h @@ -0,0 +1,36 @@ +#pragma once + +#include "Common.h" + +namespace KlakSpout { + +// +// Marshaling utility: std::set -> IntPtr[] +// Returns an array of strings as IntPtr[]. +// +// We prefer IntPtr[] over string[] because we don't know how the C# marshaler +// handles LPArray of LPStr... It's safe to marshal them manually. +// +// Although the marshaler will automatically free the array itself, the caller +// must free each string manually. +// +std::pair MarshalStringSet(const std::set& source) +{ + // Output array + auto array = static_cast + (CoTaskMemAlloc(sizeof(char*) * source.size())); + + // Copy the source strings into the output array. + auto i = 0u; + for (const auto& s : source) + { + auto str = static_cast(CoTaskMemAlloc(s.size() + 1)); + s.copy(str, s.size()); + str[s.size()] = 0; + array[i++] = str; + } + + return std::make_pair(array, source.size()); +} + +} // namespace KlakSpout diff --git a/Plugin/d3d11on12.h b/Plugin/d3d11on12.h new file mode 100644 index 0000000..6dc8adf --- /dev/null +++ b/Plugin/d3d11on12.h @@ -0,0 +1,171 @@ +/*** Autogenerated by WIDL 6.4 from include/d3d11on12.idl - Do not edit ***/ + +#ifdef _WIN32 +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif +#include +#include +#endif + +#ifndef COM_NO_WINDOWS_H +#include +#include +#endif + +#ifndef __d3d11on12_h__ +#define __d3d11on12_h__ + +/* Forward declarations */ + +#ifndef __ID3D11On12Device_FWD_DEFINED__ +#define __ID3D11On12Device_FWD_DEFINED__ +typedef interface ID3D11On12Device ID3D11On12Device; +#ifdef __cplusplus +interface ID3D11On12Device; +#endif /* __cplusplus */ +#endif + +/* Headers for imported files */ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct D3D11_RESOURCE_FLAGS { + UINT BindFlags; + UINT MiscFlags; + UINT CPUAccessFlags; + UINT StructureByteStride; +} D3D11_RESOURCE_FLAGS; +/***************************************************************************** + * ID3D11On12Device interface + */ +#ifndef __ID3D11On12Device_INTERFACE_DEFINED__ +#define __ID3D11On12Device_INTERFACE_DEFINED__ + +DEFINE_GUID(IID_ID3D11On12Device, 0x85611e73, 0x70a9, 0x490e, 0x96,0x14, 0xa9,0xe3,0x02,0x77,0x79,0x04); +#if defined(__cplusplus) && !defined(CINTERFACE) +MIDL_INTERFACE("85611e73-70a9-490e-9614-a9e302777904") +ID3D11On12Device : public IUnknown +{ + virtual HRESULT STDMETHODCALLTYPE CreateWrappedResource( + IUnknown *d3d12_resource, + const D3D11_RESOURCE_FLAGS *flags, + D3D12_RESOURCE_STATES input_state, + D3D12_RESOURCE_STATES output_state, + REFIID iid, + void **d3d11_resource) = 0; + + virtual void STDMETHODCALLTYPE ReleaseWrappedResources( + ID3D11Resource *const *resources, + UINT count) = 0; + + virtual void STDMETHODCALLTYPE AcquireWrappedResources( + ID3D11Resource *const *resources, + UINT count) = 0; + +}; +#ifdef __CRT_UUID_DECL +__CRT_UUID_DECL(ID3D11On12Device, 0x85611e73, 0x70a9, 0x490e, 0x96,0x14, 0xa9,0xe3,0x02,0x77,0x79,0x04) +#endif +#else +typedef struct ID3D11On12DeviceVtbl { + BEGIN_INTERFACE + + /*** IUnknown methods ***/ + HRESULT (STDMETHODCALLTYPE *QueryInterface)( + ID3D11On12Device *This, + REFIID riid, + void **ppvObject); + + ULONG (STDMETHODCALLTYPE *AddRef)( + ID3D11On12Device *This); + + ULONG (STDMETHODCALLTYPE *Release)( + ID3D11On12Device *This); + + /*** ID3D11On12Device methods ***/ + HRESULT (STDMETHODCALLTYPE *CreateWrappedResource)( + ID3D11On12Device *This, + IUnknown *d3d12_resource, + const D3D11_RESOURCE_FLAGS *flags, + D3D12_RESOURCE_STATES input_state, + D3D12_RESOURCE_STATES output_state, + REFIID iid, + void **d3d11_resource); + + void (STDMETHODCALLTYPE *ReleaseWrappedResources)( + ID3D11On12Device *This, + ID3D11Resource *const *resources, + UINT count); + + void (STDMETHODCALLTYPE *AcquireWrappedResources)( + ID3D11On12Device *This, + ID3D11Resource *const *resources, + UINT count); + + END_INTERFACE +} ID3D11On12DeviceVtbl; + +interface ID3D11On12Device { + CONST_VTBL ID3D11On12DeviceVtbl* lpVtbl; +}; + +#ifdef COBJMACROS +#ifndef WIDL_C_INLINE_WRAPPERS +/*** IUnknown methods ***/ +#define ID3D11On12Device_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) +#define ID3D11On12Device_AddRef(This) (This)->lpVtbl->AddRef(This) +#define ID3D11On12Device_Release(This) (This)->lpVtbl->Release(This) +/*** ID3D11On12Device methods ***/ +#define ID3D11On12Device_CreateWrappedResource(This,d3d12_resource,flags,input_state,output_state,iid,d3d11_resource) (This)->lpVtbl->CreateWrappedResource(This,d3d12_resource,flags,input_state,output_state,iid,d3d11_resource) +#define ID3D11On12Device_ReleaseWrappedResources(This,resources,count) (This)->lpVtbl->ReleaseWrappedResources(This,resources,count) +#define ID3D11On12Device_AcquireWrappedResources(This,resources,count) (This)->lpVtbl->AcquireWrappedResources(This,resources,count) +#else +/*** IUnknown methods ***/ +static FORCEINLINE HRESULT ID3D11On12Device_QueryInterface(ID3D11On12Device* This,REFIID riid,void **ppvObject) { + return This->lpVtbl->QueryInterface(This,riid,ppvObject); +} +static FORCEINLINE ULONG ID3D11On12Device_AddRef(ID3D11On12Device* This) { + return This->lpVtbl->AddRef(This); +} +static FORCEINLINE ULONG ID3D11On12Device_Release(ID3D11On12Device* This) { + return This->lpVtbl->Release(This); +} +/*** ID3D11On12Device methods ***/ +static FORCEINLINE HRESULT ID3D11On12Device_CreateWrappedResource(ID3D11On12Device* This,IUnknown *d3d12_resource,const D3D11_RESOURCE_FLAGS *flags,D3D12_RESOURCE_STATES input_state,D3D12_RESOURCE_STATES output_state,REFIID iid,void **d3d11_resource) { + return This->lpVtbl->CreateWrappedResource(This,d3d12_resource,flags,input_state,output_state,iid,d3d11_resource); +} +static FORCEINLINE void ID3D11On12Device_ReleaseWrappedResources(ID3D11On12Device* This,ID3D11Resource *const *resources,UINT count) { + This->lpVtbl->ReleaseWrappedResources(This,resources,count); +} +static FORCEINLINE void ID3D11On12Device_AcquireWrappedResources(ID3D11On12Device* This,ID3D11Resource *const *resources,UINT count) { + This->lpVtbl->AcquireWrappedResources(This,resources,count); +} +#endif +#endif + +#endif + + +#endif /* __ID3D11On12Device_INTERFACE_DEFINED__ */ + +HRESULT __stdcall D3D11On12CreateDevice(IUnknown *device,UINT flags,const D3D_FEATURE_LEVEL *feature_levels,UINT feature_level_count,IUnknown *const *queues,UINT queue_count,UINT node_mask,ID3D11Device **d3d11_device,ID3D11DeviceContext **d3d11_immediate_context,D3D_FEATURE_LEVEL *obtained_feature_level); + +typedef HRESULT (__stdcall *PFN_D3D11ON12_CREATE_DEVICE)(IUnknown *device,UINT flags,const D3D_FEATURE_LEVEL *feature_levels,UINT feature_level_count,IUnknown *const *queues,UINT queue_count,UINT node_mask,ID3D11Device **d3d11_device,ID3D11DeviceContext **d3d11_immediate_context,D3D_FEATURE_LEVEL *obtained_feature_level); +/* Begin additional prototypes for all interfaces */ + + +/* End additional prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif /* __d3d11on12_h__ */ diff --git a/ProjectSettings/AudioManager.asset b/ProjectSettings/AudioManager.asset index 27287fe..07ebfb0 100644 --- a/ProjectSettings/AudioManager.asset +++ b/ProjectSettings/AudioManager.asset @@ -16,4 +16,4 @@ AudioManager: m_AmbisonicDecoderPlugin: m_DisableAudio: 0 m_VirtualizeEffects: 1 - m_RequestedDSPBufferSize: 0 + m_RequestedDSPBufferSize: 1024 diff --git a/ProjectSettings/DynamicsManager.asset b/ProjectSettings/DynamicsManager.asset index 6be6910..cdc1f3e 100644 --- a/ProjectSettings/DynamicsManager.asset +++ b/ProjectSettings/DynamicsManager.asset @@ -3,7 +3,7 @@ --- !u!55 &1 PhysicsManager: m_ObjectHideFlags: 0 - serializedVersion: 3 + serializedVersion: 11 m_Gravity: {x: 0, y: -9.81, z: 0} m_DefaultMaterial: {fileID: 0} m_BounceThreshold: 2 @@ -14,5 +14,21 @@ PhysicsManager: m_QueriesHitBackfaces: 0 m_QueriesHitTriggers: 1 m_EnableAdaptiveForce: 0 - m_EnablePCM: 1 + m_ClothInterCollisionDistance: 0 + m_ClothInterCollisionStiffness: 0 + m_ContactsGeneration: 1 m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + m_AutoSimulation: 1 + m_AutoSyncTransforms: 0 + m_ReuseCollisionCallbacks: 1 + m_ClothInterCollisionSettingsToggle: 0 + m_ContactPairsMode: 0 + m_BroadphaseType: 0 + m_WorldBounds: + m_Center: {x: 0, y: 0, z: 0} + m_Extent: {x: 250, y: 250, z: 250} + m_WorldSubdivisions: 8 + m_FrictionType: 0 + m_EnableEnhancedDeterminism: 0 + m_EnableUnifiedHeightmaps: 1 + m_DefaultMaxAngluarSpeed: 7 diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset index 1129522..8f98123 100644 --- a/ProjectSettings/EditorBuildSettings.asset +++ b/ProjectSettings/EditorBuildSettings.asset @@ -6,9 +6,6 @@ EditorBuildSettings: serializedVersion: 2 m_Scenes: - enabled: 1 - path: Assets/Quad.unity - guid: c102c4b7108b0844f89cbc73fd8a8fb6 - - enabled: 1 - path: Assets/Stress.unity - guid: 7b522f2feebfbc049b1711f4c5f20e92 + path: Assets/Benchmark.unity + guid: 58dcdb08bb9105547ba4115762d0ef21 m_configObjects: {} diff --git a/ProjectSettings/EditorSettings.asset b/ProjectSettings/EditorSettings.asset index 9ccec94..6e03238 100644 --- a/ProjectSettings/EditorSettings.asset +++ b/ProjectSettings/EditorSettings.asset @@ -3,8 +3,7 @@ --- !u!159 &1 EditorSettings: m_ObjectHideFlags: 0 - serializedVersion: 9 - m_ExternalVersionControlSupport: Visible Meta Files + serializedVersion: 11 m_SerializationMode: 2 m_LineEndingsForNewScripts: 1 m_DefaultBehaviorMode: 0 @@ -12,24 +11,30 @@ EditorSettings: m_PrefabUIEnvironment: {fileID: 0} m_SpritePackerMode: 0 m_SpritePackerPaddingPower: 1 - m_EtcTextureCompressorBehavior: 0 - m_EtcTextureFastCompressor: 2 + m_EtcTextureCompressorBehavior: 1 + m_EtcTextureFastCompressor: 1 m_EtcTextureNormalCompressor: 2 - m_EtcTextureBestCompressor: 5 - m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmref + m_EtcTextureBestCompressor: 4 + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref m_ProjectGenerationRootNamespace: - m_CollabEditorSettings: - inProgressEnabled: 1 m_EnableTextureStreamingInEditMode: 1 m_EnableTextureStreamingInPlayMode: 1 m_AsyncShaderCompilation: 1 - m_EnterPlayModeOptionsEnabled: 0 + m_CachingShaderPreprocessor: 1 + m_PrefabModeAllowAutoSave: 1 + m_EnterPlayModeOptionsEnabled: 1 m_EnterPlayModeOptions: 3 - m_ShowLightmapResolutionOverlay: 1 - m_UseLegacyProbeSampleCount: 1 + m_GameObjectNamingDigits: 1 + m_GameObjectNamingScheme: 0 + m_AssetNamingUsesSpace: 1 + m_UseLegacyProbeSampleCount: 0 + m_SerializeInlineMappingsOnOneLine: 1 + m_DisableCookiesInLightmapper: 0 m_AssetPipelineMode: 1 m_CacheServerMode: 0 m_CacheServerEndpoint: m_CacheServerNamespacePrefix: default m_CacheServerEnableDownload: 1 m_CacheServerEnableUpload: 1 + m_CacheServerEnableAuth: 0 + m_CacheServerEnableTls: 0 diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset index 79eba95..9bc289a 100644 --- a/ProjectSettings/GraphicsSettings.asset +++ b/ProjectSettings/GraphicsSettings.asset @@ -28,6 +28,7 @@ GraphicsSettings: m_LensFlare: m_Mode: 1 m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} + m_VideoShadersIncludeMode: 2 m_AlwaysIncludedShaders: - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} @@ -35,13 +36,9 @@ GraphicsSettings: - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} m_PreloadedShaders: [] - m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, - type: 0} - m_CustomRenderPipeline: {fileID: 0} + m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_CustomRenderPipeline: {fileID: 11400000, guid: a817dc55f0eb8dc468415b739ceae0d2, type: 2} m_TransparencySortMode: 0 m_TransparencySortAxis: {x: 0, y: 0, z: 1} m_DefaultRenderingPath: 1 @@ -62,5 +59,5 @@ GraphicsSettings: m_AlbedoSwatchInfos: [] m_LightsUseLinearIntensity: 0 m_LightsUseColorTemperature: 0 + m_DefaultRenderingLayerMask: 1 m_LogWhenShaderIsCompiled: 0 - m_AllowEnlightenSupportForUpgradedProject: 1 diff --git a/ProjectSettings/InputManager.asset b/ProjectSettings/InputManager.asset index 17c8f53..b16147e 100644 --- a/ProjectSettings/InputManager.asset +++ b/ProjectSettings/InputManager.asset @@ -293,3 +293,195 @@ InputManager: type: 0 axis: 0 joyNum: 0 + - serializedVersion: 3 + m_Name: Enable Debug Button 1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left ctrl + altNegativeButton: + altPositiveButton: joystick button 8 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Enable Debug Button 2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: backspace + altNegativeButton: + altPositiveButton: joystick button 9 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Reset + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left alt + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Next + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: page down + altNegativeButton: + altPositiveButton: joystick button 5 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Previous + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: page up + altNegativeButton: + altPositiveButton: joystick button 4 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Validate + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: return + altNegativeButton: + altPositiveButton: joystick button 0 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Persistent + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: right shift + altNegativeButton: + altPositiveButton: joystick button 2 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Multiplier + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left shift + altNegativeButton: + altPositiveButton: joystick button 3 + gravity: 0 + dead: 0 + sensitivity: 0 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 2 + axis: 6 + joyNum: 0 + - serializedVersion: 3 + m_Name: Debug Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 2 + axis: 5 + joyNum: 0 diff --git a/ProjectSettings/NavMeshAreas.asset b/ProjectSettings/NavMeshAreas.asset index 6dd520f..3b0b7c3 100644 --- a/ProjectSettings/NavMeshAreas.asset +++ b/ProjectSettings/NavMeshAreas.asset @@ -85,5 +85,7 @@ NavMeshProjectSettings: manualTileSize: 0 tileSize: 256 accuratePlacement: 0 + debug: + m_Flags: 0 m_SettingNames: - Humanoid diff --git a/ProjectSettings/NetworkManager.asset b/ProjectSettings/NetworkManager.asset deleted file mode 100644 index 5dc6a83..0000000 --- a/ProjectSettings/NetworkManager.asset +++ /dev/null @@ -1,8 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!149 &1 -NetworkManager: - m_ObjectHideFlags: 0 - m_DebugLevel: 0 - m_Sendrate: 15 - m_AssetToPrefab: {} diff --git a/ProjectSettings/PackageManagerSettings.asset b/ProjectSettings/PackageManagerSettings.asset new file mode 100644 index 0000000..be4a797 --- /dev/null +++ b/ProjectSettings/PackageManagerSettings.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 61 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_EnablePreviewPackages: 0 + m_EnablePackageDependencies: 0 + m_AdvancedSettingsExpanded: 1 + m_ScopedRegistriesSettingsExpanded: 1 + oneTimeWarningShown: 0 + m_Registries: + - m_Id: main + m_Name: + m_Url: https://packages.unity.com + m_Scopes: [] + m_IsDefault: 1 + m_Capabilities: 7 + m_UserSelectedRegistryName: + m_UserAddingNewScopedRegistry: 0 + m_RegistryInfoDraft: + m_ErrorMessage: + m_Original: + m_Id: + m_Name: + m_Url: + m_Scopes: [] + m_IsDefault: 0 + m_Capabilities: 0 + m_Modified: 0 + m_Name: + m_Url: + m_Scopes: + - + m_SelectedScopeIndex: 0 diff --git a/ProjectSettings/Physics2DSettings.asset b/ProjectSettings/Physics2DSettings.asset index 4e4b30d..47880b1 100644 --- a/ProjectSettings/Physics2DSettings.asset +++ b/ProjectSettings/Physics2DSettings.asset @@ -3,7 +3,7 @@ --- !u!19 &1 Physics2DSettings: m_ObjectHideFlags: 0 - serializedVersion: 3 + serializedVersion: 4 m_Gravity: {x: 0, y: -9.81} m_DefaultMaterial: {fileID: 0} m_VelocityIterations: 8 @@ -19,9 +19,31 @@ Physics2DSettings: m_LinearSleepTolerance: 0.01 m_AngularSleepTolerance: 2 m_DefaultContactOffset: 0.01 + m_JobOptions: + serializedVersion: 2 + useMultithreading: 0 + useConsistencySorting: 0 + m_InterpolationPosesPerJob: 100 + m_NewContactsPerJob: 30 + m_CollideContactsPerJob: 100 + m_ClearFlagsPerJob: 200 + m_ClearBodyForcesPerJob: 200 + m_SyncDiscreteFixturesPerJob: 50 + m_SyncContinuousFixturesPerJob: 50 + m_FindNearestContactsPerJob: 100 + m_UpdateTriggerContactsPerJob: 100 + m_IslandSolverCostThreshold: 100 + m_IslandSolverBodyCostScale: 1 + m_IslandSolverContactCostScale: 10 + m_IslandSolverJointCostScale: 10 + m_IslandSolverBodiesPerJob: 50 + m_IslandSolverContactsPerJob: 50 + m_AutoSimulation: 1 m_QueriesHitTriggers: 1 m_QueriesStartInColliders: 1 - m_ChangeStopsCallbacks: 0 + m_CallbacksOnDisable: 1 + m_ReuseCollisionCallbacks: 1 + m_AutoSyncTransforms: 0 m_AlwaysShowColliders: 0 m_ShowColliderSleep: 1 m_ShowColliderContacts: 0 diff --git a/ProjectSettings/PresetManager.asset b/ProjectSettings/PresetManager.asset index 636a595..67a94da 100644 --- a/ProjectSettings/PresetManager.asset +++ b/ProjectSettings/PresetManager.asset @@ -3,4 +3,5 @@ --- !u!1386491679 &1 PresetManager: m_ObjectHideFlags: 0 - m_DefaultList: [] + serializedVersion: 2 + m_DefaultPresets: {} diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index b4a4ef7..e74c7b4 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -3,8 +3,8 @@ --- !u!129 &1 PlayerSettings: m_ObjectHideFlags: 0 - serializedVersion: 20 - productGUID: 3899458a6bef4a947bf6da1f7535b68e + serializedVersion: 22 + productGUID: 72aeda38d28d16447bd9843257ba2cf4 AndroidProfiler: 0 AndroidFilterTouchesWhenObscured: 0 AndroidEnableSustainedPerformanceMode: 0 @@ -42,13 +42,15 @@ PlayerSettings: m_SplashScreenLogos: [] m_VirtualRealitySplashScreen: {fileID: 0} m_HolographicTrackingLossScreen: {fileID: 0} - defaultScreenWidth: 1280 - defaultScreenHeight: 720 + defaultScreenWidth: 1920 + defaultScreenHeight: 1080 defaultScreenWidthWeb: 960 defaultScreenHeightWeb: 600 m_StereoRenderingPath: 0 - m_ActiveColorSpace: 1 + m_ActiveColorSpace: 0 m_MTRendering: 1 + mipStripping: 0 + numberOfMipsStripped: 0 m_StackTraceTypes: 010000000100000001000000010000000100000001000000 iosShowActivityIndicatorOnLoading: -1 androidShowActivityIndicatorOnLoading: -1 @@ -64,7 +66,7 @@ PlayerSettings: disableDepthAndStencilBuffers: 0 androidStartInFullscreen: 1 androidRenderOutsideSafeArea: 1 - androidUseSwappy: 0 + androidUseSwappy: 1 androidBlitType: 0 defaultIsNativeResolution: 1 macRetinaSupport: 1 @@ -83,13 +85,13 @@ PlayerSettings: resizableWindow: 0 useMacAppStoreValidation: 0 macAppStoreCategory: public.app-category.games - gpuSkinning: 0 + gpuSkinning: 1 xboxPIXTextureCapture: 0 xboxEnableAvatar: 0 xboxEnableKinect: 0 xboxEnableKinectAutoTracking: 0 xboxEnableFitness: 0 - visibleInBackground: 0 + visibleInBackground: 1 allowFullscreenSwitch: 1 fullscreenMode: 3 xboxSpeechDB: 0 @@ -111,47 +113,28 @@ PlayerSettings: switchNVNShaderPoolsGranularity: 33554432 switchNVNDefaultPoolsGranularity: 16777216 switchNVNOtherPoolsGranularity: 16777216 + switchNVNMaxPublicTextureIDCount: 0 + switchNVNMaxPublicSamplerIDCount: 0 + stadiaPresentMode: 0 + stadiaTargetFramerate: 0 vulkanNumSwapchainBuffers: 3 vulkanEnableSetSRGBWrite: 0 + vulkanEnablePreTransform: 0 + vulkanEnableLateAcquireNextImage: 0 m_SupportedAspectRatios: 4:3: 1 5:4: 1 16:10: 1 16:9: 1 Others: 1 - bundleVersion: 1.0 + bundleVersion: 0.1 preloadedAssets: [] metroInputSource: 0 wsaTransparentSwapchain: 0 m_HolographicPauseOnTrackingLoss: 1 - xboxOneDisableKinectGpuReservation: 0 - xboxOneEnable7thCore: 0 + xboxOneDisableKinectGpuReservation: 1 + xboxOneEnable7thCore: 1 vrSettings: - cardboard: - depthFormat: 0 - enableTransitionView: 0 - daydream: - depthFormat: 0 - useSustainedPerformanceMode: 0 - enableVideoLayer: 0 - useProtectedVideoMemory: 0 - minimumSupportedHeadTracking: 0 - maximumSupportedHeadTracking: 1 - hololens: - depthFormat: 1 - depthBufferSharingEnabled: 0 - lumin: - depthFormat: 0 - frameTiming: 2 - enableGLCache: 0 - glCacheMaxBlobSize: 524288 - glCacheMaxFileSize: 8388608 - oculus: - sharedDepthBuffer: 0 - dashSupport: 0 - lowOverheadMode: 0 - protectedContext: 0 - v2Signing: 1 enable360StereoCapture: 0 isWsaHolographicRemotingEnabled: 0 enableFrameTimingStats: 0 @@ -162,8 +145,13 @@ PlayerSettings: resolutionScalingMode: 0 androidSupportedAspectRatio: 1 androidMaxAspectRatio: 2.1 - applicationIdentifier: {} - buildNumber: {} + applicationIdentifier: + Standalone: com.DefaultCompany.KlakSpout + buildNumber: + Standalone: 0 + iPhone: 0 + tvOS: 0 + overrideDefaultApplicationIdentifier: 0 AndroidBundleVersionCode: 1 AndroidMinSdkVersion: 19 AndroidTargetSdkVersion: 0 @@ -177,35 +165,19 @@ PlayerSettings: CreateWallpaper: 0 APKExpansionFiles: 0 keepLoadedShadersAlive: 0 - StripUnusedMeshComponents: 0 - VertexChannelCompressionMask: 214 + StripUnusedMeshComponents: 1 + VertexChannelCompressionMask: 4054 iPhoneSdkVersion: 988 - iOSTargetOSVersionString: 10.0 + iOSTargetOSVersionString: 11.0 tvOSSdkVersion: 0 tvOSRequireExtendedGameController: 0 - tvOSTargetOSVersionString: 10.0 + tvOSTargetOSVersionString: 11.0 uIPrerenderedIcon: 0 uIRequiresPersistentWiFi: 0 uIRequiresFullScreen: 1 uIStatusBarHidden: 1 uIExitOnSuspend: 0 uIStatusBarStyle: 0 - iPhoneSplashScreen: {fileID: 0} - iPhoneHighResSplashScreen: {fileID: 0} - iPhoneTallHighResSplashScreen: {fileID: 0} - iPhone47inSplashScreen: {fileID: 0} - iPhone55inPortraitSplashScreen: {fileID: 0} - iPhone55inLandscapeSplashScreen: {fileID: 0} - iPhone58inPortraitSplashScreen: {fileID: 0} - iPhone58inLandscapeSplashScreen: {fileID: 0} - iPadPortraitSplashScreen: {fileID: 0} - iPadHighResPortraitSplashScreen: {fileID: 0} - iPadLandscapeSplashScreen: {fileID: 0} - iPadHighResLandscapeSplashScreen: {fileID: 0} - iPhone65inPortraitSplashScreen: {fileID: 0} - iPhone65inLandscapeSplashScreen: {fileID: 0} - iPhone61inPortraitSplashScreen: {fileID: 0} - iPhone61inLandscapeSplashScreen: {fileID: 0} appleTVSplashScreen: {fileID: 0} appleTVSplashScreen2x: {fileID: 0} tvOSSmallIconLayers: [] @@ -233,15 +205,16 @@ PlayerSettings: iOSLaunchScreeniPadFillPct: 100 iOSLaunchScreeniPadSize: 100 iOSLaunchScreeniPadCustomXibPath: - iOSUseLaunchScreenStoryboard: 0 iOSLaunchScreenCustomStoryboardPath: + iOSLaunchScreeniPadCustomStoryboardPath: iOSDeviceRequirements: [] iOSURLSchemes: [] iOSBackgroundModes: 0 iOSMetalForceHardShadows: 0 metalEditorSupport: 1 metalAPIValidation: 1 - iOSRenderExtraFrameOnPause: 1 + iOSRenderExtraFrameOnPause: 0 + iosCopyPluginsCodeInsteadOfSymlink: 0 appleDeveloperTeamID: iOSManualSigningProvisioningProfileID: tvOSManualSigningProvisioningProfileID: @@ -251,16 +224,24 @@ PlayerSettings: iOSRequireARKit: 0 iOSAutomaticallyDetectAndAddCapabilities: 1 appleEnableProMotion: 0 - clonedFromGUID: 00000000000000000000000000000000 - templatePackageId: - templateDefaultScene: - AndroidTargetArchitectures: 5 + shaderPrecisionModel: 0 + clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea + templatePackageId: com.unity.template.3d@5.0.4 + templateDefaultScene: Assets/Scenes/SampleScene.unity + useCustomMainManifest: 0 + useCustomLauncherManifest: 0 + useCustomMainGradleTemplate: 0 + useCustomLauncherGradleManifest: 0 + useCustomBaseGradleTemplate: 0 + useCustomGradlePropertiesTemplate: 0 + useCustomProguardFile: 0 + AndroidTargetArchitectures: 1 AndroidSplashScreenScale: 0 androidSplashScreen: {fileID: 0} - AndroidKeystoreName: '{inproject}: ' + AndroidKeystoreName: AndroidKeyaliasName: AndroidBuildApkPerCpuArchitecture: 0 - AndroidTVCompatibility: 1 + AndroidTVCompatibility: 0 AndroidIsGame: 1 AndroidEnableTango: 0 androidEnableBanner: 1 @@ -271,6 +252,9 @@ PlayerSettings: height: 180 banner: {fileID: 0} androidGamepadSupportLevel: 0 + AndroidMinifyWithR8: 0 + AndroidMinifyRelease: 0 + AndroidMinifyDebug: 0 AndroidValidateAppBundleSize: 1 AndroidAppBundleSizeToValidate: 150 m_BuildTargetIcons: [] @@ -278,28 +262,40 @@ PlayerSettings: m_BuildTargetBatching: - m_BuildTarget: Standalone m_StaticBatching: 1 - m_DynamicBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: tvOS + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: Android + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: iPhone + m_StaticBatching: 1 + m_DynamicBatching: 0 + - m_BuildTarget: WebGL + m_StaticBatching: 0 + m_DynamicBatching: 0 m_BuildTargetGraphicsJobs: - m_BuildTarget: MacStandaloneSupport m_GraphicsJobs: 0 - m_BuildTarget: Switch - m_GraphicsJobs: 0 + m_GraphicsJobs: 1 - m_BuildTarget: MetroSupport - m_GraphicsJobs: 0 + m_GraphicsJobs: 1 - m_BuildTarget: AppleTVSupport m_GraphicsJobs: 0 - m_BuildTarget: BJMSupport - m_GraphicsJobs: 0 + m_GraphicsJobs: 1 - m_BuildTarget: LinuxStandaloneSupport - m_GraphicsJobs: 0 + m_GraphicsJobs: 1 - m_BuildTarget: PS4Player - m_GraphicsJobs: 0 + m_GraphicsJobs: 1 - m_BuildTarget: iOSSupport m_GraphicsJobs: 0 - m_BuildTarget: WindowsStandaloneSupport - m_GraphicsJobs: 0 + m_GraphicsJobs: 1 - m_BuildTarget: XboxOnePlayer - m_GraphicsJobs: 0 + m_GraphicsJobs: 1 - m_BuildTarget: LuminSupport m_GraphicsJobs: 0 - m_BuildTarget: AndroidPlayer @@ -311,23 +307,39 @@ PlayerSettings: m_GraphicsJobMode: 0 - m_BuildTarget: XboxOnePlayer m_GraphicsJobMode: 0 - m_BuildTargetGraphicsAPIs: [] - m_BuildTargetVRSettings: [] + m_BuildTargetGraphicsAPIs: + - m_BuildTarget: AndroidPlayer + m_APIs: 150000000b000000 + m_Automatic: 0 + - m_BuildTarget: iOSSupport + m_APIs: 10000000 + m_Automatic: 1 + - m_BuildTarget: AppleTVSupport + m_APIs: 10000000 + m_Automatic: 1 + - m_BuildTarget: WebGLSupport + m_APIs: 0b000000 + m_Automatic: 1 + - m_BuildTarget: WindowsStandaloneSupport + m_APIs: 0200000012000000 + m_Automatic: 0 + m_BuildTargetVRSettings: + - m_BuildTarget: Standalone + m_Enabled: 0 + m_Devices: + - Oculus + - OpenVR openGLRequireES31: 0 openGLRequireES31AEP: 0 openGLRequireES32: 0 m_TemplateCustomTags: {} mobileMTRendering: + Android: 1 iPhone: 1 tvOS: 1 - m_BuildTargetGroupLightmapEncodingQuality: - - m_BuildTarget: Standalone - m_EncodingQuality: 1 - - m_BuildTarget: XboxOne - m_EncodingQuality: 1 - - m_BuildTarget: PS4 - m_EncodingQuality: 1 + m_BuildTargetGroupLightmapEncodingQuality: [] m_BuildTargetGroupLightmapSettings: [] + m_BuildTargetNormalMapEncoding: [] playModeTestRunnerEnabled: 0 runPlayModeTestAsEditModeTest: 0 actionOnDotNetUnhandledException: 1 @@ -337,13 +349,15 @@ PlayerSettings: cameraUsageDescription: locationUsageDescription: microphoneUsageDescription: + switchNMETAOverride: switchNetLibKey: switchSocketMemoryPoolSize: 6144 switchSocketAllocatorPoolSize: 128 switchSocketConcurrencyLimit: 14 switchScreenResolutionBehavior: 2 switchUseCPUProfiler: 0 - switchApplicationID: 0x0005000C10000001 + switchUseGOLDLinker: 0 + switchApplicationID: 0x01004b9000490000 switchNSODependencies: switchTitleNames_0: switchTitleNames_1: @@ -360,6 +374,7 @@ PlayerSettings: switchTitleNames_12: switchTitleNames_13: switchTitleNames_14: + switchTitleNames_15: switchPublisherNames_0: switchPublisherNames_1: switchPublisherNames_2: @@ -375,6 +390,7 @@ PlayerSettings: switchPublisherNames_12: switchPublisherNames_13: switchPublisherNames_14: + switchPublisherNames_15: switchIcons_0: {fileID: 0} switchIcons_1: {fileID: 0} switchIcons_2: {fileID: 0} @@ -390,6 +406,7 @@ PlayerSettings: switchIcons_12: {fileID: 0} switchIcons_13: {fileID: 0} switchIcons_14: {fileID: 0} + switchIcons_15: {fileID: 0} switchSmallIcons_0: {fileID: 0} switchSmallIcons_1: {fileID: 0} switchSmallIcons_2: {fileID: 0} @@ -405,11 +422,12 @@ PlayerSettings: switchSmallIcons_12: {fileID: 0} switchSmallIcons_13: {fileID: 0} switchSmallIcons_14: {fileID: 0} + switchSmallIcons_15: {fileID: 0} switchManualHTML: switchAccessibleURLs: switchLegalInformation: switchMainThreadStackSize: 1048576 - switchPresenceGroupId: 0x0005000C10000001 + switchPresenceGroupId: switchLogoHandling: 0 switchReleaseVersion: 0 switchDisplayVersion: 1.0.0 @@ -421,8 +439,8 @@ PlayerSettings: switchUserAccountSaveDataSize: 0 switchUserAccountSaveDataJournalSize: 0 switchApplicationAttribute: 0 - switchCardSpecSize: 4 - switchCardSpecClock: 25 + switchCardSpecSize: -1 + switchCardSpecClock: -1 switchRatingsMask: 0 switchRatingsInt_0: 0 switchRatingsInt_1: 0 @@ -437,7 +455,7 @@ PlayerSettings: switchRatingsInt_10: 0 switchRatingsInt_11: 0 switchRatingsInt_12: 0 - switchLocalCommunicationIds_0: 0x0005000C10000001 + switchLocalCommunicationIds_0: switchLocalCommunicationIds_1: switchLocalCommunicationIds_2: switchLocalCommunicationIds_3: @@ -452,7 +470,7 @@ PlayerSettings: switchDataLossConfirmation: 0 switchUserAccountLockEnabled: 0 switchSystemResourceMemory: 16777216 - switchSupportedNpadStyles: 3 + switchSupportedNpadStyles: 22 switchNativeFsCacheSize: 32 switchIsHoldTypeHorizontal: 0 switchSupportedNpadCount: 8 @@ -467,10 +485,13 @@ PlayerSettings: switchSocketInitializeEnabled: 1 switchNetworkInterfaceManagerInitializeEnabled: 1 switchPlayerConnectionEnabled: 1 + switchUseNewStyleFilepaths: 0 + switchUseMicroSleepForYield: 1 + switchMicroSleepForYieldTime: 25 ps4NPAgeRating: 12 ps4NPTitleSecret: ps4NPTrophyPackPath: - ps4ParentalLevel: 1 + ps4ParentalLevel: 11 ps4ContentID: ED1633-NPXX51362_00-0000000000000000 ps4Category: 0 ps4MasterVersion: 01.00 @@ -480,7 +501,7 @@ PlayerSettings: ps4VideoOutPixelFormat: 0 ps4VideoOutInitialWidth: 1920 ps4VideoOutBaseModeInitialWidth: 1920 - ps4VideoOutReprojectionRate: 120 + ps4VideoOutReprojectionRate: 60 ps4PronunciationXMLPath: ps4PronunciationSIGPath: ps4BackgroundImagePath: @@ -493,6 +514,7 @@ PlayerSettings: ps4ShareFilePath: ps4ShareOverlayImagePath: ps4PrivacyGuardImagePath: + ps4ExtraSceSysFile: ps4NPtitleDatPath: ps4RemotePlayKeyAssignment: -1 ps4RemotePlayKeyMappingDir: @@ -520,7 +542,7 @@ PlayerSettings: ps4UseAudio3dBackend: 0 ps4UseLowGarlicFragmentationMode: 1 ps4SocialScreenEnabled: 0 - ps4ScriptOptimizationLevel: 3 + ps4ScriptOptimizationLevel: 0 ps4Audio3dVirtualSpeakerCount: 14 ps4attribCpuUsage: 0 ps4PatchPkgPath: @@ -535,30 +557,20 @@ PlayerSettings: ps4disableAutoHideSplash: 0 ps4videoRecordingFeaturesUsed: 0 ps4contentSearchFeaturesUsed: 0 + ps4CompatibilityPS5: 0 + ps4GPU800MHz: 1 ps4attribEyeToEyeDistanceSettingVR: 0 - ps4IncludedModules: - - libc.prx - - libSceAudioLatencyEstimation.prx - - libSceFace.prx - - libSceFaceTracker.prx - - libSceFios2.prx - - libSceHand.prx - - libSceHandTracker.prx - - libSceHeadTracker.prx - - libSceJobManager.prx - - libSceNpToolkit.prx - - libSceS3DConversion.prx - - libSceSmart.prx + ps4IncludedModules: [] ps4attribVROutputEnabled: 0 monoEnv: splashScreenBackgroundSourceLandscape: {fileID: 0} splashScreenBackgroundSourcePortrait: {fileID: 0} blurSplashScreenBackground: 1 spritePackerPolicy: - webGLMemorySize: 256 + webGLMemorySize: 16 webGLExceptionSupport: 1 webGLNameFilesAsHashes: 0 - webGLDataCaching: 0 + webGLDataCaching: 1 webGLDebugSymbols: 0 webGLEmscriptenArgs: webGLModulesDirectory: @@ -566,31 +578,38 @@ PlayerSettings: webGLAnalyzeBuildSize: 0 webGLUseEmbeddedResources: 0 webGLCompressionFormat: 1 + webGLWasmArithmeticExceptions: 0 webGLLinkerTarget: 1 webGLThreadsSupport: 0 - webGLWasmStreaming: 0 + webGLDecompressionFallback: 0 scriptingDefineSymbols: {} + additionalCompilerArguments: {} platformArchitecture: {} scriptingBackend: {} il2cppCompilerConfiguration: {} managedStrippingLevel: {} incrementalIl2cppBuild: {} + suppressCommonWarnings: 1 allowUnsafeCode: 0 + useDeterministicCompilation: 1 + useReferenceAssemblies: 1 + enableRoslynAnalyzers: 1 additionalIl2CppArgs: scriptingRuntimeVersion: 1 - gcIncremental: 0 + gcIncremental: 1 + assemblyVersionValidation: 1 gcWBarrierValidation: 0 apiCompatibilityLevelPerPlatform: {} m_RenderingPath: 1 m_MobileRenderingPath: 1 - metroPackageName: KlakSpout + metroPackageName: Template_3D metroPackageVersion: metroCertificatePath: metroCertificatePassword: metroCertificateSubject: metroCertificateIssuer: metroCertificateNotAfter: 0000000000000000 - metroApplicationDescription: KlakSpout + metroApplicationDescription: Template_3D wsaImages: {} metroTileShortName: metroTileShowName: 0 @@ -602,8 +621,7 @@ PlayerSettings: metroDefaultTileSize: 1 metroTileForegroundText: 2 metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} - metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, - a: 1} + metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} metroSplashScreenUseBackgroundColor: 0 platformCapabilities: {} metroTargetDeviceFamilies: {} @@ -628,7 +646,8 @@ PlayerSettings: XboxOneCapability: [] XboxOneGameRating: {} XboxOneIsContentPackage: 0 - XboxOneEnableGPUVariability: 0 + XboxOneEnhancedXboxCompatibilityMode: 0 + XboxOneEnableGPUVariability: 1 XboxOneSockets: {} XboxOneSplashScreen: {fileID: 0} XboxOneAllowedProductIds: [] @@ -636,11 +655,9 @@ PlayerSettings: XboxOneXTitleMemory: 8 XboxOneOverrideIdentityName: XboxOneOverrideIdentityPublisher: - vrEditorSettings: - daydream: - daydreamIconForeground: {fileID: 0} - daydreamIconBackground: {fileID: 0} - cloudServicesEnabled: {} + vrEditorSettings: {} + cloudServicesEnabled: + UNet: 1 luminIcon: m_Name: m_ModelFolderPath: @@ -653,11 +670,12 @@ PlayerSettings: m_VersionCode: 1 m_VersionName: apiCompatibilityLevel: 6 + activeInputHandler: 0 cloudProjectId: framebufferDepthMemorylessMode: 0 + qualitySettingsNames: [] projectName: organizationId: cloudEnabled: 0 - enableNativePlatformBackendsForNewInputSystem: 0 - disableOldInputManagerSupport: 0 - legacyClampBlendShapeWeights: 1 + legacyClampBlendShapeWeights: 0 + virtualTexturingSupportEnabled: 0 diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt index 1c8f32f..79c71bc 100644 --- a/ProjectSettings/ProjectVersion.txt +++ b/ProjectSettings/ProjectVersion.txt @@ -1,2 +1,2 @@ -m_EditorVersion: 2019.3.10f1 -m_EditorVersionWithRevision: 2019.3.10f1 (5968d7f82152) +m_EditorVersion: 2020.3.12f1 +m_EditorVersionWithRevision: 2020.3.12f1 (b3b2c6512326) diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset index 06e8c63..324fd39 100644 --- a/ProjectSettings/QualitySettings.asset +++ b/ProjectSettings/QualitySettings.asset @@ -7,27 +7,27 @@ QualitySettings: m_CurrentQuality: 0 m_QualitySettings: - serializedVersion: 2 - name: Good - pixelLightCount: 2 - shadows: 2 - shadowResolution: 1 + name: Medium + pixelLightCount: 1 + shadows: 1 + shadowResolution: 0 shadowProjection: 1 - shadowCascades: 2 - shadowDistance: 40 + shadowCascades: 1 + shadowDistance: 20 shadowNearPlaneOffset: 3 shadowCascade2Split: 0.33333334 shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - shadowmaskMode: 1 + shadowmaskMode: 0 skinWeights: 2 textureQuality: 0 anisotropicTextures: 1 - antiAliasing: 8 + antiAliasing: 0 softParticles: 0 - softVegetation: 1 - realtimeReflectionProbes: 1 - billboardsFaceCameraPosition: 1 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 vSyncCount: 1 - lodBias: 1 + lodBias: 0.7 maximumLODLevel: 0 streamingMipmapsActive: 0 streamingMipmapsAddAllCameras: 1 @@ -35,25 +35,23 @@ QualitySettings: streamingMipmapsRenderersPerFrame: 512 streamingMipmapsMaxLevelReduction: 2 streamingMipmapsMaxFileIORequests: 1024 - particleRaycastBudget: 256 + particleRaycastBudget: 64 asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 4 + asyncUploadBufferSize: 16 asyncUploadPersistentBuffer: 1 resolutionScalingFixedDPIFactor: 1 customRenderPipeline: {fileID: 0} excludedTargetPlatforms: [] m_PerPlatformDefaultQuality: Android: 0 + Lumin: 0 Nintendo 3DS: 0 + Nintendo Switch: 0 PS4: 0 - PSM: 0 PSP2: 0 - Samsung TV: 0 + Stadia: 0 Standalone: 0 - Tizen: 0 - Web: 0 WebGL: 0 - WiiU: 0 Windows Store Apps: 0 XboxOne: 0 iPhone: 0 diff --git a/ProjectSettings/SceneTemplateSettings.json b/ProjectSettings/SceneTemplateSettings.json new file mode 100644 index 0000000..6f3e60f --- /dev/null +++ b/ProjectSettings/SceneTemplateSettings.json @@ -0,0 +1,167 @@ +{ + "templatePinStates": [], + "dependencyTypeInfos": [ + { + "userAdded": false, + "type": "UnityEngine.AnimationClip", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEditor.Animations.AnimatorController", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.AnimatorOverrideController", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEditor.Audio.AudioMixerController", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.ComputeShader", + "ignore": true, + "defaultInstantiationMode": 1, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.Cubemap", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.GameObject", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEditor.LightingDataAsset", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": false + }, + { + "userAdded": false, + "type": "UnityEngine.LightingSettings", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.Material", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEditor.MonoScript", + "ignore": true, + "defaultInstantiationMode": 1, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.PhysicMaterial", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.PhysicsMaterial2D", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.Rendering.VolumeProfile", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEditor.SceneAsset", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": false + }, + { + "userAdded": false, + "type": "UnityEngine.Shader", + "ignore": true, + "defaultInstantiationMode": 1, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.ShaderVariantCollection", + "ignore": true, + "defaultInstantiationMode": 1, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.Texture", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.Texture2D", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + }, + { + "userAdded": false, + "type": "UnityEngine.Timeline.TimelineAsset", + "ignore": false, + "defaultInstantiationMode": 0, + "supportsModification": true + } + ], + "defaultDependencyTypeInfo": { + "userAdded": false, + "type": "", + "ignore": false, + "defaultInstantiationMode": 1, + "supportsModification": true + }, + "newSceneOverride": 0 +} \ No newline at end of file diff --git a/ProjectSettings/URPProjectSettings.asset b/ProjectSettings/URPProjectSettings.asset new file mode 100644 index 0000000..3077404 --- /dev/null +++ b/ProjectSettings/URPProjectSettings.asset @@ -0,0 +1,15 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 61 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 247994e1f5a72c2419c26a37e9334c01, type: 3} + m_Name: + m_EditorClassIdentifier: + m_LastMaterialVersion: 4 diff --git a/ProjectSettings/UnityConnectSettings.asset b/ProjectSettings/UnityConnectSettings.asset index fa0b146..6125b30 100644 --- a/ProjectSettings/UnityConnectSettings.asset +++ b/ProjectSettings/UnityConnectSettings.asset @@ -9,6 +9,7 @@ UnityConnectSettings: m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events m_EventUrl: https://cdp.cloud.unity3d.com/v1/events m_ConfigUrl: https://config.uca.cloud.unity3d.com + m_DashboardUrl: https://dashboard.unity3d.com m_TestInitMode: 0 CrashReportingSettings: m_EventUrl: https://perf-events.cloud.unity3d.com diff --git a/ProjectSettings/VFXManager.asset b/ProjectSettings/VFXManager.asset index 6e0eaca..3a95c98 100644 --- a/ProjectSettings/VFXManager.asset +++ b/ProjectSettings/VFXManager.asset @@ -6,6 +6,7 @@ VFXManager: m_IndirectShader: {fileID: 0} m_CopyBufferShader: {fileID: 0} m_SortShader: {fileID: 0} + m_StripUpdateShader: {fileID: 0} m_RenderPipeSettingsPath: m_FixedTimeStep: 0.016666668 m_MaxDeltaTime: 0.05 diff --git a/ProjectSettings/VersionControlSettings.asset b/ProjectSettings/VersionControlSettings.asset new file mode 100644 index 0000000..dca2881 --- /dev/null +++ b/ProjectSettings/VersionControlSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!890905787 &1 +VersionControlSettings: + m_ObjectHideFlags: 0 + m_Mode: Visible Meta Files + m_CollabEditorSettings: + inProgressEnabled: 1 diff --git a/README.md b/README.md index 0782072..68fbfd1 100644 --- a/README.md +++ b/README.md @@ -9,20 +9,11 @@ applications using the [Spout] system. [Spout]: http://spout.zeal.co/ -Spout is a video sharing system for Windows that allows applications to share -frames in real time without incurring significant performance overhead. It's -supported by several applications (MadMapper, Resolume, etc.) and frameworks -(Processing, openFrameworks, etc.). It works in a similar way to [Syphon] for -Mac, and it's similarly useful for projection mapping and VJing. - -[Syphon]: http://syphon.v002.info/ - System requirements ------------------- -- Unity 2019.3 -- KlakSpout only supports Direct3D 11 (DX11) graphics API mode. Other APIs - (DX12, OpenGL, Vulkan) are not supported at the moment. +- Unity 2020.3 or later +- Direct3D 11 and 12 How to install -------------- @@ -45,7 +36,7 @@ To the `scopedRegistries` section: To the `dependencies` section: ``` -"jp.keijiro.klak.spout": "1.0.0" +"jp.keijiro.klak.spout": "2.0.0" ``` After changes, the manifest file should look like below: @@ -60,124 +51,6 @@ After changes, the manifest file should look like below: } ], "dependencies": { - "jp.keijiro.klak.spout": "1.0.0", + "jp.keijiro.klak.spout": "2.0.0", ... ``` - -Spout Sender component ----------------------- - -The **Spout Sender component** (`SpoutSender`) is used to send frames to other -Spout compatible applications. - -There are two modes in Spout Sender: - -### Camera capture mode - -![inspector](https://i.imgur.com/2QL6G8P.png) - -The Spout Sender component runs in the **camera capture mode** when attached to -a camera object. It automatically captures frames rendered by the camera and -publishes them via Spout. The dimensions of the frames are dependent on the -screen/game view size. - -Note that the camera capture mode is not compatible with [scriptable render -pipelines]. The render texture mode should be applied in case of using SRP. - -[scriptable render pipelines]: https://docs.unity3d.com/Manual/ScriptableRenderPipeline.html - -### Render texture mode - -![inspector](https://i.imgur.com/ZnqC6jr.png) - -The Spout Sender component runs in the **render texture mode** when it's -independent from any camera. In this mode, the sender publishes content of a -render texture that is specified in the **Source Texture** property. This -render texture should be updated in some way -- by attaching to a camera as a -target texture, by [custom render texture], etc. - -[render texture]: https://docs.unity3d.com/Manual/class-RenderTexture.html -[custom render texture]: https://docs.unity3d.com/Manual/CustomRenderTextures.html - -### Alpha channel support - -This controls if the sender includes alpha channel to published frames. In most -use-cases of Unity, the alpha channel in rendered frames is not used and only -contains garbage data. It's generally recommended to turn off the **Alpha -Channel Support** option to prevent causing wrong effects on a receiver side. - -Spout Receiver component ------------------------- - -![inspector](https://i.imgur.com/C3O1RDy.png) - -The **Spout Receiver component** (`SpoutReceiver`) is used to receive frames -published by other Spout compatible applications. - -### Source Name property - -The Spout Receiver tries to connect to a sender which has a name specified in -the **Source Name** property. Note that the search is done with exact match -(case-sensitive). It can be manually edited with the text field, or selected -from the drop-down labelled "Select" that shows currently available Spout -senders. - -### Target Texture property - -The Spout Receiver updates a render texture specified in the **Target Texture** -property every frame. Note that the Spout Receiver doesn't care about aspect -ratio; the dimensions of the render texture should be manually adjusted to -avoid stretching. - -### Target Renderer property - -When a renderer component (in most cases it may be a mesh renderer component) -is specified in the **Target Renderer** property, the Spout Receiver sets the -received frames to one of the texture properties of the material used in the -renderer. This is a convenient way to display received frames when they're only -used in a single renderer instance. - -### Script interface - -The received frames are also accessible via the `receivedTexture` property of -the `SpoutReceiver` class. Note that the `receivedTexture` object is -destroyed/recreated when the settings (e.g. screen size) are changed. It's -recommended to update the reference every frame. - -Spout Manager class -------------------- - -The **Spout Manager class** (`SpoutManager`) only has one function: getting the -list of sender names that are currently available in the system -(`GetSourceNames`). This is useful for implementing a sender selection UI -for run time use. - -![gif](https://i.imgur.com/C4XUzLk.gif) - -Please check the [Source Selector example] for detailed use of this function. - -[Source Selector example]: Assets/Script/SourceSelector.cs - -Frequently Asked Questions --------------------------- - -### Can't send/receive more than 10 sources - -See [issue #33] in the Spout SDK. You can download the SpoutSettings app from -the thread that allows changing the maximum number of Spout senders. - -[issue #33]: https://github.com/leadedge/Spout2/issues/33 - -### Spout vs NDI: Which one is better? - -The answer is simple: If you're going to use a single computer, use Spout. If -you need connecting multiple computers, use NDI. - -Spout is a superior solution for local interoperation. It's faster, low latency, -more memory efficient and better quality. It's recommended using Spout unless -multiple computers are involved. - -License -------- - -[MIT](LICENSE.md)