From c6b6b1925873288e2e212b897d2b97ff99d68342 Mon Sep 17 00:00:00 2001 From: Dan Birman Date: Mon, 17 Nov 2025 19:09:23 -0800 Subject: [PATCH 1/3] initial channel map functionality --- .../Volume/InPlaneSliceMaterialBlit.mat | 2 +- .../Volume/ProbePanelChannelMaterial.mat | 3 + .../Volume/ProbePanelChannelMaterialBlit.mat | 148 + .../ProbePanelChannelMaterialBlit.mat.meta | 8 + .../Volume/ProbePanelSliceMaterialBlit.mat | 152 + .../ProbePanelSliceMaterialBlit.mat.meta | 8 + Assets/Prefabs/Managers/ProbePanel.prefab | 4 + Assets/Scenes/TrajectoryPlanner.unity | 104 +- .../Scripts/Pinpoint/PinpointAtlasManager.cs | 6 +- .../Pinpoint/Probes/UI/ProbeUIManager.cs | 155 +- .../Pinpoint/Probes/UI/TP_ProbePanel.cs | 51 +- Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs | 1 + Assets/Scripts/UI/PinpointAppBuilder.cs | 6 + .../ViewModels/ChannelMapTextItemViewModel.cs | 26 + .../ChannelMapTextItemViewModel.cs.meta | 2 + .../UI/ViewModels/ChannelMapViewModel.cs | 104 + .../UI/ViewModels/ChannelMapViewModel.cs.meta | 2 + Assets/Scripts/UI/Views/ChannelMapView.cs | 75 + .../Scripts/UI/Views/ChannelMapView.cs.meta | 2 + .../ProbePanelChannelShaderBlit.shadergraph | 3951 +++++++++++++++++ ...obePanelChannelShaderBlit.shadergraph.meta | 10 + .../ProbePanelSliceShaderblit.shadergraph | 1892 ++++++++ ...ProbePanelSliceShaderblit.shadergraph.meta | 10 + Assets/UI/Components/ChannelMapTextItem.uxml | 12 + .../ChannelMapTextItem.uxml.meta} | 2 +- Assets/UI/Main.uxml | 8 +- .../ChannelMapChannelTexture.renderTexture | 39 + ...annelMapChannelTexture.renderTexture.meta} | 0 ...e => ChannelMapSliceTexture.renderTexture} | 8 +- .../ChannelMapSliceTexture.renderTexture.meta | 8 + .../InplaneSliceRenderTexture.renderTexture | 4 +- Assets/UI/Views/ChannelMap.uxml | 16 + Assets/UI/Views/ChannelMap.uxml.meta | 10 + Assets/UI/Views/ChannelMaps.uxml | 5 +- .../Views/ChannelMapsAndSlicesListItem.uxml | 4 - 35 files changed, 6644 insertions(+), 194 deletions(-) create mode 100644 Assets/Materials/Volume/ProbePanelChannelMaterialBlit.mat create mode 100644 Assets/Materials/Volume/ProbePanelChannelMaterialBlit.mat.meta create mode 100644 Assets/Materials/Volume/ProbePanelSliceMaterialBlit.mat create mode 100644 Assets/Materials/Volume/ProbePanelSliceMaterialBlit.mat.meta create mode 100644 Assets/Scripts/UI/ViewModels/ChannelMapTextItemViewModel.cs create mode 100644 Assets/Scripts/UI/ViewModels/ChannelMapTextItemViewModel.cs.meta create mode 100644 Assets/Scripts/UI/ViewModels/ChannelMapViewModel.cs create mode 100644 Assets/Scripts/UI/ViewModels/ChannelMapViewModel.cs.meta create mode 100644 Assets/Scripts/UI/Views/ChannelMapView.cs create mode 100644 Assets/Scripts/UI/Views/ChannelMapView.cs.meta create mode 100644 Assets/Shaders/Volumes/ProbePanelChannelShaderBlit.shadergraph create mode 100644 Assets/Shaders/Volumes/ProbePanelChannelShaderBlit.shadergraph.meta create mode 100644 Assets/Shaders/Volumes/ProbePanelSliceShaderblit.shadergraph create mode 100644 Assets/Shaders/Volumes/ProbePanelSliceShaderblit.shadergraph.meta create mode 100644 Assets/UI/Components/ChannelMapTextItem.uxml rename Assets/UI/{Views/ChannelMapsAndSlicesListItem.uxml.meta => Components/ChannelMapTextItem.uxml.meta} (86%) create mode 100644 Assets/UI/RenderTextures/ChannelMapChannelTexture.renderTexture rename Assets/UI/RenderTextures/{SlicerenderTexture.renderTexture.meta => ChannelMapChannelTexture.renderTexture.meta} (100%) rename Assets/UI/RenderTextures/{SlicerenderTexture.renderTexture => ChannelMapSliceTexture.renderTexture} (89%) create mode 100644 Assets/UI/RenderTextures/ChannelMapSliceTexture.renderTexture.meta create mode 100644 Assets/UI/Views/ChannelMap.uxml create mode 100644 Assets/UI/Views/ChannelMap.uxml.meta delete mode 100644 Assets/UI/Views/ChannelMapsAndSlicesListItem.uxml diff --git a/Assets/Materials/Volume/InPlaneSliceMaterialBlit.mat b/Assets/Materials/Volume/InPlaneSliceMaterialBlit.mat index 789843f0..22b9c8ab 100644 --- a/Assets/Materials/Volume/InPlaneSliceMaterialBlit.mat +++ b/Assets/Materials/Volume/InPlaneSliceMaterialBlit.mat @@ -148,7 +148,7 @@ Material: - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _ForwardDirection: {r: 0, g: 0, b: 0, a: 0} - _LeftDirection: {r: 1, g: 0, b: 0, a: 0} - - _RecordingRegionCenterPosition: {r: 52.480907, g: 228, b: 145.78673, a: 0} + - _RecordingRegionCenterPosition: {r: 239.02321, g: 228, b: 144.9756, a: 0} - _RightDirection: {r: 1, g: 0, b: 0, a: 0} - _Scale: {r: 200, g: 200, b: 4.5, a: 0} - _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} diff --git a/Assets/Materials/Volume/ProbePanelChannelMaterial.mat b/Assets/Materials/Volume/ProbePanelChannelMaterial.mat index eed22b78..54579862 100644 --- a/Assets/Materials/Volume/ProbePanelChannelMaterial.mat +++ b/Assets/Materials/Volume/ProbePanelChannelMaterial.mat @@ -135,11 +135,14 @@ Material: - _WorkflowMode: 1 - _ZWrite: 1 m_Colors: + - _AnnotationDimensions: {r: 0, g: 0, b: 0, a: 0} - _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} - _EndPosition: {r: 0, g: 0, b: 0, a: 0} + - _EndPositionIdx: {r: 0, g: 0, b: 0, a: 0} - _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} - _TipPosition: {r: 0, g: 0, b: 0, a: 0} + - _TipPositionIdx: {r: 0, g: 0, b: 0, a: 0} m_BuildTextureStacks: [] m_AllowLocking: 1 diff --git a/Assets/Materials/Volume/ProbePanelChannelMaterialBlit.mat b/Assets/Materials/Volume/ProbePanelChannelMaterialBlit.mat new file mode 100644 index 00000000..c4a0e387 --- /dev/null +++ b/Assets/Materials/Volume/ProbePanelChannelMaterialBlit.mat @@ -0,0 +1,148 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-6100422827257855546 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 10 +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: ProbePanelChannelMaterialBlit + m_Shader: {fileID: -6465566751694194690, guid: 74fd3798513464b47bc1f6f854bba353, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AnnotationTexture: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ChannelTexture: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AlphaClip: 0 + - _Blend: 0 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EndPerc: 1 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueControl: 0 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _RecordingHeight: 3.82 + - _RecordingRegionOnly: 0 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _Surface: 0 + - _TipPerc: 0 + - _WorkflowMode: 1 + - _ZWrite: 1 + m_Colors: + - _AnnotationDimensions: {r: 528, g: 456, b: 320, a: 0} + - _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} + - _EndPosition: {r: 0, g: 0, b: 0, a: 0} + - _EndPositionIdx: {r: 248, g: 228, b: -28.071136, a: 0} + - _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + - _TipPosition: {r: 0, g: 0, b: 0, a: 0} + - _TipPositionIdx: {r: 248.00002, g: 228, b: 124.72887, a: 0} + m_BuildTextureStacks: [] + m_AllowLocking: 1 diff --git a/Assets/Materials/Volume/ProbePanelChannelMaterialBlit.mat.meta b/Assets/Materials/Volume/ProbePanelChannelMaterialBlit.mat.meta new file mode 100644 index 00000000..111ab51b --- /dev/null +++ b/Assets/Materials/Volume/ProbePanelChannelMaterialBlit.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2abd6f8a2ae87ec499dee4d02862d716 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Materials/Volume/ProbePanelSliceMaterialBlit.mat b/Assets/Materials/Volume/ProbePanelSliceMaterialBlit.mat new file mode 100644 index 00000000..5c951255 --- /dev/null +++ b/Assets/Materials/Volume/ProbePanelSliceMaterialBlit.mat @@ -0,0 +1,152 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-3627368809584408446 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 10 +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: ProbePanelSliceMaterialBlit + m_Shader: {fileID: -6465566751694194690, guid: bbe3974ad5481cb40ab20019ecad8440, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _AnnotationTexture: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _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} + - _EndPosition: + 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} + - _TipPosition: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AlphaClip: 0 + - _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 + - _QueueControl: 0 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _RecordingHeight: 3.82 + - _RecordingRegionOnly: 1 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _Surface: 0 + - _TextureIndexPercentage: 0 + - _WorkflowMode: 1 + - _ZWrite: 1 + m_Colors: + - _AnnotationDimensions: {r: 528, g: 456, b: 320, a: 0} + - _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} + - _EndPosition: {r: 78, g: 31, b: 230, a: 0} + - _EndPositionIdx: {r: 248, g: 228, b: -28.071136, a: 0} + - _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + - _TipPosition: {r: 78, g: 185, b: 230, a: 0} + - _TipPositionIdx: {r: 248.00002, g: 228, b: 124.72887, a: 0} + - _UpAxis: {r: 0, g: 0, b: 0, a: 0} + m_BuildTextureStacks: [] + m_AllowLocking: 1 diff --git a/Assets/Materials/Volume/ProbePanelSliceMaterialBlit.mat.meta b/Assets/Materials/Volume/ProbePanelSliceMaterialBlit.mat.meta new file mode 100644 index 00000000..e0cfd854 --- /dev/null +++ b/Assets/Materials/Volume/ProbePanelSliceMaterialBlit.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b9a6ca4f8a0ba0e458947d773fdd3de0 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Managers/ProbePanel.prefab b/Assets/Prefabs/Managers/ProbePanel.prefab index c197aa5e..12de76ae 100644 --- a/Assets/Prefabs/Managers/ProbePanel.prefab +++ b/Assets/Prefabs/Managers/ProbePanel.prefab @@ -207,6 +207,10 @@ MonoBehaviour: - {fileID: 3888114500935262886} - {fileID: 2639413016807361704} _probePanelPxHeight: 1600 + _channelMaterial: {fileID: 2100000, guid: 2abd6f8a2ae87ec499dee4d02862d716, type: 2} + _channelTexture: {fileID: 8400000, guid: f0d2995aeda2c4c4ca9dd22643740896, type: 2} + _sliceMaterial: {fileID: 2100000, guid: b9a6ca4f8a0ba0e458947d773fdd3de0, type: 2} + _sliceTexture: {fileID: 8400000, guid: 9fb637ec95016ac4da5853a8aed61438, type: 2} --- !u!1 &3714078250117719610 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/TrajectoryPlanner.unity b/Assets/Scenes/TrajectoryPlanner.unity index 28da1ec8..8b006d3c 100644 --- a/Assets/Scenes/TrajectoryPlanner.unity +++ b/Assets/Scenes/TrajectoryPlanner.unity @@ -2910,11 +2910,11 @@ PrefabInstance: objectReference: {fileID: 1044063713} - target: {fileID: 341190943674669911, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190943674669911, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190943674669911, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_LocalPosition.x @@ -2926,7 +2926,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190943674669911, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 249 objectReference: {fileID: 0} - target: {fileID: 341190943678743979, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y @@ -3002,11 +3002,11 @@ PrefabInstance: objectReference: {fileID: 1703646459} - target: {fileID: 341190943836035196, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190943836035196, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190943836035196, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_LocalPosition.x @@ -3014,7 +3014,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190943836035196, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 169.88 objectReference: {fileID: 0} - target: {fileID: 341190943836276264, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_IsOn @@ -3150,11 +3150,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190944034978748, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944034978748, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944034978748, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_LocalPosition.x @@ -3166,11 +3166,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190944034978748, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 354.84 objectReference: {fileID: 0} - target: {fileID: 341190944034978748, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -15 objectReference: {fileID: 0} - target: {fileID: 341190944071593138, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.x @@ -3364,17 +3364,21 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: -138.75801 objectReference: {fileID: 0} + - target: {fileID: 341190944298537965, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} - target: {fileID: 341190944298537966, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944298537966, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944298537966, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 401 objectReference: {fileID: 0} - target: {fileID: 341190944298537966, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_LocalPosition.x @@ -3386,19 +3390,19 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190944298537966, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 205.5 objectReference: {fileID: 0} - target: {fileID: 341190944298537966, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -83 objectReference: {fileID: 0} - target: {fileID: 341190944311329756, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944311329756, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944311329756, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_LocalPosition.x @@ -3406,11 +3410,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190944311329756, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 124.5 objectReference: {fileID: 0} - target: {fileID: 341190944311329756, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -21 objectReference: {fileID: 0} - target: {fileID: 341190944356658412, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y @@ -3462,11 +3466,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190944410943211, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944410943211, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944410943211, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_LocalPosition.x @@ -3478,19 +3482,19 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190944410943211, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 384.91998 objectReference: {fileID: 0} - target: {fileID: 341190944410943211, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -15 objectReference: {fileID: 0} - target: {fileID: 341190944411999430, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944411999430, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944411999430, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_LocalPosition.x @@ -3502,7 +3506,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190944411999430, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -47 objectReference: {fileID: 0} - target: {fileID: 341190944449543596, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y @@ -3600,17 +3604,21 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 341190944544068802, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} - target: {fileID: 341190944544068803, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944544068803, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944544068803, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 401 objectReference: {fileID: 0} - target: {fileID: 341190944544068803, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_LocalPosition.x @@ -3622,11 +3630,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190944544068803, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 406 objectReference: {fileID: 0} - target: {fileID: 341190944544068803, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -271 objectReference: {fileID: 0} - target: {fileID: 341190944544068814, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: _tpmanager @@ -3680,17 +3688,21 @@ PrefabInstance: propertyPath: _modelControl value: objectReference: {fileID: 0} + - target: {fileID: 341190944702461356, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} - target: {fileID: 341190944702461357, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944702461357, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190944702461357, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 411 objectReference: {fileID: 0} - target: {fileID: 341190944702461357, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_LocalPosition.x @@ -3702,11 +3714,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190944702461357, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 406 objectReference: {fileID: 0} - target: {fileID: 341190944702461357, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -58 objectReference: {fileID: 0} - target: {fileID: 341190944717202799, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.x @@ -3858,11 +3870,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190945105275010, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190945105275010, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 341190945105275010, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_LocalPosition.x @@ -3874,7 +3886,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 341190945105275010, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -21 objectReference: {fileID: 0} - target: {fileID: 341190945106139534, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: onValueChanged.m_PersistentCalls.m_Calls.Array.data[0].m_Target @@ -4102,7 +4114,7 @@ PrefabInstance: objectReference: {fileID: 1703646459} - target: {fileID: 341190945403315011, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_IsActive - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 341190945403315022, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_RaycastTarget @@ -7338,19 +7350,19 @@ PrefabInstance: objectReference: {fileID: 1174894712} - target: {fileID: 7136927735706924112, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_IsActive - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 7136927735706924113, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 7136927735706924113, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 7136927735706924113, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 401 objectReference: {fileID: 0} - target: {fileID: 7136927735706924113, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_LocalPosition.x @@ -7362,11 +7374,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7136927735706924113, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 406 objectReference: {fileID: 0} - target: {fileID: 7136927735706924113, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -5 objectReference: {fileID: 0} - target: {fileID: 7155828719498630703, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} propertyPath: m_AnchorMax.y diff --git a/Assets/Scripts/Pinpoint/PinpointAtlasManager.cs b/Assets/Scripts/Pinpoint/PinpointAtlasManager.cs index 17c7e5f0..dbf06d57 100644 --- a/Assets/Scripts/Pinpoint/PinpointAtlasManager.cs +++ b/Assets/Scripts/Pinpoint/PinpointAtlasManager.cs @@ -251,6 +251,8 @@ public void WarpBrain() #if UNITY_EDITOR Debug.Log("(PAM) Warp brain called"); #endif + // [TODO: Replace this with pulling from the scene state and updating warp anytime either the transform changes or the active areas change] + // Keep track of which areas are warped if (BrainAtlasManager.Instance == null || BrainAtlasManager.ActiveReferenceAtlas == null) return; @@ -270,8 +272,8 @@ public void WarpBrain() foreach (OntologyNode node in DefaultNodes) WarpNode(node, WorldU2WorldT_Wrapper); - foreach (int areaID in TP_Search.VisibleSearchedAreas) - WarpNode(BrainAtlasManager.ActiveReferenceAtlas.Ontology.ID2Node(areaID), WorldU2WorldT_Wrapper); + //foreach (int areaID in TP_Search.VisibleSearchedAreas) + // WarpNode(BrainAtlasManager.ActiveReferenceAtlas.Ontology.ID2Node(areaID), WorldU2WorldT_Wrapper); } public static void WarpNode(OntologyNode node, Func warpFunction) diff --git a/Assets/Scripts/Pinpoint/Probes/UI/ProbeUIManager.cs b/Assets/Scripts/Pinpoint/Probes/UI/ProbeUIManager.cs index adda56ba..ca3a0958 100644 --- a/Assets/Scripts/Pinpoint/Probes/UI/ProbeUIManager.cs +++ b/Assets/Scripts/Pinpoint/Probes/UI/ProbeUIManager.cs @@ -1,16 +1,23 @@ using BrainAtlas; +using Pinpoint.CoordinateSystems; using System; using System.Collections.Generic; using System.Linq; +using TMPro; +using UnityEngine; +using UnityEngine.Serialization; +using UnityEngine.UI; +using Utils.Types; +#if APP_UI using Models; using Models.Scene; +using Models.Settings; using Services; using UI; +using UI.ViewModels; using Unity.AppUI.MVVM; using Unity.AppUI.Redux; -using UnityEngine; -using UnityEngine.Serialization; -using UnityEngine.UI; +#endif public class ProbeUIManager : MonoBehaviour { @@ -31,16 +38,12 @@ public class ProbeUIManager : MonoBehaviour private const int MINIMUM_AREA_PIXEL_HEIGHT = 7; - /// - /// Area that this probe goes through covering the most pixels - /// public string MaxArea { get; private set; } private void Awake() { Debug.Log("Adding puimanager: " + _order); - // initialize vars MaxArea = ""; // Add the probePanel @@ -54,10 +57,19 @@ private void Awake() GameObject main = GameObject.Find("main"); - // Set probe to be un-selected ProbeSelected(false); _probeManager.UIUpdateEvent.AddListener(UpdateUI); + +#if APP_UI + var storeService = PinpointApp.Services.GetRequiredService(); + var channelMapViewModel = PinpointApp.Services.GetRequiredService(); + + probePanel.OnTextDataChanged = (names, percentages) => + { + channelMapViewModel.UpdateTextItems(names, percentages); + }; +#endif } private async void Start() @@ -81,10 +93,6 @@ public Transform ShankTipT() return _electrodeBase.transform; } - /// - /// Update colors by pulling directly from Redux state. - /// This method retrieves the color from state and applies it to the UI. - /// public void UpdateColors() { UpdateUIManagerColor(); @@ -122,101 +130,39 @@ public void SetProbePanelVisibility(bool state) private async void ProbedMovedHelper() { - // Make sure the annotations have been loaded await BrainAtlasManager.ActiveReferenceAtlas.AnnotationsTask; await _probeManager.ChannelMapTask; - // Get the height of the recording region, either we'll show it next to the regions, or we'll use it to restrict the display var channelCoords = _probeManager.GetChannelRangemm(); - //ProbeInsertion insertion = _probeManager.ProbeController.Insertion; - // note: electrodeBase backward access is the probe's "up" axis Vector3 startCoordWorldT = _electrodeBase.transform.position + -_electrodeBase.transform.forward * channelCoords.startPosmm; Vector3 endCoordWorldT = _electrodeBase.transform.position + -_electrodeBase.transform.forward * channelCoords.endPosmm; Vector3 startCoordWorldU = BrainAtlasManager.WorldT2WorldU(startCoordWorldT, true); Vector3 endCoordWorldU = BrainAtlasManager.WorldT2WorldU(endCoordWorldT, true); - // TODO: add back in in the future - - //List mmTickPositions = new List(); - //List tickIdxs = new List(); - //List tickHeights = new List(); // this will be calculated in the second step - - // If we are only showing regions from the recording region, we need to offset the tip and end to be just the recording region - // we also want to save the mm tick positions - - //List mmPos = new List(); - //for (int i = Mathf.Max(1, Mathf.CeilToInt(channelCoords.startPosmm)); i <= Mathf.Min(9, Mathf.FloorToInt(channelCoords.endPosmm)); i++) - // mmPos.Add(i); // this is the list of values we are going to have to assign a position to - - //int idx = 0; - //for (int y = 0; y < probePanelPxHeight; y++) - //{ - // if (idx >= mmPos.Count) - // break; - - // float um = channelCoords.startPosmm + (y / probePanelPxHeight) * channelCoords.recordingSizemm; - // if (um >= mmPos[idx]) - // { - // mmTickPositions.Add(y); - // // We also need to keep track of *what* tick we are at with this position - // // index 0 = 1000, 1 = 2000, ... 8 = 9000 - // tickIdxs.Add(9 - mmPos[idx]); - - // idx++; - // } - //} - Vector3 startAPMLDV = BrainAtlasManager.ActiveReferenceAtlas.World2AtlasIdx(startCoordWorldU); Vector3 endAPMLDV = BrainAtlasManager.ActiveReferenceAtlas.World2AtlasIdx(endCoordWorldU); - // Interpolate from the tip to the top, putting this data into the probe panel texture - (List boundaryHeights, List centerHeights, List names) = InterpolateAnnotationIDs(startAPMLDV, endAPMLDV); - - // Get the percentage height along the probe - - // Update probePanel data - probePanel.SetTipData(startAPMLDV, endAPMLDV, channelCoords.startPosmm / channelCoords.fullHeight, channelCoords.endPosmm / channelCoords.fullHeight, channelCoords.recordingSizemm); + (List boundaryHeights, List centerPercentages, List names) = InterpolateAnnotationIDs(startAPMLDV, endAPMLDV); - //for (int y = 0; y < probePanelPxHeight; y++) - //{ - // // If the mm tick position matches with the position we're at, then add a depth line - // //bool depthLine = mmTickPositions.Contains(y); + probePanel.SetTipData(startAPMLDV, endAPMLDV, 0, 1, channelCoords.recordingSizemm); - // // We also want to check if we're at at height line, in which case we'll add a little tick on the right side - // bool heightLine = boundaryHeights.Contains(y); - - // //if (depthLine) - // //{ - // // tickHeights.Add(y); - // //} - //} - - //probePanel.UpdateTicks(tickHeights, tickIdxs); - probePanel.UpdateText(centerHeights, names, Settings.UseAcronyms ? ProbeProperties.FONT_SIZE_ACRONYM : ProbeProperties.FONT_SIZE_AREA); +#if APP_UI + probePanel.UpdateText(new List(), names, Settings.UseAcronyms ? ProbeProperties.FONT_SIZE_ACRONYM : ProbeProperties.FONT_SIZE_AREA); +#else + List centerHeights = centerPercentages.Select(perc => Mathf.RoundToInt(perc * probePanelPxHeight)).ToList(); + probePanel.UpdateText(centerHeights, names, Settings.UseAcronyms ? ProbeProperties.FONT_SIZE_ACRONYM : ProbeProperties.FONT_SIZE_AREA); +#endif } - /// - /// Compute the annotation acronyms/names along a vector from tipPosition to topPosition, saving the pixel positions and center points of each area - /// - /// This function ignores areas where the area height is less than X pixels (defined above) - /// - /// - /// - /// - private (List, List, List) InterpolateAnnotationIDs(Vector3 tipIdxWorldT, Vector3 topIdxWorldT) + private (List, List, List) InterpolateAnnotationIDs(Vector3 tipIdxWorldT, Vector3 topIdxWorldT) { - // pixel height at which changes happen List areaPositionPixels = new(); - // pixel count for each area List areaHeightPixels = new(); - // area IDs List areaIDs = new(); - // string name List areaNames = new(); - // center position of each area - List centerHeightsPixels = new(); + List centerPercentages = new(); int prevID = int.MinValue; for (int i = 0; i < probePanelPxHeight; i++) @@ -224,23 +170,22 @@ private async void ProbedMovedHelper() float perc = i / (probePanelPxHeight - 1); Vector3 interpolatedIdxWorldT = Vector3.Lerp(tipIdxWorldT, topIdxWorldT, perc); int ID = BrainAtlasManager.ActiveReferenceAtlas.GetAnnotationIdx(interpolatedIdxWorldT); - // convert to Beryl ID (if modelControl is set to do that) ID = BrainAtlasManager.ActiveReferenceAtlas.Ontology.RemapID_NoLayers(ID); if (ID != prevID) { - // We have arrived at a new area, get the name and height areaPositionPixels.Add(i); areaIDs.Add(ID); if (Settings.UseAcronyms) areaNames.Add(BrainAtlasManager.ActiveReferenceAtlas.Ontology.ID2Acronym(ID)); else areaNames.Add(BrainAtlasManager.ActiveReferenceAtlas.Ontology.ID2Name(ID)); - // Now compute the center height for the *previous* area, and the pixel height + int curIdx = areaPositionPixels.Count - 1; if (curIdx >= 1) { - centerHeightsPixels.Add(Mathf.RoundToInt((areaPositionPixels[curIdx - 1] + areaPositionPixels[curIdx]) / 2f)); + int centerPixel = Mathf.RoundToInt((areaPositionPixels[curIdx - 1] + areaPositionPixels[curIdx]) / 2f); + centerPercentages.Add(centerPixel / (float)probePanelPxHeight); areaHeightPixels.Add(areaPositionPixels[curIdx] - areaPositionPixels[curIdx - 1]); } @@ -248,34 +193,28 @@ private async void ProbedMovedHelper() } } - // The top region (last) will be missing it's center height and area height, so compute those now if (areaPositionPixels.Count > 0) { - centerHeightsPixels.Add(Mathf.RoundToInt((areaPositionPixels[areaPositionPixels.Count - 1] + probePanelPxHeight) / 2f)); + int lastCenterPixel = Mathf.RoundToInt((areaPositionPixels[areaPositionPixels.Count - 1] + probePanelPxHeight) / 2f); + centerPercentages.Add(lastCenterPixel / (float)probePanelPxHeight); areaHeightPixels.Add(Mathf.RoundToInt(probePanelPxHeight - areaPositionPixels[areaPositionPixels.Count - 1])); } - // If there is only one value in the heights array, pixelHeight will be empty - // Also find the area with the maximum pixel height int maxAreaID = 0; int maxPixelHeight = 0; if (areaHeightPixels.Count > 0) { - // Remove any areas where heights < MINIMUM_AREA_PIXEL_HEIGHT for (int i = areaPositionPixels.Count - 1; i >= 0; i--) { - // Get the max area, ignoring "-" - // This is safe to do even though we remove areas afterward, because we are going backwards through the list if (areaHeightPixels[i] > maxPixelHeight && areaIDs[i] > 0) { maxPixelHeight = areaHeightPixels[i]; maxAreaID = areaIDs[i]; } - // Remove areas that are too small if (areaHeightPixels[i] < MINIMUM_AREA_PIXEL_HEIGHT) { areaPositionPixels.RemoveAt(i); - centerHeightsPixels.RemoveAt(i); + centerPercentages.RemoveAt(i); areaIDs.RemoveAt(i); } } @@ -285,9 +224,9 @@ private async void ProbedMovedHelper() areaNames = Settings.UseAcronyms ? areaIDs.ConvertAll(x => BrainAtlasManager.ActiveReferenceAtlas.Ontology.ID2Acronym(x)) : - areaIDs.ConvertAll(x => BrainAtlasManager.ActiveReferenceAtlas.Ontology.ID2Name(x)); + areaIDs.ConvertAll(x => BrainAtlasManager.ActiveReferenceAtlas.Ontology.ID2Name(x)); - return (areaPositionPixels, centerHeightsPixels, areaNames); + return (areaPositionPixels, centerPercentages, areaNames); } public void ProbeSelected(bool selected) @@ -296,28 +235,21 @@ public void ProbeSelected(bool selected) UpdateUIManagerColor(); } - /// - /// Update the UI manager color by pulling the probe color from Redux state. - /// Computes default and selected colors with appropriate alpha values on demand. - /// private void UpdateUIManagerColor() { #if APP_UI - // Get color from Redux state var storeService = PinpointApp.Services.GetRequiredService(); var sceneState = storeService.Store.GetState(SliceNames.SCENE_SLICE); var probeState = sceneState.Probes.FirstOrDefault(p => p.Name == _probeManager.name); if (probeState != null) { - // Compute colors from state with appropriate alpha values Color defaultColor = probeState.ColorValue; defaultColor.a = 0.5f; Color selectedColor = probeState.ColorValue; selectedColor.a = 0.75f; - // Apply the appropriate color var imageComponent = probePanelGO.GetComponent(); if (imageComponent != null) { @@ -325,17 +257,16 @@ private void UpdateUIManagerColor() } } #else - // Fallback for non-APP_UI builds - get color from ProbeManager - Color defaultColor = _probeManager.Color; + Color defaultColor = _probeManager.Color; defaultColor.a = 0.5f; - Color selectedColor = _probeManager.Color; - selectedColor.a = 0.75f; + Color selectedColor = _probeManager.Color; + selectedColor.a = 0.75f; var imageComponent = probePanelGO.GetComponent(); if (imageComponent != null) - { - imageComponent.color = _selected ? selectedColor : defaultColor; + { + imageComponent.color = _selected ? selectedColor : defaultColor; } #endif } diff --git a/Assets/Scripts/Pinpoint/Probes/UI/TP_ProbePanel.cs b/Assets/Scripts/Pinpoint/Probes/UI/TP_ProbePanel.cs index d2f011b3..f7c49172 100644 --- a/Assets/Scripts/Pinpoint/Probes/UI/TP_ProbePanel.cs +++ b/Assets/Scripts/Pinpoint/Probes/UI/TP_ProbePanel.cs @@ -8,7 +8,6 @@ public class TP_ProbePanel : MonoBehaviour { - //[SerializeField] private GameObject pixelsGO; [FormerlySerializedAs("pixelsGPURenderer")][SerializeField] private Renderer _channelRenderer; [SerializeField] private Renderer _sliceRenderer; [FormerlySerializedAs("textPanelGO")] [SerializeField] private GameObject _textPanelGo; @@ -16,9 +15,16 @@ public class TP_ProbePanel : MonoBehaviour [FormerlySerializedAs("tickMarkGOs")] [SerializeField] private List _tickMarkGOs; [FormerlySerializedAs("probePanelPxHeight")] [SerializeField] private int _probePanelPxHeight = 500; + [SerializeField] private Material _channelMaterial; + [SerializeField] private RenderTexture _channelTexture; + [SerializeField] private Material _sliceMaterial; + [SerializeField] private RenderTexture _sliceTexture; + private List _textGOs; private ProbeManager _probeManager; + public Action, List> OnTextDataChanged; + private void Awake() { _textGOs = new List(); @@ -26,12 +32,12 @@ private void Awake() public void Start() { - _channelRenderer.material.SetTexture("_AnnotationTexture", BrainAtlasManager.ActiveReferenceAtlas.AnnotationTexture); + _channelMaterial.SetTexture("_AnnotationTexture", BrainAtlasManager.ActiveReferenceAtlas.AnnotationTexture); (int x, int y, int z) = BrainAtlasManager.ActiveReferenceAtlas.DimensionsIdx; - _channelRenderer.material.SetVector("_AnnotationDimensions", new Vector3(x, y, z)); + _channelMaterial.SetVector("_AnnotationDimensions", new Vector3(x, y, z)); - _sliceRenderer.material.SetTexture("_AnnotationTexture", BrainAtlasManager.ActiveReferenceAtlas.AnnotationTexture); - _sliceRenderer.material.SetVector("_AnnotationDimensions", new Vector3(x, y, z)); + _sliceMaterial.SetTexture("_AnnotationTexture", BrainAtlasManager.ActiveReferenceAtlas.AnnotationTexture); + _sliceMaterial.SetVector("_AnnotationDimensions", new Vector3(x, y, z)); } public void RegisterProbeManager(ProbeManager probeManager) @@ -46,20 +52,22 @@ public ProbeManager GetProbeManager() public void SetChannelMap(Texture2D channelMapTexture) { - _channelRenderer.material.SetTexture("_ChannelTexture", channelMapTexture); + _channelMaterial.SetTexture("_ChannelTexture", channelMapTexture); } public void SetTipData(Vector3 tipPosIdx, Vector3 endPositionIdx, float tipPerc, float endPerc, float recordingHeight) { - _channelRenderer.material.SetVector("_TipPositionIdx", tipPosIdx); - _channelRenderer.material.SetVector("_EndPositionIdx", endPositionIdx); - _channelRenderer.material.SetFloat("_TipPerc", tipPerc); - _channelRenderer.material.SetFloat("_EndPerc", endPerc); - _channelRenderer.material.SetFloat("_RecordingHeight", recordingHeight); - - _sliceRenderer.material.SetVector("_TipPositionIdx", tipPosIdx); - _sliceRenderer.material.SetVector("_EndPositionIdx", endPositionIdx); - _sliceRenderer.material.SetFloat("_RecordingHeight", recordingHeight); + _channelMaterial.SetVector("_TipPositionIdx", tipPosIdx); + _channelMaterial.SetVector("_EndPositionIdx", endPositionIdx); + _channelMaterial.SetFloat("_TipPerc", tipPerc); + _channelMaterial.SetFloat("_EndPerc", endPerc); + _channelMaterial.SetFloat("_RecordingHeight", recordingHeight); + Graphics.Blit(null, _channelTexture, _channelMaterial); + + _sliceMaterial.SetVector("_TipPositionIdx", tipPosIdx); + _sliceMaterial.SetVector("_EndPositionIdx", endPositionIdx); + _sliceMaterial.SetFloat("_RecordingHeight", recordingHeight); + Graphics.Blit(null, _sliceTexture, _sliceMaterial); } public float GetPanelHeight() @@ -74,14 +82,23 @@ public void RegisterProbeUIManager(ProbeUIManager probeUImanager) public void UpdateText(List heights, List areaNames, int fontSize) { - // [TODO] Replace this with a queue +#if !APP_UI foreach (GameObject go in _textGOs) Destroy(go); _textGOs.Clear(); - // add the area names for (int i = 0; i < heights.Count; i++) AddText(heights[i], areaNames[i], fontSize); +#else + List positionPercentages = new List(); + for (int i = 0; i < heights.Count; i++) + { + float percentage = heights[i] / (float)_probePanelPxHeight; + positionPercentages.Add(percentage); + } + + OnTextDataChanged?.Invoke(areaNames, positionPercentages); +#endif } public void UpdateTicks(List heights, List tickIdxs) diff --git a/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs b/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs index 4fa343a8..f746eb4f 100644 --- a/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs +++ b/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs @@ -243,6 +243,7 @@ public void UpdateInPlaneSlice() _textX.text = formatted; _textY.text = formatted; + Debug.Log("Blit"); Graphics.Blit(null, _inPlaneRenderTexture, _inPlaneSliceMaterial); } diff --git a/Assets/Scripts/UI/PinpointAppBuilder.cs b/Assets/Scripts/UI/PinpointAppBuilder.cs index 694812d4..4f656840 100644 --- a/Assets/Scripts/UI/PinpointAppBuilder.cs +++ b/Assets/Scripts/UI/PinpointAppBuilder.cs @@ -37,6 +37,9 @@ protected override void OnConfiguringApp(AppBuilder builder) builder.services.AddSingleton(); builder.services.AddSingleton(); builder.services.AddSingleton(); +#if APP_UI + builder.services.AddSingleton(); +#endif builder.services.AddSingleton(); builder.services.AddSingleton(); @@ -52,6 +55,9 @@ protected override void OnConfiguringApp(AppBuilder builder) builder.services.AddSingleton(); builder.services.AddSingleton(); builder.services.AddSingleton(); +#if APP_UI + builder.services.AddSingleton(); +#endif builder.services.AddSingleton(); builder.services.AddSingleton(); diff --git a/Assets/Scripts/UI/ViewModels/ChannelMapTextItemViewModel.cs b/Assets/Scripts/UI/ViewModels/ChannelMapTextItemViewModel.cs new file mode 100644 index 00000000..934bf04a --- /dev/null +++ b/Assets/Scripts/UI/ViewModels/ChannelMapTextItemViewModel.cs @@ -0,0 +1,26 @@ +using Models; +using Models.Scene; +using Services; +using Unity.AppUI.MVVM; + +namespace UI.ViewModels +{ + [ObservableObject] + public partial class ChannelMapTextItemViewModel + { + private readonly StoreService _storeService; + private readonly ProbeState _probeState; + + [ObservableProperty] + private string _name; + + [ObservableProperty] + private float _positionPerc; + + public ChannelMapTextItemViewModel(ProbeState probeState, StoreService storeService) + { + _storeService = storeService; + _probeState = probeState; + } + } +} diff --git a/Assets/Scripts/UI/ViewModels/ChannelMapTextItemViewModel.cs.meta b/Assets/Scripts/UI/ViewModels/ChannelMapTextItemViewModel.cs.meta new file mode 100644 index 00000000..35775030 --- /dev/null +++ b/Assets/Scripts/UI/ViewModels/ChannelMapTextItemViewModel.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 9f21d2623ec88154ea182f8630d31c67 \ No newline at end of file diff --git a/Assets/Scripts/UI/ViewModels/ChannelMapViewModel.cs b/Assets/Scripts/UI/ViewModels/ChannelMapViewModel.cs new file mode 100644 index 00000000..49c9f218 --- /dev/null +++ b/Assets/Scripts/UI/ViewModels/ChannelMapViewModel.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Models; +using Models.Scene; +using Services; +using Unity.AppUI.MVVM; +using Unity.AppUI.Redux; + +namespace UI.ViewModels +{ + [ObservableObject] + public partial class ChannelMapViewModel + { + private readonly StoreService _storeService; + private readonly IDisposableSubscription _sceneStateSubscription; + + [ObservableProperty] + private List _textItems = new(); + + public ChannelMapViewModel(StoreService storeService) + { + _storeService = storeService; + + _sceneStateSubscription = _storeService.Store.Subscribe( + state => state.Get(SliceNames.SCENE_SLICE), + OnSceneStateChanged, + new SubscribeOptions { fireImmediately = true } + ); + + App.shuttingDown += OnShuttingDown; + } + + private void OnSceneStateChanged(SceneState state) + { + if (string.IsNullOrEmpty(state.ActiveProbeName)) + { + TextItems = new List(); + return; + } + + var activeProbe = state.Probes.FirstOrDefault(p => p.Name == state.ActiveProbeName); + if (activeProbe == null) + { + TextItems = new List(); + return; + } + + var probeManager = ProbeManager.Instances.FirstOrDefault(pm => pm.name == state.ActiveProbeName); + if (probeManager == null) + { + TextItems = new List(); + return; + } + + var probePanels = probeManager.GetProbeUIManagers(); + if (probePanels == null || probePanels.Count == 0) + { + TextItems = new List(); + return; + } + + var probePanel = probePanels[0].GetProbePanel(); + if (probePanel == null) + { + TextItems = new List(); + return; + } + } + + public void UpdateTextItems(List names, List positionPercentages) + { + var newItems = new List(); + + for (int i = 0; i < names.Count && i < positionPercentages.Count; i++) + { + var activeProbeState = _storeService.Store + .GetState(SliceNames.SCENE_SLICE) + .Probes.FirstOrDefault(p => p.Name == + _storeService.Store.GetState(SliceNames.SCENE_SLICE).ActiveProbeName); + + if (activeProbeState != null) + { + newItems.Add(new ChannelMapTextItemViewModel( + activeProbeState, + _storeService + ) + { + Name = names[i], + PositionPerc = positionPercentages[i] + }); + } + } + + TextItems = newItems; + } + + private void OnShuttingDown() + { + _sceneStateSubscription.Dispose(); + App.shuttingDown -= OnShuttingDown; + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/UI/ViewModels/ChannelMapViewModel.cs.meta b/Assets/Scripts/UI/ViewModels/ChannelMapViewModel.cs.meta new file mode 100644 index 00000000..5519f04c --- /dev/null +++ b/Assets/Scripts/UI/ViewModels/ChannelMapViewModel.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 06269e0e8185e7745a506a2881b0201f \ No newline at end of file diff --git a/Assets/Scripts/UI/Views/ChannelMapView.cs b/Assets/Scripts/UI/Views/ChannelMapView.cs new file mode 100644 index 00000000..84af9d2a --- /dev/null +++ b/Assets/Scripts/UI/Views/ChannelMapView.cs @@ -0,0 +1,75 @@ +using UI.ViewModels; +using Unity.AppUI.MVVM; +using Unity.Properties; +using UnityEngine.UIElements; + +#if APP_UI +namespace UI.Views +{ + public class ChannelMapView + { + private readonly ListView _textItemsList; + private readonly ChannelMapViewModel _channelMapViewModel; + + public ChannelMapView(ChannelMapViewModel channelMapViewModel) + { + _channelMapViewModel = channelMapViewModel; + + var root = PinpointApp.RootVisualElement.Q("text-parent"); + if (root == null) + { + UnityEngine.Debug.LogError("Could not find text-parent element in ChannelMapView"); + return; + } + + root.dataSource = channelMapViewModel; + + _textItemsList = root.Q("text-items-list"); + if (_textItemsList == null) + { + UnityEngine.Debug.LogError("Could not find text-items-list ListView in ChannelMapView"); + return; + } + + _textItemsList.makeItem = MakeItem; + _textItemsList.bindItem = BindItem; + } + + private VisualElement MakeItem() + { + var container = new VisualElement(); + container.style.position = Position.Absolute; + container.style.width = new StyleLength(new Length(100, LengthUnit.Percent)); + + var label = new Unity.AppUI.UI.Text(); + label.name = "area-label"; + label.style.flexShrink = 0; + + container.Add(label); + + return container; + } + + private void BindItem(VisualElement element, int index) + { + if (index < 0 || index >= _channelMapViewModel.TextItems.Count) + return; + + var textItem = _channelMapViewModel.TextItems[index]; + element.dataSource = textItem; + + var label = element.Q("area-label"); + if (label != null) + { + label.SetBinding("text", new DataBinding + { + dataSourcePath = new PropertyPath("Name"), + bindingMode = BindingMode.ToTarget + }); + } + + element.style.bottom = new StyleLength(new Length(textItem.PositionPerc * 100, LengthUnit.Percent)); + } + } +} +#endif diff --git a/Assets/Scripts/UI/Views/ChannelMapView.cs.meta b/Assets/Scripts/UI/Views/ChannelMapView.cs.meta new file mode 100644 index 00000000..b2ce354e --- /dev/null +++ b/Assets/Scripts/UI/Views/ChannelMapView.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 5a6d4a982cad8b941a467576386f73dc \ No newline at end of file diff --git a/Assets/Shaders/Volumes/ProbePanelChannelShaderBlit.shadergraph b/Assets/Shaders/Volumes/ProbePanelChannelShaderBlit.shadergraph new file mode 100644 index 00000000..a891a205 --- /dev/null +++ b/Assets/Shaders/Volumes/ProbePanelChannelShaderBlit.shadergraph @@ -0,0 +1,3951 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "83f0f8a16dd94ce290b272635b46be78", + "m_Properties": [ + { + "m_Id": "4f28122d937c4576bae635f3c47b38e0" + }, + { + "m_Id": "fbf0e8d513c74b31b4f5b3e0ce1974ec" + }, + { + "m_Id": "59189eb177294772abdaf12244f29683" + }, + { + "m_Id": "03ec4cfc6c7f43e9b8dde6b55229f0e5" + }, + { + "m_Id": "ffb26183a02142c9ba9f6dc3c699b836" + }, + { + "m_Id": "14ae5c01efd64b42af0514587317cd1b" + }, + { + "m_Id": "eacd5483b7d147f29d106944fb81820f" + }, + { + "m_Id": "d88e2c0d934d4821aec02b54dd1dadfe" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "005e79c1788045d7ae7c0f744e04eb5d" + } + ], + "m_Nodes": [ + { + "m_Id": "53eae9ef68a34c579b232478ccbf893b" + }, + { + "m_Id": "0b5c4b923621405fa32b3ff00d86398b" + }, + { + "m_Id": "b6cc34bdca9946899b233ff541dc83e6" + }, + { + "m_Id": "2c0cdb880cdc4bc0ac61f660e5b39064" + }, + { + "m_Id": "1e684ffb3889442f984c06b631600321" + }, + { + "m_Id": "1be04a717080468b93cdbd9b29d70fd5" + }, + { + "m_Id": "8cd56376ff504201abc53c418e68e06c" + }, + { + "m_Id": "84da2a1f483d40c3b50837ba31f16d58" + }, + { + "m_Id": "e4237f9496964339af12b297f2d2bd5d" + }, + { + "m_Id": "b58e524100fc49c4befe114b8b8dfc63" + }, + { + "m_Id": "aaceb80d5151416d8179f344cf40038e" + }, + { + "m_Id": "3dbbbb83adca47ddb4fa0955679abab7" + }, + { + "m_Id": "db7dfe9c5c794764ae5fdee61a50feb7" + }, + { + "m_Id": "7981b01970444016a9fddec82f1078b4" + }, + { + "m_Id": "3558c70521444f1d8e5a11f280949669" + }, + { + "m_Id": "445713c18b674937923b2fa36e25f84a" + }, + { + "m_Id": "97d1f891a9cb44eb94e39898c4cdea6b" + }, + { + "m_Id": "dcbbfdee10624a19a68ee3dcb2594a12" + }, + { + "m_Id": "b36f8af0e9964c9b8fb3614b5e8a2b6f" + }, + { + "m_Id": "fbf53fa0d9c84fe6a2dfe94c11240ebd" + }, + { + "m_Id": "e8009ac4c4fd4e7faf51cd105f4d2b99" + }, + { + "m_Id": "f3d73f7d9fa44cb284e2823dd6c8eb37" + }, + { + "m_Id": "c0b8711453a8447ba2e0fb4f4d365df8" + }, + { + "m_Id": "6d12b9d440064338be0c948b99fb5a75" + }, + { + "m_Id": "96e26b06b4824dcdbbb8dd670f106ee8" + }, + { + "m_Id": "e7bafe7bea5b460ca8ed976329eae150" + }, + { + "m_Id": "664f9f24b731456c8dda25532f55a6a4" + }, + { + "m_Id": "b8a1ba7e7865418ab25f9a8363338928" + }, + { + "m_Id": "a2d68e32f91b44a8b270217146896d4b" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [ + { + "m_Id": "f1a71feb2fc044b3ba8dfa24a4898af8" + }, + { + "m_Id": "028ab0b5ae6e4bde8bc4a7f04225afc5" + }, + { + "m_Id": "a246f77ff0f24537b83adc16f50a8334" + }, + { + "m_Id": "436cfd9a35584b0c854b36fb4ed0f618" + } + ], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1be04a717080468b93cdbd9b29d70fd5" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c0b8711453a8447ba2e0fb4f4d365df8" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e684ffb3889442f984c06b631600321" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1be04a717080468b93cdbd9b29d70fd5" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2c0cdb880cdc4bc0ac61f660e5b39064" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e4237f9496964339af12b297f2d2bd5d" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3558c70521444f1d8e5a11f280949669" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f3d73f7d9fa44cb284e2823dd6c8eb37" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3dbbbb83adca47ddb4fa0955679abab7" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "84da2a1f483d40c3b50837ba31f16d58" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "445713c18b674937923b2fa36e25f84a" + }, + "m_SlotId": 6 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3558c70521444f1d8e5a11f280949669" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6d12b9d440064338be0c948b99fb5a75" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "445713c18b674937923b2fa36e25f84a" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7981b01970444016a9fddec82f1078b4" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3558c70521444f1d8e5a11f280949669" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "84da2a1f483d40c3b50837ba31f16d58" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8cd56376ff504201abc53c418e68e06c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8cd56376ff504201abc53c418e68e06c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2c0cdb880cdc4bc0ac61f660e5b39064" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "96e26b06b4824dcdbbb8dd670f106ee8" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6d12b9d440064338be0c948b99fb5a75" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "97d1f891a9cb44eb94e39898c4cdea6b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6d12b9d440064338be0c948b99fb5a75" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a2d68e32f91b44a8b270217146896d4b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b6cc34bdca9946899b233ff541dc83e6" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a2d68e32f91b44a8b270217146896d4b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b8a1ba7e7865418ab25f9a8363338928" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "aaceb80d5151416d8179f344cf40038e" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "84da2a1f483d40c3b50837ba31f16d58" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b36f8af0e9964c9b8fb3614b5e8a2b6f" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "96e26b06b4824dcdbbb8dd670f106ee8" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b58e524100fc49c4befe114b8b8dfc63" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1be04a717080468b93cdbd9b29d70fd5" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b6cc34bdca9946899b233ff541dc83e6" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "445713c18b674937923b2fa36e25f84a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b6cc34bdca9946899b233ff541dc83e6" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8cd56376ff504201abc53c418e68e06c" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b6cc34bdca9946899b233ff541dc83e6" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "96e26b06b4824dcdbbb8dd670f106ee8" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b8a1ba7e7865418ab25f9a8363338928" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "664f9f24b731456c8dda25532f55a6a4" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c0b8711453a8447ba2e0fb4f4d365df8" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "53eae9ef68a34c579b232478ccbf893b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "db7dfe9c5c794764ae5fdee61a50feb7" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2c0cdb880cdc4bc0ac61f660e5b39064" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "dcbbfdee10624a19a68ee3dcb2594a12" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b36f8af0e9964c9b8fb3614b5e8a2b6f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e4237f9496964339af12b297f2d2bd5d" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1be04a717080468b93cdbd9b29d70fd5" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e7bafe7bea5b460ca8ed976329eae150" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e4237f9496964339af12b297f2d2bd5d" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e8009ac4c4fd4e7faf51cd105f4d2b99" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3558c70521444f1d8e5a11f280949669" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f3d73f7d9fa44cb284e2823dd6c8eb37" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c0b8711453a8447ba2e0fb4f4d365df8" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "fbf53fa0d9c84fe6a2dfe94c11240ebd" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b36f8af0e9964c9b8fb3614b5e8a2b6f" + }, + "m_SlotId": 1 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "53eae9ef68a34c579b232478ccbf893b" + }, + { + "m_Id": "0b5c4b923621405fa32b3ff00d86398b" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "5b6520fdc9ad424da4c9e39780565a9b" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "005e79c1788045d7ae7c0f744e04eb5d", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "4f28122d937c4576bae635f3c47b38e0" + }, + { + "m_Id": "fbf0e8d513c74b31b4f5b3e0ce1974ec" + }, + { + "m_Id": "59189eb177294772abdaf12244f29683" + }, + { + "m_Id": "03ec4cfc6c7f43e9b8dde6b55229f0e5" + }, + { + "m_Id": "ffb26183a02142c9ba9f6dc3c699b836" + }, + { + "m_Id": "14ae5c01efd64b42af0514587317cd1b" + }, + { + "m_Id": "eacd5483b7d147f29d106944fb81820f" + }, + { + "m_Id": "d88e2c0d934d4821aec02b54dd1dadfe" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "026e2818f1574a72bd4f3a53fde7dac1", + "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": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.StickyNoteData", + "m_ObjectId": "028ab0b5ae6e4bde8bc4a7f04225afc5", + "m_Title": "Find channels", + "m_Content": "Using the tip/end positions, we calculate the percentage of the probe to sample channels from", + "m_TextSize": 0, + "m_Theme": 0, + "m_Position": { + "serializedVersion": "2", + "x": -650.0, + "y": 89.0, + "width": 200.0, + "height": 160.0 + }, + "m_Group": { + "m_Id": "" + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty", + "m_ObjectId": "03ec4cfc6c7f43e9b8dde6b55229f0e5", + "m_Guid": { + "m_GuidSerialized": "53e75c95-11a4-4495-bd7a-0a9f21f7f3f2" + }, + "m_Name": "EndPositionIdx", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EndPositionIdx", + "m_DefaultReferenceName": "_EndPositionIdx", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "0a02033b7b274767804a70d0041cb496", + "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.BlockNode", + "m_ObjectId": "0b5c4b923621405fa32b3ff00d86398b", + "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": "2dea8c67d7964359b4c32a21805e089f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "0bfaf8f16e4f4275a680243e9b0da7da", + "m_Id": 6, + "m_DisplayName": "RG", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RG", + "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.ColorRGBMaterialSlot", + "m_ObjectId": "0c242b36deca4d11b30b8cdb704a63e7", + "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.5, + "y": 0.5, + "z": 0.5 + }, + "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.DynamicValueMaterialSlot", + "m_ObjectId": "0e439bb8bf3045a9815564d197e8e22d", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "1053fca7d1944c1485474c7050cf4547", + "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": "1283fe304781475ebe6143223b6fd85f", + "m_Id": 8, + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "14ae5c01efd64b42af0514587317cd1b", + "m_Guid": { + "m_GuidSerialized": "28d6bc7e-bbfd-4ed2-b54e-e3402c439d8b" + }, + "m_Name": "TipPerc", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "TipPerc", + "m_DefaultReferenceName": "_TipPerc", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + }, + "m_SliderType": 0, + "m_SliderPower": 3.0, + "m_EnumType": 0, + "m_CSharpEnumString": "", + "m_EnumNames": [ + "Default" + ], + "m_EnumValues": [ + 0 + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "163b9d101f4b4e678440707eb9237174", + "m_Id": 0, + "m_DisplayName": "TipPositionIdx", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "1675e0afc20a41e9922ee7d8d5baa800", + "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.SampleTexture3DNode", + "m_ObjectId": "1be04a717080468b93cdbd9b29d70fd5", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 3D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -909.0, + "y": 433.9999694824219, + "width": 208.0, + "height": 373.9999694824219 + } + }, + "m_Slots": [ + { + "m_Id": "bd697f2970d648eba1348af1a48c4068" + }, + { + "m_Id": "9f7fb5e60ce545b78e76e8687d52b622" + }, + { + "m_Id": "8ad45951691347bc93f5f60ad3b0643f" + }, + { + "m_Id": "0a02033b7b274767804a70d0041cb496" + }, + { + "m_Id": "848c1a0c00db4a3abd8ff972cf7f00b6" + }, + { + "m_Id": "708d826368814cf194e65b343805457e" + }, + { + "m_Id": "ffdc0fcb28ca4ccf8885a51df8dd5242" + }, + { + "m_Id": "1283fe304781475ebe6143223b6fd85f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "1c75da56c2344254aa0303de29b778ca", + "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.PropertyNode", + "m_ObjectId": "1e684ffb3889442f984c06b631600321", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1192.0, + "y": 362.9999694824219, + "width": 181.0, + "height": 34.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "ba6975bd21d84b0bbdd95c3d19ce31b5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "fbf0e8d513c74b31b4f5b3e0ce1974ec" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "1f51efbe83114f679cb903f2405192a0", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "2031b8238d02494e82619523e36f66da", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 2.0, + "y": 2.0, + "z": 2.0, + "w": 2.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "2279e47dd8a24017adfe5af596c346b0", + "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.AddNode", + "m_ObjectId": "2c0cdb880cdc4bc0ac61f660e5b39064", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1452.9998779296875, + "y": 550.0, + "width": 207.9998779296875, + "height": 301.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "9c6b92b2b4de479d9c82eb3129df41f1" + }, + { + "m_Id": "91f2f458a7b64d48939b48a4384193a5" + }, + { + "m_Id": "77bb1af502d746f6b7205925047aecba" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2dea8c67d7964359b4c32a21805e089f", + "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.Vector4MaterialSlot", + "m_ObjectId": "316d8d2224ca4b93a148b10e01d90f1b", + "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.SampleTexture2DNode", + "m_ObjectId": "3558c70521444f1d8e5a11f280949669", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1045.0, + "y": -121.99998474121094, + "width": 183.00006103515626, + "height": 249.0 + } + }, + "m_Slots": [ + { + "m_Id": "4913d0b563fa47b98fb93084e1fd2f27" + }, + { + "m_Id": "8c1ef8fdca764d2da7fb01a2a192cf84" + }, + { + "m_Id": "026e2818f1574a72bd4f3a53fde7dac1" + }, + { + "m_Id": "71f52d91075047bb9fc868b7f3f2e61c" + }, + { + "m_Id": "d4fb8bc48afa490a9db02f3b9dd00394" + }, + { + "m_Id": "fd1d3f570b0b4b33a2534517d1311b64" + }, + { + "m_Id": "2279e47dd8a24017adfe5af596c346b0" + }, + { + "m_Id": "85953ef5366843918e75e355b23aef02" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "35b7451fb3bf4ece97da17ef6f957efc", + "m_Id": 0, + "m_DisplayName": "R", + "m_SlotType": 0, + "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": "3681f58164ff497cad72d286c7566f50", + "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.PropertyNode", + "m_ObjectId": "3dbbbb83adca47ddb4fa0955679abab7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2010.9998779296875, + "y": 417.0, + "width": 154.0, + "height": 33.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "66a8b18ba4ac4a61ba3cf6264bc26698" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "03ec4cfc6c7f43e9b8dde6b55229f0e5" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "3e6b73b873684fca97f427b0d5905065", + "m_Id": 2, + "m_DisplayName": "False", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "False", + "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.StickyNoteData", + "m_ObjectId": "436cfd9a35584b0c854b36fb4ed0f618", + "m_Title": "If channel", + "m_Content": "Use the color, otherwise just skip and show black", + "m_TextSize": 0, + "m_Theme": 0, + "m_Position": { + "serializedVersion": "2", + "x": -471.0, + "y": 454.0, + "width": 200.0, + "height": 160.0 + }, + "m_Group": { + "m_Id": "" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CombineNode", + "m_ObjectId": "445713c18b674937923b2fa36e25f84a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Combine", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1256.0, + "y": -87.9999771118164, + "width": 140.0, + "height": 165.99998474121095 + } + }, + "m_Slots": [ + { + "m_Id": "35b7451fb3bf4ece97da17ef6f957efc" + }, + { + "m_Id": "98376111680f4250bb04e12accd165f6" + }, + { + "m_Id": "e1a2d7226a2844278e23da54f678c6d4" + }, + { + "m_Id": "dd0dcaa8022f40dfb52016f2438e39d4" + }, + { + "m_Id": "edd973d629df4551b6721fc433342bc4" + }, + { + "m_Id": "d6c0cecf4eb94bc6aedf358a3a50d14b" + }, + { + "m_Id": "0bfaf8f16e4f4275a680243e9b0da7da" + } + ], + "synonyms": [ + "append" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "4913d0b563fa47b98fb93084e1fd2f27", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "4ea3922e44b7443c8d367a657cfcd0c3", + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "4f28122d937c4576bae635f3c47b38e0", + "m_Guid": { + "m_GuidSerialized": "f3e7d86a-a47e-4717-bb10-038d4c1862f0" + }, + "m_Name": "RecordingHeight", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "RecordingHeight", + "m_DefaultReferenceName": "_RecordingHeight", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + }, + "m_SliderType": 0, + "m_SliderPower": 3.0, + "m_EnumType": 0, + "m_CSharpEnumString": "", + "m_EnumNames": [ + "Default" + ], + "m_EnumValues": [ + 0 + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "509148b9c8b9414b922ff860a6fb8683", + "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.BlockNode", + "m_ObjectId": "53eae9ef68a34c579b232478ccbf893b", + "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": "0c242b36deca4d11b30b8cdb704a63e7" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty", + "m_ObjectId": "59189eb177294772abdaf12244f29683", + "m_Guid": { + "m_GuidSerialized": "ae8ba31f-ac6a-446b-8edf-b7b15e63dbf4" + }, + "m_Name": "TipPositionIdx", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "TipPositionIdx", + "m_DefaultReferenceName": "_TipPositionIdx", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "5b6520fdc9ad424da4c9e39780565a9b", + "m_Datas": [ + { + "m_Id": "9abe7556fd3a4f2eaa91e7bc564d6713" + } + ], + "m_ActiveSubTarget": { + "m_Id": "d45ce7179f0c4380ba2816bfa192f9f7" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 0, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_DisableTint": false, + "m_AdditionalMotionVectorMode": 0, + "m_AlembicMotionVectors": false, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5c94934d587b41dcb5bc9671b62a6238", + "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": "5dc6b63a34e84fb695864c173d1e2385", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "5f034391408f4f5cb797f778a427b35e", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "629090c130474da6bb1449c609a75025", + "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": "63fbbb761a6d47a4bb69a4054f4d4efd", + "m_Id": 0, + "m_DisplayName": "EndPerc", + "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.AddNode", + "m_ObjectId": "664f9f24b731456c8dda25532f55a6a4", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2589.999755859375, + "y": 266.0, + "width": 207.999755859375, + "height": 301.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "1675e0afc20a41e9922ee7d8d5baa800" + }, + { + "m_Id": "d5d3f465db8d45adb591a9bfb2580d37" + }, + { + "m_Id": "1f51efbe83114f679cb903f2405192a0" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "66a8b18ba4ac4a61ba3cf6264bc26698", + "m_Id": 0, + "m_DisplayName": "EndPositionIdx", + "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.AddNode", + "m_ObjectId": "6d12b9d440064338be0c948b99fb5a75", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1793.9998779296875, + "y": -342.9999694824219, + "width": 126.0, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "629090c130474da6bb1449c609a75025" + }, + { + "m_Id": "c9f93092a7694ba28b58ab61686b9fad" + }, + { + "m_Id": "509148b9c8b9414b922ff860a6fb8683" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "708d826368814cf194e65b343805457e", + "m_Id": 6, + "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": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "71f52d91075047bb9fc868b7f3f2e61c", + "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": "7421730d36b2433fab9aac9e9d402163", + "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.Vector3MaterialSlot", + "m_ObjectId": "745db0b77a6b4aa19057d5ddfbd27df6", + "m_Id": 0, + "m_DisplayName": "AnnotationDimensions", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "77bb1af502d746f6b7205925047aecba", + "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.PropertyNode", + "m_ObjectId": "7981b01970444016a9fddec82f1078b4", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1231.0, + "y": -155.99998474121095, + "width": 166.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "f8c292ed84254380b73521c02ae2ebb5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "ffb26183a02142c9ba9f6dc3c699b836" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7f10513f41c44f8181ecf92c6246bf9d", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "80150414e33e4b129ab1ce00bd145a03", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "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.Vector1MaterialSlot", + "m_ObjectId": "81468b988dc54404b7d8e79a71983ad3", + "m_Id": 0, + "m_DisplayName": "TipPerc", + "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.Vector1MaterialSlot", + "m_ObjectId": "848c1a0c00db4a3abd8ff972cf7f00b6", + "m_Id": 5, + "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.SubtractNode", + "m_ObjectId": "84da2a1f483d40c3b50837ba31f16d58", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1820.9998779296875, + "y": 376.0, + "width": 130.0, + "height": 117.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "9172886d23564835a8d4812f724fc147" + }, + { + "m_Id": "8ed3915b39034a038baf555cf33ec064" + }, + { + "m_Id": "7421730d36b2433fab9aac9e9d402163" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "85953ef5366843918e75e355b23aef02", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "85ee53ecea554a51892dfe43f1480756", + "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.BooleanMaterialSlot", + "m_ObjectId": "894d2592768e4de695199272795ed977", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8a449dd26b384739bd0a5f274f20a075", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.5, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "8ad45951691347bc93f5f60ad3b0643f", + "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, + "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": "8c1ef8fdca764d2da7fb01a2a192cf84", + "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.MultiplyNode", + "m_ObjectId": "8cd56376ff504201abc53c418e68e06c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1635.9998779296875, + "y": 472.9999694824219, + "width": 130.0, + "height": 117.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "5c94934d587b41dcb5bc9671b62a6238" + }, + { + "m_Id": "ed56c05d8be94b1b8861f7825506e516" + }, + { + "m_Id": "ec7317bb880647e484c024cce92c080e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8ed3915b39034a038baf555cf33ec064", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "9172886d23564835a8d4812f724fc147", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "91f2f458a7b64d48939b48a4384193a5", + "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.BooleanMaterialSlot", + "m_ObjectId": "94993b749d074d3b9912e3a0453a1b63", + "m_Id": 0, + "m_DisplayName": "Predicate", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Predicate", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "96e26b06b4824dcdbbb8dd670f106ee8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1945.9998779296875, + "y": -407.9999694824219, + "width": 126.0, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "bdc71faebc844e59a627d9190b4f77cc" + }, + { + "m_Id": "0e439bb8bf3045a9815564d197e8e22d" + }, + { + "m_Id": "1053fca7d1944c1485474c7050cf4547" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "97d1f891a9cb44eb94e39898c4cdea6b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1935.9998779296875, + "y": -264.9999694824219, + "width": 116.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "81468b988dc54404b7d8e79a71983ad3" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "14ae5c01efd64b42af0514587317cd1b" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "98376111680f4250bb04e12accd165f6", + "m_Id": 1, + "m_DisplayName": "G", + "m_SlotType": 0, + "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.Rendering.Fullscreen.ShaderGraph.FullscreenData", + "m_ObjectId": "9abe7556fd3a4f2eaa91e7bc564d6713", + "m_Version": 0, + "m_fullscreenMode": 0, + "m_BlendMode": 0, + "m_SrcColorBlendMode": 0, + "m_DstColorBlendMode": 1, + "m_ColorBlendOperation": 0, + "m_SrcAlphaBlendMode": 0, + "m_DstAlphaBlendMode": 1, + "m_AlphaBlendOperation": 0, + "m_EnableStencil": false, + "m_StencilReference": 0, + "m_StencilReadMask": 255, + "m_StencilWriteMask": 255, + "m_StencilCompareFunction": 8, + "m_StencilPassOperation": 0, + "m_StencilFailOperation": 0, + "m_StencilDepthFailOperation": 0, + "m_DepthWrite": false, + "m_depthWriteMode": 0, + "m_AllowMaterialOverride": false, + "m_DepthTestMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9c6b92b2b4de479d9c82eb3129df41f1", + "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.Vector3MaterialSlot", + "m_ObjectId": "9c8b914efc604623a3822a606352aaee", + "m_Id": 0, + "m_DisplayName": "TipPositionIdx", + "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.Texture3DInputMaterialSlot", + "m_ObjectId": "9f7fb5e60ce545b78e76e8687d52b622", + "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": "", + "m_Guid": "" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.StickyNoteData", + "m_ObjectId": "a246f77ff0f24537b83adc16f50a8334", + "m_Title": "Normalize", + "m_Content": "", + "m_TextSize": 0, + "m_Theme": 0, + "m_Position": { + "serializedVersion": "2", + "x": -1889.0, + "y": -178.0, + "width": 200.0, + "height": 100.0 + }, + "m_Group": { + "m_Id": "" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ScreenPositionNode", + "m_ObjectId": "a2d68e32f91b44a8b270217146896d4b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Screen Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -3244.999755859375, + "y": 109.9999771118164, + "width": 208.0, + "height": 312.0 + } + }, + "m_Slots": [ + { + "m_Id": "316d8d2224ca4b93a148b10e01d90f1b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_ScreenSpaceType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "aaceb80d5151416d8179f344cf40038e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2006.9998779296875, + "y": 450.99993896484377, + "width": 151.0, + "height": 34.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "163b9d101f4b4e678440707eb9237174" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "59189eb177294772abdaf12244f29683" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubtractNode", + "m_ObjectId": "b36f8af0e9964c9b8fb3614b5e8a2b6f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2093.0, + "y": -349.9999694824219, + "width": 126.0001220703125, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "80150414e33e4b129ab1ce00bd145a03" + }, + { + "m_Id": "1c75da56c2344254aa0303de29b778ca" + }, + { + "m_Id": "4ea3922e44b7443c8d367a657cfcd0c3" + } + ], + "synonyms": [ + "subtraction", + "remove", + "minus", + "take away" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateNode", + "m_ObjectId": "b58e524100fc49c4befe114b8b8dfc63", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sampler State", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1085.0, + "y": 873.9999389648438, + "width": 145.0, + "height": 136.0 + } + }, + "m_Slots": [ + { + "m_Id": "d9cd59a0778a443c8d2095e745d26960" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_filter": 1, + "m_wrap": 1, + "m_aniso": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "b5d3dce712124099abeb979efdbbe47e", + "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.SplitNode", + "m_ObjectId": "b6cc34bdca9946899b233ff541dc83e6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2243.999755859375, + "y": 17.000017166137697, + "width": 120.0, + "height": 149.0 + } + }, + "m_Slots": [ + { + "m_Id": "ba5296b691c64f3aa4ebbb16a05a0f61" + }, + { + "m_Id": "f66b4f04954b4eae90c8e2f77be2459d" + }, + { + "m_Id": "3681f58164ff497cad72d286c7566f50" + }, + { + "m_Id": "f6472fccd2b245d2b909dd0c877c436a" + }, + { + "m_Id": "7f10513f41c44f8181ecf92c6246bf9d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b82e7c5f978c410786ef888364a1aa18", + "m_Id": 0, + "m_DisplayName": "TipPerc", + "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.MultiplyNode", + "m_ObjectId": "b8a1ba7e7865418ab25f9a8363338928", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2811.999755859375, + "y": 177.99996948242188, + "width": 207.999755859375, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "b5d3dce712124099abeb979efdbbe47e" + }, + { + "m_Id": "85ee53ecea554a51892dfe43f1480756" + }, + { + "m_Id": "c2852c21a47248858e4660a282083db9" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ba5296b691c64f3aa4ebbb16a05a0f61", + "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.Texture3DMaterialSlot", + "m_ObjectId": "ba6975bd21d84b0bbdd95c3d19ce31b5", + "m_Id": 0, + "m_DisplayName": "AnnotationTexture", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "bd44b5d9d41047d490283db4b15e0436", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "bd697f2970d648eba1348af1a48c4068", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "bdc71faebc844e59a627d9190b4f77cc", + "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.BranchNode", + "m_ObjectId": "c0b8711453a8447ba2e0fb4f4d365df8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Branch", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -381.0000305175781, + "y": 166.99998474121095, + "width": 207.9999542236328, + "height": 326.0 + } + }, + "m_Slots": [ + { + "m_Id": "94993b749d074d3b9912e3a0453a1b63" + }, + { + "m_Id": "d31a1833571341a8be082ebf9beba60e" + }, + { + "m_Id": "3e6b73b873684fca97f427b0d5905065" + }, + { + "m_Id": "5f034391408f4f5cb797f778a427b35e" + } + ], + "synonyms": [ + "switch", + "if", + "else" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "c2852c21a47248858e4660a282083db9", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "c9f93092a7694ba28b58ab61686b9fad", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "d31a1833571341a8be082ebf9beba60e", + "m_Id": 1, + "m_DisplayName": "True", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "True", + "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.Rendering.Universal.ShaderGraph.UniversalFullscreenSubTarget", + "m_ObjectId": "d45ce7179f0c4380ba2816bfa192f9f7" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d4fb8bc48afa490a9db02f3b9dd00394", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "d5d3f465db8d45adb591a9bfb2580d37", + "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.Vector3MaterialSlot", + "m_ObjectId": "d6c0cecf4eb94bc6aedf358a3a50d14b", + "m_Id": 5, + "m_DisplayName": "RGB", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGB", + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty", + "m_ObjectId": "d88e2c0d934d4821aec02b54dd1dadfe", + "m_Guid": { + "m_GuidSerialized": "31891a24-9d09-4762-807b-f9c98d4f354b" + }, + "m_Name": "AnnotationDimensions", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "AnnotationDimensions", + "m_DefaultReferenceName": "_AnnotationDimensions", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "d9cd59a0778a443c8d2095e745d26960", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "db7dfe9c5c794764ae5fdee61a50feb7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1635.9998779296875, + "y": 631.9999389648438, + "width": 151.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "9c8b914efc604623a3822a606352aaee" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "59189eb177294772abdaf12244f29683" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "dcbbfdee10624a19a68ee3dcb2594a12", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2240.0, + "y": -317.9999694824219, + "width": 119.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "63fbbb761a6d47a4bb69a4054f4d4efd" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "eacd5483b7d147f29d106944fb81820f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "dd0dcaa8022f40dfb52016f2438e39d4", + "m_Id": 3, + "m_DisplayName": "A", + "m_SlotType": 0, + "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.Vector1MaterialSlot", + "m_ObjectId": "e0b41f43a1a74310b18cb6864732d6c7", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "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.Vector1MaterialSlot", + "m_ObjectId": "e1a2d7226a2844278e23da54f678c6d4", + "m_Id": 2, + "m_DisplayName": "B", + "m_SlotType": 0, + "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.DivideNode", + "m_ObjectId": "e4237f9496964339af12b297f2d2bd5d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Divide", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1157.0, + "y": 528.9999389648438, + "width": 208.0, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "5dc6b63a34e84fb695864c173d1e2385" + }, + { + "m_Id": "2031b8238d02494e82619523e36f66da" + }, + { + "m_Id": "ed8f06bb30b54bd1be2fb1eb3f4e54ef" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "e7bafe7bea5b460ca8ed976329eae150", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1418.9998779296875, + "y": 856.9999389648438, + "width": 193.9998779296875, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "745db0b77a6b4aa19057d5ddfbd27df6" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "d88e2c0d934d4821aec02b54dd1dadfe" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateNode", + "m_ObjectId": "e8009ac4c4fd4e7faf51cd105f4d2b99", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sampler State", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1231.0, + "y": 90.99999237060547, + "width": 145.0, + "height": 136.0 + } + }, + "m_Slots": [ + { + "m_Id": "bd44b5d9d41047d490283db4b15e0436" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_filter": 0, + "m_wrap": 1, + "m_aniso": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "eacd5483b7d147f29d106944fb81820f", + "m_Guid": { + "m_GuidSerialized": "1b6b8323-8623-4fbd-92c2-5acf2b103ef5" + }, + "m_Name": "EndPerc", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EndPerc", + "m_DefaultReferenceName": "_EndPerc", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + }, + "m_SliderType": 0, + "m_SliderPower": 3.0, + "m_EnumType": 0, + "m_CSharpEnumString": "", + "m_EnumNames": [ + "Default" + ], + "m_EnumValues": [ + 0 + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ec7317bb880647e484c024cce92c080e", + "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": "ed56c05d8be94b1b8861f7825506e516", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "ed8f06bb30b54bd1be2fb1eb3f4e54ef", + "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.Vector4MaterialSlot", + "m_ObjectId": "edd973d629df4551b6721fc433342bc4", + "m_Id": 4, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "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.StickyNoteData", + "m_ObjectId": "f1a71feb2fc044b3ba8dfa24a4898af8", + "m_Title": "Annotation colors", + "m_Content": "Gets the annotation colors along the Y distance from the tip to end position", + "m_TextSize": 0, + "m_Theme": 0, + "m_Position": { + "serializedVersion": "2", + "x": -1437.0, + "y": 275.0, + "width": 200.0, + "height": 160.0 + }, + "m_Group": { + "m_Id": "" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ComparisonNode", + "m_ObjectId": "f3d73f7d9fa44cb284e2823dd6c8eb37", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Comparison", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -769.0, + "y": -98.99996948242188, + "width": 145.0, + "height": 134.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "e0b41f43a1a74310b18cb6864732d6c7" + }, + { + "m_Id": "8a449dd26b384739bd0a5f274f20a075" + }, + { + "m_Id": "894d2592768e4de695199272795ed977" + } + ], + "synonyms": [ + "equal", + "greater than", + "less than" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_ComparisonType": 5 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f6472fccd2b245d2b909dd0c877c436a", + "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": "f66b4f04954b4eae90c8e2f77be2459d", + "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.Texture2DMaterialSlot", + "m_ObjectId": "f8c292ed84254380b73521c02ae2ebb5", + "m_Id": 0, + "m_DisplayName": "ChannelTexture", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture3DShaderProperty", + "m_ObjectId": "fbf0e8d513c74b31b4f5b3e0ce1974ec", + "m_Guid": { + "m_GuidSerialized": "08f2f9ea-29b3-43bd-80e5-0402ab686d88" + }, + "m_Name": "AnnotationTexture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "AnnotationTexture", + "m_DefaultReferenceName": "_AnnotationTexture", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_Modifiable": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "fbf53fa0d9c84fe6a2dfe94c11240ebd", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2240.0, + "y": -283.9999694824219, + "width": 116.000244140625, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "b82e7c5f978c410786ef888364a1aa18" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "14ae5c01efd64b42af0514587317cd1b" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "fd1d3f570b0b4b33a2534517d1311b64", + "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": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "ffb26183a02142c9ba9f6dc3c699b836", + "m_Guid": { + "m_GuidSerialized": "d5cb4929-a754-4aa5-bf58-bdefa3a4ae4c" + }, + "m_Name": "ChannelTexture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ChannelTexture", + "m_DefaultReferenceName": "_ChannelTexture", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "useTexelSize": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ffdc0fcb28ca4ccf8885a51df8dd5242", + "m_Id": 7, + "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": [] +} + diff --git a/Assets/Shaders/Volumes/ProbePanelChannelShaderBlit.shadergraph.meta b/Assets/Shaders/Volumes/ProbePanelChannelShaderBlit.shadergraph.meta new file mode 100644 index 00000000..8b983a91 --- /dev/null +++ b/Assets/Shaders/Volumes/ProbePanelChannelShaderBlit.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 74fd3798513464b47bc1f6f854bba353 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/Shaders/Volumes/ProbePanelSliceShaderblit.shadergraph b/Assets/Shaders/Volumes/ProbePanelSliceShaderblit.shadergraph new file mode 100644 index 00000000..a1f74415 --- /dev/null +++ b/Assets/Shaders/Volumes/ProbePanelSliceShaderblit.shadergraph @@ -0,0 +1,1892 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "83f0f8a16dd94ce290b272635b46be78", + "m_Properties": [ + { + "m_Id": "8bf52b58581f4e279c183ef2bce96e6e" + }, + { + "m_Id": "dc2b8ac53bc641bb870508a57431c8a0" + }, + { + "m_Id": "e205c0921cd645ef9c4934e5e028063c" + }, + { + "m_Id": "dc4170dce362440484ab820d1f1833f2" + }, + { + "m_Id": "4534575b67e14be7b7f494ae4b2da675" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "005e79c1788045d7ae7c0f744e04eb5d" + } + ], + "m_Nodes": [ + { + "m_Id": "53eae9ef68a34c579b232478ccbf893b" + }, + { + "m_Id": "0b5c4b923621405fa32b3ff00d86398b" + }, + { + "m_Id": "1c91145bf99949cd9447baf5ded9d6d6" + }, + { + "m_Id": "0938e13ca5a24866ab429ce751520323" + }, + { + "m_Id": "eb96950e98c945879e2a57d260af8141" + }, + { + "m_Id": "02618857ae4949bea93253fb501558cd" + }, + { + "m_Id": "2d2f13c9b1bf4a4384d2d7834ae6fe70" + }, + { + "m_Id": "23d535ab903b4cd5851a394ee46777ff" + }, + { + "m_Id": "b0f5e3c0d74a409cbc52a1f7ceb829f0" + }, + { + "m_Id": "f1f7133b04d44a21a2ae0bcd6bebf7d6" + }, + { + "m_Id": "921cc8fb9f29407eaa0bfb835ad87605" + }, + { + "m_Id": "5626d584abb3403ebe979ded8e3cf397" + }, + { + "m_Id": "74e5fa328c43483b8509decc48375cd4" + }, + { + "m_Id": "2a2bac00e8054550ad58649c1dcb123b" + }, + { + "m_Id": "88d8973ed92a42d5a1e70e879606b972" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "02618857ae4949bea93253fb501558cd" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "53eae9ef68a34c579b232478ccbf893b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0938e13ca5a24866ab429ce751520323" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b0f5e3c0d74a409cbc52a1f7ceb829f0" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1c91145bf99949cd9447baf5ded9d6d6" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2d2f13c9b1bf4a4384d2d7834ae6fe70" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "23d535ab903b4cd5851a394ee46777ff" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2d2f13c9b1bf4a4384d2d7834ae6fe70" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2a2bac00e8054550ad58649c1dcb123b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b0f5e3c0d74a409cbc52a1f7ceb829f0" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2d2f13c9b1bf4a4384d2d7834ae6fe70" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0938e13ca5a24866ab429ce751520323" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5626d584abb3403ebe979ded8e3cf397" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "23d535ab903b4cd5851a394ee46777ff" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "74e5fa328c43483b8509decc48375cd4" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0938e13ca5a24866ab429ce751520323" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "88d8973ed92a42d5a1e70e879606b972" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1c91145bf99949cd9447baf5ded9d6d6" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "921cc8fb9f29407eaa0bfb835ad87605" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "23d535ab903b4cd5851a394ee46777ff" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b0f5e3c0d74a409cbc52a1f7ceb829f0" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "02618857ae4949bea93253fb501558cd" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "eb96950e98c945879e2a57d260af8141" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "02618857ae4949bea93253fb501558cd" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f1f7133b04d44a21a2ae0bcd6bebf7d6" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "02618857ae4949bea93253fb501558cd" + }, + "m_SlotId": 3 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "53eae9ef68a34c579b232478ccbf893b" + }, + { + "m_Id": "0b5c4b923621405fa32b3ff00d86398b" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "5b6520fdc9ad424da4c9e39780565a9b" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "005e79c1788045d7ae7c0f744e04eb5d", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "8bf52b58581f4e279c183ef2bce96e6e" + }, + { + "m_Id": "dc2b8ac53bc641bb870508a57431c8a0" + }, + { + "m_Id": "e205c0921cd645ef9c4934e5e028063c" + }, + { + "m_Id": "dc4170dce362440484ab820d1f1833f2" + }, + { + "m_Id": "4534575b67e14be7b7f494ae4b2da675" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture3DNode", + "m_ObjectId": "02618857ae4949bea93253fb501558cd", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 3D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -308.9999084472656, + "y": 142.99996948242188, + "width": 207.9999542236328, + "height": 373.9999694824219 + } + }, + "m_Slots": [ + { + "m_Id": "55c637b2a52d4464a7f43cb009298d73" + }, + { + "m_Id": "a9ad6120063247d3ab67e3c819620f06" + }, + { + "m_Id": "08979120a0694439adeb38e72c910c0a" + }, + { + "m_Id": "85c35491d7b94b5f94bbe9186c506120" + }, + { + "m_Id": "d6429a12b74143c2b9dd160ba4625dba" + }, + { + "m_Id": "bebfd1c0421d41919d164293dca0fbab" + }, + { + "m_Id": "a09dff3e364745c989681fc4029eb114" + }, + { + "m_Id": "5bbb881c9df14c7c93da8dab795f2c11" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "08979120a0694439adeb38e72c910c0a", + "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, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "0938e13ca5a24866ab429ce751520323", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -852.9999389648438, + "y": 259.0, + "width": 208.0, + "height": 301.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "290711671b5b4f8d97e684e01b5ac851" + }, + { + "m_Id": "0d0f7d4255674ffc9e284ab836ac5730" + }, + { + "m_Id": "8d370eaa9d104bf787f5ea48a5a25a5e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "0b5c4b923621405fa32b3ff00d86398b", + "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": "2dea8c67d7964359b4c32a21805e089f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "0c242b36deca4d11b30b8cdb704a63e7", + "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.5, + "y": 0.5, + "z": 0.5 + }, + "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": "0d0f7d4255674ffc9e284ab836ac5730", + "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.SamplerStateMaterialSlot", + "m_ObjectId": "1be3adc16fcb46bc9646fbea38f8bc4b", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "1c91145bf99949cd9447baf5ded9d6d6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1220.9998779296875, + "y": 238.0, + "width": 120.0, + "height": 149.0 + } + }, + "m_Slots": [ + { + "m_Id": "75db4b9a935d42e9a4156391fdccc1c6" + }, + { + "m_Id": "25852402cb91427883b0ac773ab89f9e" + }, + { + "m_Id": "a1e95f6cb4744f71bad3889f8d48fe3a" + }, + { + "m_Id": "53b59cae1b9d4dd0bbc66a9601caec2e" + }, + { + "m_Id": "54b0102a9bd346e4a62e6ece76ec3487" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "23294e3b1d2642e9aa7a9cee22515b04", + "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.SubtractNode", + "m_ObjectId": "23d535ab903b4cd5851a394ee46777ff", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1220.9998779296875, + "y": 84.99999237060547, + "width": 130.0, + "height": 117.99996185302735 + } + }, + "m_Slots": [ + { + "m_Id": "305113a749aa444c9b0469f29e70d657" + }, + { + "m_Id": "ef54d2892b1045b3ab4dd37104cc5514" + }, + { + "m_Id": "9da08e3126f54aae9667d7b750234c6c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "25852402cb91427883b0ac773ab89f9e", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "290711671b5b4f8d97e684e01b5ac851", + "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.PropertyNode", + "m_ObjectId": "2a2bac00e8054550ad58649c1dcb123b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -809.9999389648438, + "y": 596.9999389648438, + "width": 194.00006103515626, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "6a8771ae717f48e89b77333b3648aa89" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "4534575b67e14be7b7f494ae4b2da675" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "2d2f13c9b1bf4a4384d2d7834ae6fe70", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1035.9998779296875, + "y": 181.99996948242188, + "width": 129.99993896484376, + "height": 118.00003051757813 + } + }, + "m_Slots": [ + { + "m_Id": "aa0399ef00a147468e3a17bbea561737" + }, + { + "m_Id": "c822231240a3449688d7581ec3a61b2e" + }, + { + "m_Id": "ecc32413f1bb4f0a8cdb6318b561330f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2dea8c67d7964359b4c32a21805e089f", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "305113a749aa444c9b0469f29e70d657", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty", + "m_ObjectId": "4534575b67e14be7b7f494ae4b2da675", + "m_Guid": { + "m_GuidSerialized": "0dbe3e2e-acf4-416a-aacc-775c4165e4b2" + }, + "m_Name": "AnnotationDimensions", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "AnnotationDimensions", + "m_DefaultReferenceName": "_AnnotationDimensions", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4617b7351da14ccaa27e4c68d083679f", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 2.0, + "y": 2.0, + "z": 2.0, + "w": 2.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": "53b59cae1b9d4dd0bbc66a9601caec2e", + "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.BlockNode", + "m_ObjectId": "53eae9ef68a34c579b232478ccbf893b", + "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": "0c242b36deca4d11b30b8cdb704a63e7" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "54b0102a9bd346e4a62e6ece76ec3487", + "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.Vector4MaterialSlot", + "m_ObjectId": "55c637b2a52d4464a7f43cb009298d73", + "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.PropertyNode", + "m_ObjectId": "5626d584abb3403ebe979ded8e3cf397", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1414.9998779296875, + "y": 147.9999542236328, + "width": 154.0, + "height": 34.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "f4372e10f2ad4a0c859f731ab02f0a8a" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "dc4170dce362440484ab820d1f1833f2" + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "5b6520fdc9ad424da4c9e39780565a9b", + "m_Datas": [ + { + "m_Id": "9abe7556fd3a4f2eaa91e7bc564d6713" + } + ], + "m_ActiveSubTarget": { + "m_Id": "d45ce7179f0c4380ba2816bfa192f9f7" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 0, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_DisableTint": false, + "m_AdditionalMotionVectorMode": 0, + "m_AlembicMotionVectors": false, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5bbb881c9df14c7c93da8dab795f2c11", + "m_Id": 8, + "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.Vector3MaterialSlot", + "m_ObjectId": "6a8771ae717f48e89b77333b3648aa89", + "m_Id": 0, + "m_DisplayName": "AnnotationDimensions", + "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.Vector4MaterialSlot", + "m_ObjectId": "6f3cb8f52ea0486d8451dd35791c177d", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "7003b173126a4e7e98640012ce2021c2", + "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.PropertyNode", + "m_ObjectId": "74e5fa328c43483b8509decc48375cd4", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1389.9998779296875, + "y": 757.9999389648438, + "width": 151.0, + "height": 33.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "cdf112341dc4452383428a79b224f70e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "e205c0921cd645ef9c4934e5e028063c" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "75db4b9a935d42e9a4156391fdccc1c6", + "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.Vector3MaterialSlot", + "m_ObjectId": "850a8d3106c341b98957c5f817ab675b", + "m_Id": 0, + "m_DisplayName": "TipPositionIdx", + "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.SamplerStateMaterialSlot", + "m_ObjectId": "85c35491d7b94b5f94bbe9186c506120", + "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.ScreenPositionNode", + "m_ObjectId": "88d8973ed92a42d5a1e70e879606b972", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Screen Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1633.0001220703125, + "y": 271.0000305175781, + "width": 208.0, + "height": 311.9999694824219 + } + }, + "m_Slots": [ + { + "m_Id": "6f3cb8f52ea0486d8451dd35791c177d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_ScreenSpaceType": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "8bf52b58581f4e279c183ef2bce96e6e", + "m_Guid": { + "m_GuidSerialized": "8481e98f-6e5d-4121-9cc4-a25f73a50461" + }, + "m_Name": "RecordingHeight", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "RecordingHeight", + "m_DefaultReferenceName": "_RecordingHeight", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + }, + "m_SliderType": 0, + "m_SliderPower": 3.0, + "m_EnumType": 0, + "m_CSharpEnumString": "", + "m_EnumNames": [ + "Default" + ], + "m_EnumValues": [ + 0 + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8d370eaa9d104bf787f5ea48a5a25a5e", + "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.PropertyNode", + "m_ObjectId": "921cc8fb9f29407eaa0bfb835ad87605", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1411.9998779296875, + "y": 105.9999771118164, + "width": 151.0, + "height": 34.00000762939453 + } + }, + "m_Slots": [ + { + "m_Id": "850a8d3106c341b98957c5f817ab675b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "e205c0921cd645ef9c4934e5e028063c" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.Fullscreen.ShaderGraph.FullscreenData", + "m_ObjectId": "9abe7556fd3a4f2eaa91e7bc564d6713", + "m_Version": 0, + "m_fullscreenMode": 0, + "m_BlendMode": 0, + "m_SrcColorBlendMode": 0, + "m_DstColorBlendMode": 1, + "m_ColorBlendOperation": 0, + "m_SrcAlphaBlendMode": 0, + "m_DstAlphaBlendMode": 1, + "m_AlphaBlendOperation": 0, + "m_EnableStencil": false, + "m_StencilReference": 0, + "m_StencilReadMask": 255, + "m_StencilWriteMask": 255, + "m_StencilCompareFunction": 8, + "m_StencilPassOperation": 0, + "m_StencilFailOperation": 0, + "m_StencilDepthFailOperation": 0, + "m_DepthWrite": false, + "m_depthWriteMode": 0, + "m_AllowMaterialOverride": false, + "m_DepthTestMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9da08e3126f54aae9667d7b750234c6c", + "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": "a09dff3e364745c989681fc4029eb114", + "m_Id": 7, + "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.Vector1MaterialSlot", + "m_ObjectId": "a1e95f6cb4744f71bad3889f8d48fe3a", + "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.Texture3DInputMaterialSlot", + "m_ObjectId": "a9ad6120063247d3ab67e3c819620f06", + "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": "", + "m_Guid": "" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "aa0399ef00a147468e3a17bbea561737", + "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.DivideNode", + "m_ObjectId": "b0f5e3c0d74a409cbc52a1f7ceb829f0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Divide", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -556.9998779296875, + "y": 238.0, + "width": 207.99993896484376, + "height": 301.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "7003b173126a4e7e98640012ce2021c2" + }, + { + "m_Id": "4617b7351da14ccaa27e4c68d083679f" + }, + { + "m_Id": "23294e3b1d2642e9aa7a9cee22515b04" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "bebfd1c0421d41919d164293dca0fbab", + "m_Id": 6, + "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": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "c822231240a3449688d7581ec3a61b2e", + "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.Vector3MaterialSlot", + "m_ObjectId": "cdf112341dc4452383428a79b224f70e", + "m_Id": 0, + "m_DisplayName": "TipPositionIdx", + "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.Rendering.Universal.ShaderGraph.UniversalFullscreenSubTarget", + "m_ObjectId": "d45ce7179f0c4380ba2816bfa192f9f7" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture3DMaterialSlot", + "m_ObjectId": "d5a2621fba8c4126a09226289c315f89", + "m_Id": 0, + "m_DisplayName": "AnnotationTexture", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d6429a12b74143c2b9dd160ba4625dba", + "m_Id": 5, + "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.Texture3DShaderProperty", + "m_ObjectId": "dc2b8ac53bc641bb870508a57431c8a0", + "m_Guid": { + "m_GuidSerialized": "f7fe2d8a-e714-4690-b6eb-0b0fcd857b7f" + }, + "m_Name": "AnnotationTexture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "AnnotationTexture", + "m_DefaultReferenceName": "_AnnotationTexture", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_Modifiable": true +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty", + "m_ObjectId": "dc4170dce362440484ab820d1f1833f2", + "m_Guid": { + "m_GuidSerialized": "639de141-d61f-4fb2-ab01-33a4e0857a73" + }, + "m_Name": "EndPositionIdx", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EndPositionIdx", + "m_DefaultReferenceName": "_EndPositionIdx", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty", + "m_ObjectId": "e205c0921cd645ef9c4934e5e028063c", + "m_Guid": { + "m_GuidSerialized": "39cbb5d9-a3db-429c-959a-b6be110ff0e3" + }, + "m_Name": "TipPositionIdx", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "TipPositionIdx", + "m_DefaultReferenceName": "_TipPositionIdx", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_PerRendererData": false, + "m_customAttributes": [], + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "eb96950e98c945879e2a57d260af8141", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -591.9999389648438, + "y": 72.00000762939453, + "width": 180.99993896484376, + "height": 33.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "d5a2621fba8c4126a09226289c315f89" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "dc2b8ac53bc641bb870508a57431c8a0" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ecc32413f1bb4f0a8cdb6318b561330f", + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "ef54d2892b1045b3ab4dd37104cc5514", + "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.SamplerStateNode", + "m_ObjectId": "f1f7133b04d44a21a2ae0bcd6bebf7d6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sampler State", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -484.9999694824219, + "y": 582.9999389648438, + "width": 145.00003051757813, + "height": 136.00006103515626 + } + }, + "m_Slots": [ + { + "m_Id": "1be3adc16fcb46bc9646fbea38f8bc4b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_filter": 1, + "m_wrap": 1, + "m_aniso": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "f4372e10f2ad4a0c859f731ab02f0a8a", + "m_Id": 0, + "m_DisplayName": "EndPositionIdx", + "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": [] +} + diff --git a/Assets/Shaders/Volumes/ProbePanelSliceShaderblit.shadergraph.meta b/Assets/Shaders/Volumes/ProbePanelSliceShaderblit.shadergraph.meta new file mode 100644 index 00000000..7929410b --- /dev/null +++ b/Assets/Shaders/Volumes/ProbePanelSliceShaderblit.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: bbe3974ad5481cb40ab20019ecad8440 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/UI/Components/ChannelMapTextItem.uxml b/Assets/UI/Components/ChannelMapTextItem.uxml new file mode 100644 index 00000000..81982040 --- /dev/null +++ b/Assets/UI/Components/ChannelMapTextItem.uxml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/Assets/UI/Views/ChannelMapsAndSlicesListItem.uxml.meta b/Assets/UI/Components/ChannelMapTextItem.uxml.meta similarity index 86% rename from Assets/UI/Views/ChannelMapsAndSlicesListItem.uxml.meta rename to Assets/UI/Components/ChannelMapTextItem.uxml.meta index 47ecfe83..c7b82cea 100644 --- a/Assets/UI/Views/ChannelMapsAndSlicesListItem.uxml.meta +++ b/Assets/UI/Components/ChannelMapTextItem.uxml.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d998089e4393e404f9a1ac039a4e8ed6 +guid: 0a6798f61a6f88248b66ddbd496096f7 ScriptedImporter: internalIDToNameTable: [] externalObjects: {} diff --git a/Assets/UI/Main.uxml b/Assets/UI/Main.uxml index 4e34ff09..515e026a 100644 --- a/Assets/UI/Main.uxml +++ b/Assets/UI/Main.uxml @@ -2,7 +2,7 @@ - + @@ -38,7 +38,7 @@ - + @@ -51,8 +51,8 @@ - - + + diff --git a/Assets/UI/RenderTextures/ChannelMapChannelTexture.renderTexture b/Assets/UI/RenderTextures/ChannelMapChannelTexture.renderTexture new file mode 100644 index 00000000..ef09b6f5 --- /dev/null +++ b/Assets/UI/RenderTextures/ChannelMapChannelTexture.renderTexture @@ -0,0 +1,39 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!84 &8400000 +RenderTexture: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: ChannelMapChannelTexture + m_ImageContentsHash: + serializedVersion: 2 + Hash: 00000000000000000000000000000000 + m_IsAlphaChannelOptional: 0 + serializedVersion: 6 + m_Width: 30 + m_Height: 1600 + m_AntiAliasing: 1 + m_MipCount: -1 + m_DepthStencilFormat: 0 + m_ColorFormat: 8 + m_MipMap: 0 + m_GenerateMips: 1 + m_SRGB: 0 + m_UseDynamicScale: 0 + m_UseDynamicScaleExplicit: 0 + m_BindMS: 0 + m_EnableCompatibleFormat: 1 + m_EnableRandomWrite: 0 + m_TextureSettings: + serializedVersion: 2 + m_FilterMode: 0 + m_Aniso: 0 + m_MipBias: 0 + m_WrapU: 1 + m_WrapV: 1 + m_WrapW: 1 + m_Dimension: 2 + m_VolumeDepth: 1 + m_ShadowSamplingMode: 2 diff --git a/Assets/UI/RenderTextures/SlicerenderTexture.renderTexture.meta b/Assets/UI/RenderTextures/ChannelMapChannelTexture.renderTexture.meta similarity index 100% rename from Assets/UI/RenderTextures/SlicerenderTexture.renderTexture.meta rename to Assets/UI/RenderTextures/ChannelMapChannelTexture.renderTexture.meta diff --git a/Assets/UI/RenderTextures/SlicerenderTexture.renderTexture b/Assets/UI/RenderTextures/ChannelMapSliceTexture.renderTexture similarity index 89% rename from Assets/UI/RenderTextures/SlicerenderTexture.renderTexture rename to Assets/UI/RenderTextures/ChannelMapSliceTexture.renderTexture index 1ab26d45..5527e0fa 100644 --- a/Assets/UI/RenderTextures/SlicerenderTexture.renderTexture +++ b/Assets/UI/RenderTextures/ChannelMapSliceTexture.renderTexture @@ -6,17 +6,17 @@ RenderTexture: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: SlicerenderTexture + m_Name: ChannelMapSliceTexture m_ImageContentsHash: serializedVersion: 2 Hash: 00000000000000000000000000000000 m_IsAlphaChannelOptional: 0 serializedVersion: 6 - m_Width: 800 + m_Width: 10 m_Height: 1600 - m_AntiAliasing: 8 + m_AntiAliasing: 1 m_MipCount: -1 - m_DepthStencilFormat: 92 + m_DepthStencilFormat: 0 m_ColorFormat: 8 m_MipMap: 0 m_GenerateMips: 1 diff --git a/Assets/UI/RenderTextures/ChannelMapSliceTexture.renderTexture.meta b/Assets/UI/RenderTextures/ChannelMapSliceTexture.renderTexture.meta new file mode 100644 index 00000000..db87c483 --- /dev/null +++ b/Assets/UI/RenderTextures/ChannelMapSliceTexture.renderTexture.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9fb637ec95016ac4da5853a8aed61438 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 8400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UI/RenderTextures/InplaneSliceRenderTexture.renderTexture b/Assets/UI/RenderTextures/InplaneSliceRenderTexture.renderTexture index b7c323ff..572b2921 100644 --- a/Assets/UI/RenderTextures/InplaneSliceRenderTexture.renderTexture +++ b/Assets/UI/RenderTextures/InplaneSliceRenderTexture.renderTexture @@ -12,8 +12,8 @@ RenderTexture: Hash: 00000000000000000000000000000000 m_IsAlphaChannelOptional: 0 serializedVersion: 6 - m_Width: 512 - m_Height: 512 + m_Width: 1024 + m_Height: 1024 m_AntiAliasing: 1 m_MipCount: -1 m_DepthStencilFormat: 0 diff --git a/Assets/UI/Views/ChannelMap.uxml b/Assets/UI/Views/ChannelMap.uxml new file mode 100644 index 00000000..24939d10 --- /dev/null +++ b/Assets/UI/Views/ChannelMap.uxml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/Assets/UI/Views/ChannelMap.uxml.meta b/Assets/UI/Views/ChannelMap.uxml.meta new file mode 100644 index 00000000..190b5c6e --- /dev/null +++ b/Assets/UI/Views/ChannelMap.uxml.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 4a343927d6449be46a28a16bdd9e6375 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0} diff --git a/Assets/UI/Views/ChannelMaps.uxml b/Assets/UI/Views/ChannelMaps.uxml index ddb218d9..1d06f390 100644 --- a/Assets/UI/Views/ChannelMaps.uxml +++ b/Assets/UI/Views/ChannelMaps.uxml @@ -1,3 +1,6 @@ - + + + + diff --git a/Assets/UI/Views/ChannelMapsAndSlicesListItem.uxml b/Assets/UI/Views/ChannelMapsAndSlicesListItem.uxml deleted file mode 100644 index 140f83d3..00000000 --- a/Assets/UI/Views/ChannelMapsAndSlicesListItem.uxml +++ /dev/null @@ -1,4 +0,0 @@ - - - - From a165ab6f3c122848f5f91170b4d7519affeb339f Mon Sep 17 00:00:00 2001 From: Dan Birman Date: Mon, 17 Nov 2025 20:54:13 -0800 Subject: [PATCH 2/3] chore: indentation --- Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs | 77 +++++++++++----------- 1 file changed, 38 insertions(+), 39 deletions(-) diff --git a/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs b/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs index f746eb4f..4f37c2e9 100644 --- a/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs +++ b/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs @@ -74,31 +74,31 @@ private void Start() _probeWorldStateSubscription = _storeService.Store.Subscribe( state => { - var sceneState = state.Get(SliceNames.SCENE_SLICE); - var probeWorldSlice = state.Get(SliceNames.PROBE_WORLD_SLICE); - return probeWorldSlice.GetProbeWorldState(sceneState.ActiveProbeName); + var sceneState = state.Get(SliceNames.SCENE_SLICE); + var probeWorldSlice = state.Get(SliceNames.PROBE_WORLD_SLICE); + return probeWorldSlice.GetProbeWorldState(sceneState.ActiveProbeName); }, probeWorldState => { - _cachedProbeWorldState = probeWorldState; - UpdateInPlaneSlice(); - }, + _cachedProbeWorldState = probeWorldState; + UpdateInPlaneSlice(); + }, new SubscribeOptions { fireImmediately = true } ); - _activeProbeStateSubscription = _storeService.Store.Subscribe( - state => - { - var sceneState = state.Get(SliceNames.SCENE_SLICE); - return sceneState.Probes.Find(p => p.Name == sceneState.ActiveProbeName); - }, - probeState => - { - _cachedActiveProbeState = probeState; - UpdateInPlaneSlice(); - }, - new SubscribeOptions { fireImmediately = true } - ); + _activeProbeStateSubscription = _storeService.Store.Subscribe( + state => + { + var sceneState = state.Get(SliceNames.SCENE_SLICE); + return sceneState.Probes.Find(p => p.Name == sceneState.ActiveProbeName); + }, + probeState => + { + _cachedActiveProbeState = probeState; + UpdateInPlaneSlice(); + }, + new SubscribeOptions { fireImmediately = true } + ); _settingsStateSubscription = _storeService.Store.Subscribe( state => state.Get(SliceNames.SETTINGS_SLICE).inPlaneZoom, @@ -109,9 +109,9 @@ private void Start() private void OnDestroy() { - _probeWorldStateSubscription?.Dispose(); + _probeWorldStateSubscription?.Dispose(); _activeProbeStateSubscription?.Dispose(); - _settingsStateSubscription?.Dispose(); + _settingsStateSubscription?.Dispose(); } #endif @@ -134,20 +134,19 @@ public void UpdateInPlaneVisibility() public void UpdateInPlaneSlice() { - if (!Settings.ShowInPlaneSlice) return; - + Debug.Log("here"); #if APP_UI - if (_cachedProbeWorldState == null || string.IsNullOrEmpty(_cachedProbeWorldState.Name) || _cachedActiveProbeState == null) - { - ResetRendererParameters(); - return; + if (_cachedProbeWorldState == null || string.IsNullOrEmpty(_cachedProbeWorldState.Name) || _cachedActiveProbeState == null) + { + ResetRendererParameters(); + return; } if (BrainAtlasManager.Instance == null || BrainAtlasManager.ActiveReferenceAtlas == null) - { - ResetRendererParameters(); - return; - } + { + ResetRendererParameters(); + return; + } Vector3 startCoordWorldU = _cachedProbeWorldState.RecRegionBaseCoordWorldU; Vector3 endCoordWorldU = _cachedProbeWorldState.RecRegionTopCoordWorldU; @@ -257,13 +256,13 @@ public void InPlaneSliceHover(Vector2 pointerData) return; #endif - if (BrainAtlasManager.Instance == null || BrainAtlasManager.ActiveReferenceAtlas == null) - return; + if (BrainAtlasManager.Instance == null || BrainAtlasManager.ActiveReferenceAtlas == null) + return; Vector3 inPlanePosition = CalculateInPlanePosition(pointerData); int annotation = BrainAtlasManager.ActiveReferenceAtlas.GetAnnotationIdx(inPlanePosition); - annotation = BrainAtlasManager.ActiveReferenceAtlas.Ontology.RemapID_NoLayers(annotation); + annotation = BrainAtlasManager.ActiveReferenceAtlas.Ontology.RemapID_NoLayers(annotation); if (Input.GetMouseButtonDown(0)) { @@ -280,13 +279,13 @@ public void InPlaneSliceHover(Vector2 pointerData) private Vector3 CalculateInPlanePosition(Vector2 pointerData) { if (BrainAtlasManager.Instance == null || BrainAtlasManager.ActiveReferenceAtlas == null) - return Vector3.zero; - - Vector2 inPlanePosNorm = GetLocalRectPosNormalized(pointerData) * inPlaneScale / 2; - // Take the tip transform and go out according to the in plane percentage + return Vector3.zero; + + Vector2 inPlanePosNorm = GetLocalRectPosNormalized(pointerData) * inPlaneScale / 2; + // Take the tip transform and go out according to the in plane percentage // We get the center index, then add the x position * the left vector, then add the y position * the up vector - // remember that for the probe, up = backward, and left = left + // remember that for the probe, up = backward, and left = left Vector3 inPlanePosition = recRegionCenterIdx + (BrainAtlasManager.ActiveReferenceAtlas.World2Atlas_Vector(-rightWorldU) * inPlanePosNorm.x + BrainAtlasManager.ActiveReferenceAtlas.World2Atlas_Vector(-forwardWorldU) * inPlanePosNorm.y); From 2d51a15b2b40ad5c2d1a829418e6a76ec97e7daf Mon Sep 17 00:00:00 2001 From: Dan Birman Date: Tue, 18 Nov 2025 21:17:09 -0800 Subject: [PATCH 3/3] fix: insanely stupid GO disabling error that turned off in-plane slice --- Assets/Scenes/TrajectoryPlanner.unity | 107 +++++++++++++++++---- Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs | 47 ++++----- 2 files changed, 107 insertions(+), 47 deletions(-) diff --git a/Assets/Scenes/TrajectoryPlanner.unity b/Assets/Scenes/TrajectoryPlanner.unity index 8b006d3c..0d1fc1be 100644 --- a/Assets/Scenes/TrajectoryPlanner.unity +++ b/Assets/Scenes/TrajectoryPlanner.unity @@ -899,17 +899,6 @@ PrefabInstance: m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: a0c57925ee59dae4ebf1f78ba70837a6, type: 3} ---- !u!114 &672548778 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 341190944544068814, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} - m_PrefabInstance: {fileID: 341190943874437988} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dfcc216c6ab3ac9488f4d3ac691046a1, type: 3} - m_Name: - m_EditorClassIdentifier: --- !u!1 &698998060 stripped GameObject: m_CorrespondingSourceObject: {fileID: 8278374878278529525, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} @@ -926,6 +915,11 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 5e18c83e22ae60f40850fe035189d72d, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!23 &736498414 stripped +MeshRenderer: + m_CorrespondingSourceObject: {fileID: 341190944529771625, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} + m_PrefabInstance: {fileID: 341190943874437988} + m_PrefabAsset: {fileID: 0} --- !u!114 &737064805 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 1305194876242168903, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} @@ -1175,6 +1169,59 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: _slider: {fileID: 0} +--- !u!1 &953044663 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 953044665} + - component: {fileID: 953044664} + m_Layer: 0 + m_Name: InPlaneGO + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &953044664 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 953044663} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dfcc216c6ab3ac9488f4d3ac691046a1, type: 3} + m_Name: + m_EditorClassIdentifier: + _tpmanager: {fileID: 2108153954} + _inPlaneSliceUigo: {fileID: 1074412277} + _areaText: {fileID: 1836518113} + _textX: {fileID: 871760447} + _textY: {fileID: 267608534} + _gpuSliceRenderer: {fileID: 736498414} + _inPlaneRenderTexture: {fileID: 8400000, guid: 9beef1ab54490be479f2c8ee9a66ddca, type: 2} + _inPlaneSliceMaterial: {fileID: 2100000, guid: e0fa5368cd569c345ba1776cffe67690, type: 2} + texture: {fileID: 0} +--- !u!4 &953044665 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 953044663} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.34903, y: -1.78085, z: -1.81331} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &977101033 GameObject: m_ObjectHideFlags: 0 @@ -1292,6 +1339,11 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 2da0c512f12947e489f739169773d7ca, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!1 &1074412277 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 341190944544068802, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} + m_PrefabInstance: {fileID: 341190943874437988} + m_PrefabAsset: {fileID: 0} --- !u!114 &1109860752 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 1661132737403472946, guid: ee09154d7a7870a419882ff36080d765, type: 3} @@ -2510,6 +2562,17 @@ GameObject: m_CorrespondingSourceObject: {fileID: 6303905374185656496, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} m_PrefabInstance: {fileID: 341190943874437988} m_PrefabAsset: {fileID: 0} +--- !u!114 &1836518113 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 341190943836035197, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} + m_PrefabInstance: {fileID: 341190943874437988} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!65 &1859818792 stripped BoxCollider: m_CorrespondingSourceObject: {fileID: 1302158968859411075, guid: 734f6254569c01842b9d2e2ff1b1d7ae, type: 3} @@ -8424,6 +8487,7 @@ PrefabInstance: - {fileID: 8649147448947455835, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} - {fileID: 1637516853093665570, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} - {fileID: 5307452257076023902, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} + - {fileID: 341190944544068814, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} m_RemovedGameObjects: - {fileID: 341190944239140889, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} - {fileID: 7654437319185297488, guid: 94cdeca105038d74ea47b57e6b99eb4e, type: 3} @@ -8535,7 +8599,7 @@ PrefabInstance: - target: {fileID: 1302158967915866754, guid: 734f6254569c01842b9d2e2ff1b1d7ae, type: 3} propertyPath: inPlaneSlice value: - objectReference: {fileID: 672548778} + objectReference: {fileID: 0} - target: {fileID: 1302158967915866754, guid: 734f6254569c01842b9d2e2ff1b1d7ae, type: 3} propertyPath: modelControl value: @@ -8547,7 +8611,7 @@ PrefabInstance: - target: {fileID: 1302158967915866754, guid: 734f6254569c01842b9d2e2ff1b1d7ae, type: 3} propertyPath: _inPlaneSlice value: - objectReference: {fileID: 672548778} + objectReference: {fileID: 0} - target: {fileID: 1302158967915866754, guid: 734f6254569c01842b9d2e2ff1b1d7ae, type: 3} propertyPath: _modelControl value: @@ -9753,11 +9817,11 @@ PrefabInstance: - target: {fileID: 8016510558008620337, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: ShowInPlaneChangedEvent.m_PersistentCalls.m_Calls.Array.data[0].m_Target value: - objectReference: {fileID: 672548778} + objectReference: {fileID: 0} - target: {fileID: 8016510558008620337, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: ShowInPlaneChangedEvent.m_PersistentCalls.m_Calls.Array.data[1].m_Target value: - objectReference: {fileID: 672548778} + objectReference: {fileID: 0} - target: {fileID: 8016510558008620337, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: Slice3DChangedEvent.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName value: ToggleSliceVisibility @@ -10797,7 +10861,7 @@ PrefabInstance: - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: inPlaneSlice value: - objectReference: {fileID: 672548778} + objectReference: {fileID: 0} - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: _atlasManager value: @@ -10809,7 +10873,7 @@ PrefabInstance: - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: _inPlaneSlice value: - objectReference: {fileID: 672548778} + objectReference: {fileID: 953044664} - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: _modelControl value: @@ -10925,7 +10989,7 @@ PrefabInstance: - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: _probePanelParentGo value: - objectReference: {fileID: 0} + objectReference: {fileID: 873744844} - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: _probeQuickSettings value: @@ -11249,7 +11313,7 @@ PrefabInstance: - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: _activeProbeChangedEvent.m_PersistentCalls.m_Calls.Array.data[0].m_Target value: - objectReference: {fileID: 672548778} + objectReference: {fileID: 0} - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: _activeProbeChangedEvent.m_PersistentCalls.m_Calls.Array.data[1].m_Target value: @@ -11457,7 +11521,7 @@ PrefabInstance: - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: StartupEvent_AnnotationTextureLoaded.m_PersistentCalls.m_Calls.Array.data[1].m_Target value: - objectReference: {fileID: 672548778} + objectReference: {fileID: 953044664} - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: StartupEvent_AnnotationTextureLoaded.m_PersistentCalls.m_Calls.Array.data[2].m_Target value: @@ -11572,7 +11636,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: StartupEvent_AnnotationTextureLoaded.m_PersistentCalls.m_Calls.Array.data[1].m_TargetAssemblyTypeName - value: TP_InPlaneSlice, trajectoryplanner.core + value: TP_InPlaneSlice, Assembly-CSharp objectReference: {fileID: 0} - target: {fileID: 8016510558008620343, guid: 482bfae3ba88b424e96d7fcd669f7b73, type: 3} propertyPath: StartupEvent_AnnotationTextureLoaded.m_PersistentCalls.m_Calls.Array.data[2].m_TargetAssemblyTypeName @@ -12045,3 +12109,4 @@ SceneRoots: - {fileID: 9130107592048835190} - {fileID: 2439981618345730369} - {fileID: 873744845} + - {fileID: 953044665} diff --git a/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs b/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs index 4f37c2e9..fb867c3a 100644 --- a/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs +++ b/Assets/Scripts/Pinpoint/TP_InPlaneSlice.cs @@ -64,47 +64,44 @@ public void Startup(Texture3D annotationTexture) _inPlaneSliceMaterial.SetVector("_VolumeSize", shape); } -#if APP_UI private void Start() { -#if APP_UI _storeService = PinpointApp.Services.GetRequiredService(); -#endif _probeWorldStateSubscription = _storeService.Store.Subscribe( - state => + state => { var sceneState = state.Get(SliceNames.SCENE_SLICE); var probeWorldSlice = state.Get(SliceNames.PROBE_WORLD_SLICE); return probeWorldSlice.GetProbeWorldState(sceneState.ActiveProbeName); }, -probeWorldState => - { - _cachedProbeWorldState = probeWorldState; - UpdateInPlaneSlice(); - }, + probeWorldState => + { + _cachedProbeWorldState = probeWorldState; + UpdateInPlaneSlice(); + }, new SubscribeOptions { fireImmediately = true } - ); + ); _activeProbeStateSubscription = _storeService.Store.Subscribe( state => - { - var sceneState = state.Get(SliceNames.SCENE_SLICE); - return sceneState.Probes.Find(p => p.Name == sceneState.ActiveProbeName); - }, - probeState => - { - _cachedActiveProbeState = probeState; - UpdateInPlaneSlice(); - }, + { + var sceneState = state.Get(SliceNames.SCENE_SLICE); + return sceneState.Probes.Find(p => p.Name == sceneState.ActiveProbeName); + }, + probeState => + { + _cachedActiveProbeState = probeState; + UpdateInPlaneSlice(); + }, new SubscribeOptions { fireImmediately = true } - ); + ); _settingsStateSubscription = _storeService.Store.Subscribe( - state => state.Get(SliceNames.SETTINGS_SLICE).inPlaneZoom, - UpdateZoom, - new SubscribeOptions { fireImmediately = true } - ); + state => state.Get(SliceNames.SETTINGS_SLICE).inPlaneZoom, + UpdateZoom, + new SubscribeOptions { fireImmediately = true } + ); } private void OnDestroy() @@ -113,7 +110,6 @@ private void OnDestroy() _activeProbeStateSubscription?.Dispose(); _settingsStateSubscription?.Dispose(); } -#endif private void ResetRendererParameters() { @@ -242,7 +238,6 @@ public void UpdateInPlaneSlice() _textX.text = formatted; _textY.text = formatted; - Debug.Log("Blit"); Graphics.Blit(null, _inPlaneRenderTexture, _inPlaneSliceMaterial); }