Skip to content

Commit b663b93

Browse files
committed
feat: in-plane slice
1 parent 91853ad commit b663b93

18 files changed

+11303
-277
lines changed

Assets/Materials/Volume/InPlaneSliceMaterial.mat

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ Material:
126126
- _QueueControl: 0
127127
- _QueueOffset: 0
128128
- _ReceiveShadows: 1
129-
- _RecordingRegionSize: 3.84
130-
- _Scale: 230.4
129+
- _RecordingRegionSize: 152.80002
130+
- _Scale: 229.20004
131131
- _ShankSpacing: 0
132132
- _ShankWidth: 70
133133
- _Smoothness: 0.5
@@ -146,13 +146,14 @@ Material:
146146
- _CenterOffset: {r: 0, g: 0.3333, b: 0, a: 0}
147147
- _Color: {r: 1, g: 1, b: 1, a: 1}
148148
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
149-
- _ForwardDirection: {r: 0, g: 0, b: -1, a: 0}
149+
- _ForwardDirection: {r: 0, g: 0, b: 0, a: 0}
150150
- _LeftDirection: {r: 1, g: 0, b: 0, a: 0}
151-
- _RecordingRegionCenterPosition: {r: 0, g: 0, b: 0, a: 0}
151+
- _RecordingRegionCenterPosition: {r: 287.28235, g: 228, b: 181.17941, a: 0}
152+
- _RightDirection: {r: 1, g: 0, b: 0, a: 0}
152153
- _Scale: {r: 200, g: 200, b: 4.5, a: 0}
153154
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
154-
- _TipPosition: {r: 228, g: 202, b: 194, a: 0}
155-
- _UpDirection: {r: 0, g: 1, b: 0, a: 0}
156-
- _VolumeSize: {r: 528, g: 320, b: 456, a: 0}
155+
- _TipPosition: {r: 0, g: 0, b: 0, a: 0}
156+
- _UpDirection: {r: -0, g: 1, b: -0, a: 0}
157+
- _VolumeSize: {r: 528, g: 456, b: 320, a: 0}
157158
m_BuildTextureStacks: []
158159
m_AllowLocking: 1
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &-3048593683369358098
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 11
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
13+
m_Name:
14+
m_EditorClassIdentifier:
15+
version: 10
16+
--- !u!21 &2100000
17+
Material:
18+
serializedVersion: 8
19+
m_ObjectHideFlags: 0
20+
m_CorrespondingSourceObject: {fileID: 0}
21+
m_PrefabInstance: {fileID: 0}
22+
m_PrefabAsset: {fileID: 0}
23+
m_Name: InPlaneSliceMaterialBlit
24+
m_Shader: {fileID: -6465566751694194690, guid: 5f46e1fe0244d454eb819a99fc585c50, type: 3}
25+
m_Parent: {fileID: 0}
26+
m_ModifiedSerializedProperties: 0
27+
m_ValidKeywords: []
28+
m_InvalidKeywords: []
29+
m_LightmapFlags: 4
30+
m_EnableInstancingVariants: 0
31+
m_DoubleSidedGI: 0
32+
m_CustomRenderQueue: -1
33+
stringTagMap: {}
34+
disabledShaderPasses:
35+
- MOTIONVECTORS
36+
m_LockedProperties:
37+
m_SavedProperties:
38+
serializedVersion: 3
39+
m_TexEnvs:
40+
- _AnnotationVolume:
41+
m_Texture: {fileID: 0}
42+
m_Scale: {x: 1, y: 1}
43+
m_Offset: {x: 0, y: 0}
44+
- _BaseMap:
45+
m_Texture: {fileID: 0}
46+
m_Scale: {x: 1, y: 1}
47+
m_Offset: {x: 0, y: 0}
48+
- _BumpMap:
49+
m_Texture: {fileID: 0}
50+
m_Scale: {x: 1, y: 1}
51+
m_Offset: {x: 0, y: 0}
52+
- _DetailAlbedoMap:
53+
m_Texture: {fileID: 0}
54+
m_Scale: {x: 1, y: 1}
55+
m_Offset: {x: 0, y: 0}
56+
- _DetailMask:
57+
m_Texture: {fileID: 0}
58+
m_Scale: {x: 1, y: 1}
59+
m_Offset: {x: 0, y: 0}
60+
- _DetailNormalMap:
61+
m_Texture: {fileID: 0}
62+
m_Scale: {x: 1, y: 1}
63+
m_Offset: {x: 0, y: 0}
64+
- _EmissionMap:
65+
m_Texture: {fileID: 0}
66+
m_Scale: {x: 1, y: 1}
67+
m_Offset: {x: 0, y: 0}
68+
- _MainTex:
69+
m_Texture: {fileID: 0}
70+
m_Scale: {x: 1, y: 1}
71+
m_Offset: {x: 0, y: 0}
72+
- _MetallicGlossMap:
73+
m_Texture: {fileID: 0}
74+
m_Scale: {x: 1, y: 1}
75+
m_Offset: {x: 0, y: 0}
76+
- _OcclusionMap:
77+
m_Texture: {fileID: 0}
78+
m_Scale: {x: 1, y: 1}
79+
m_Offset: {x: 0, y: 0}
80+
- _ParallaxMap:
81+
m_Texture: {fileID: 0}
82+
m_Scale: {x: 1, y: 1}
83+
m_Offset: {x: 0, y: 0}
84+
- _SpecGlossMap:
85+
m_Texture: {fileID: 0}
86+
m_Scale: {x: 1, y: 1}
87+
m_Offset: {x: 0, y: 0}
88+
- _Volume:
89+
m_Texture: {fileID: 0}
90+
m_Scale: {x: 1, y: 1}
91+
m_Offset: {x: 0, y: 0}
92+
- unity_Lightmaps:
93+
m_Texture: {fileID: 0}
94+
m_Scale: {x: 1, y: 1}
95+
m_Offset: {x: 0, y: 0}
96+
- unity_LightmapsInd:
97+
m_Texture: {fileID: 0}
98+
m_Scale: {x: 1, y: 1}
99+
m_Offset: {x: 0, y: 0}
100+
- unity_ShadowMasks:
101+
m_Texture: {fileID: 0}
102+
m_Scale: {x: 1, y: 1}
103+
m_Offset: {x: 0, y: 0}
104+
m_Ints: []
105+
m_Floats:
106+
- Vector1_c0cb41ca4a6b4353b91a287d91d1bfff: 0
107+
- Vector1_ca935d91430c4e03b1d039dc4662e3b4: 70
108+
- _AlphaClip: 0
109+
- _Blend: 0
110+
- _BumpScale: 1
111+
- _ClearCoatMask: 0
112+
- _ClearCoatSmoothness: 0
113+
- _Cull: 2
114+
- _Cutoff: 0.5
115+
- _DetailAlbedoMapScale: 1
116+
- _DetailNormalMapScale: 1
117+
- _DstBlend: 0
118+
- _EnvironmentReflections: 1
119+
- _FourShankProbe: 0
120+
- _GlossMapScale: 0
121+
- _Glossiness: 0
122+
- _GlossyReflections: 0
123+
- _Metallic: 0
124+
- _OcclusionStrength: 1
125+
- _Parallax: 0.005
126+
- _QueueControl: 0
127+
- _QueueOffset: 0
128+
- _ReceiveShadows: 1
129+
- _RecordingRegionSize: 152.80002
130+
- _Scale: 229.20004
131+
- _ShankSpacing: 0
132+
- _ShankWidth: 70
133+
- _Smoothness: 0.5
134+
- _SmoothnessTextureChannel: 0
135+
- _SpecularHighlights: 1
136+
- _SrcBlend: 1
137+
- _Surface: 0
138+
- _TwoShankProbe: 0
139+
- _WorkflowMode: 1
140+
- _ZWrite: 1
141+
m_Colors:
142+
- Vector3_7e5419b2387542f698e13a179865077e: {r: 0, g: 0, b: 1, a: 0}
143+
- Vector3_e326a2bd2702490d86bb3ae76c501984: {r: 0, g: 0.3333, b: 0, a: 0}
144+
- Vector3_fc8b1fbd877440bd91d0b9562df31db3: {r: 0, g: -1, b: 0, a: 0}
145+
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
146+
- _CenterOffset: {r: 0, g: 0.3333, b: 0, a: 0}
147+
- _Color: {r: 1, g: 1, b: 1, a: 1}
148+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
149+
- _ForwardDirection: {r: 0, g: 0, b: 0, a: 0}
150+
- _LeftDirection: {r: 1, g: 0, b: 0, a: 0}
151+
- _RecordingRegionCenterPosition: {r: 287.28235, g: 228, b: 181.17941, a: 0}
152+
- _RightDirection: {r: 1, g: 0, b: 0, a: 0}
153+
- _Scale: {r: 200, g: 200, b: 4.5, a: 0}
154+
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
155+
- _TipPosition: {r: 0, g: 0, b: 0, a: 0}
156+
- _UpDirection: {r: -0, g: 1, b: -0, a: 0}
157+
- _VolumeSize: {r: 528, g: 456, b: 320, a: 0}
158+
m_BuildTextureStacks: []
159+
m_AllowLocking: 1

Assets/Materials/Volume/InPlaneSliceMaterialBlit.mat.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Prefabs/UI/SettingsMenu/RightSideMenus/InPlaneSlicePanel.prefab

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ RectTransform:
3232
m_ConstrainProportionsScale: 0
3333
m_Children: []
3434
m_Father: {fileID: 5418626435911228275}
35-
m_RootOrder: 1
3635
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
3736
m_AnchorMin: {x: 0, y: 0}
3837
m_AnchorMax: {x: 0, y: 0}
@@ -164,7 +163,6 @@ RectTransform:
164163
m_ConstrainProportionsScale: 0
165164
m_Children: []
166165
m_Father: {fileID: 5418626435377505850}
167-
m_RootOrder: 3
168166
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 90}
169167
m_AnchorMin: {x: 0.5, y: 0.5}
170168
m_AnchorMax: {x: 0.5, y: 0.5}
@@ -242,15 +240,17 @@ MonoBehaviour:
242240
m_lineSpacingMax: 0
243241
m_paragraphSpacing: 0
244242
m_charWidthMaxAdj: 0
245-
m_enableWordWrapping: 1
243+
m_TextWrappingMode: 1
246244
m_wordWrappingRatios: 0.4
247245
m_overflowMode: 0
248246
m_linkedTextComponent: {fileID: 0}
249247
parentLinkedComponent: {fileID: 0}
250248
m_enableKerning: 1
249+
m_ActiveFontFeatures: 6e72656b
251250
m_enableExtraPadding: 0
252251
checkPaddingRequired: 0
253252
m_isRichText: 1
253+
m_EmojiFallbackSupport: 1
254254
m_parseCtrlCharacters: 1
255255
m_isOrthographic: 1
256256
m_isCullingEnabled: 0
@@ -299,7 +299,6 @@ RectTransform:
299299
m_ConstrainProportionsScale: 0
300300
m_Children: []
301301
m_Father: {fileID: 5418626435911228275}
302-
m_RootOrder: 0
303302
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
304303
m_AnchorMin: {x: 0, y: 0}
305304
m_AnchorMax: {x: 0, y: 0}
@@ -377,15 +376,17 @@ MonoBehaviour:
377376
m_lineSpacingMax: 0
378377
m_paragraphSpacing: 0
379378
m_charWidthMaxAdj: 0
380-
m_enableWordWrapping: 1
379+
m_TextWrappingMode: 1
381380
m_wordWrappingRatios: 0.4
382381
m_overflowMode: 0
383382
m_linkedTextComponent: {fileID: 0}
384383
parentLinkedComponent: {fileID: 0}
385384
m_enableKerning: 1
385+
m_ActiveFontFeatures: 6e72656b
386386
m_enableExtraPadding: 0
387387
checkPaddingRequired: 0
388388
m_isRichText: 1
389+
m_EmojiFallbackSupport: 1
389390
m_parseCtrlCharacters: 1
390391
m_isOrthographic: 1
391392
m_isCullingEnabled: 0
@@ -435,7 +436,6 @@ RectTransform:
435436
m_ConstrainProportionsScale: 0
436437
m_Children: []
437438
m_Father: {fileID: 5418626435911228275}
438-
m_RootOrder: 2
439439
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
440440
m_AnchorMin: {x: 0, y: 0}
441441
m_AnchorMax: {x: 0, y: 0}
@@ -561,13 +561,13 @@ Transform:
561561
m_PrefabInstance: {fileID: 0}
562562
m_PrefabAsset: {fileID: 0}
563563
m_GameObject: {fileID: 5418626435328794262}
564+
serializedVersion: 2
564565
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
565566
m_LocalPosition: {x: -206, y: -14, z: -0.4}
566567
m_LocalScale: {x: 400, y: 400, z: 1}
567568
m_ConstrainProportionsScale: 0
568569
m_Children: []
569570
m_Father: {fileID: 5418626435377505850}
570-
m_RootOrder: 1
571571
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
572572
--- !u!33 &5418626435328794259
573573
MeshFilter:
@@ -594,6 +594,11 @@ MeshRenderer:
594594
m_ReflectionProbeUsage: 0
595595
m_RayTracingMode: 2
596596
m_RayTraceProcedural: 0
597+
m_RayTracingAccelStructBuildFlagsOverride: 0
598+
m_RayTracingAccelStructBuildFlags: 1
599+
m_SmallMeshCulling: 1
600+
m_ForceMeshLod: -1
601+
m_MeshLodSelectionBias: 0
597602
m_RenderingLayerMask: 1
598603
m_RendererPriority: 0
599604
m_Materials:
@@ -615,6 +620,7 @@ MeshRenderer:
615620
m_AutoUVMaxDistance: 0.5
616621
m_AutoUVMaxAngle: 89
617622
m_LightmapParameters: {fileID: 0}
623+
m_GlobalIlluminationMeshLod: 0
618624
m_SortingLayerID: 0
619625
m_SortingLayer: 0
620626
m_SortingOrder: 0
@@ -655,7 +661,6 @@ RectTransform:
655661
- {fileID: 5418626435471893411}
656662
- {fileID: 5418626434867560520}
657663
m_Father: {fileID: 0}
658-
m_RootOrder: 0
659664
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
660665
m_AnchorMin: {x: 0, y: 0}
661666
m_AnchorMax: {x: 0, y: 0}
@@ -714,11 +719,13 @@ MonoBehaviour:
714719
m_EditorClassIdentifier:
715720
_tpmanager: {fileID: 0}
716721
_inPlaneSliceUigo: {fileID: 5418626435377505851}
717-
_modelControl: {fileID: 0}
718722
_areaText: {fileID: 5418626435172264580}
719723
_textX: {fileID: 5418626435471893410}
720724
_textY: {fileID: 5418626434867560523}
721725
_gpuSliceRenderer: {fileID: 5418626435328794256}
726+
_inPlaneRenderTexture: {fileID: 8400000, guid: 9beef1ab54490be479f2c8ee9a66ddca, type: 2}
727+
_inPlaneSliceMaterial: {fileID: 2100000, guid: ffb7b56a15e9e3a49b19a4b8988017b9, type: 2}
728+
texture: {fileID: 0}
722729
--- !u!1 &5418626435471893408
723730
GameObject:
724731
m_ObjectHideFlags: 0
@@ -750,7 +757,6 @@ RectTransform:
750757
m_ConstrainProportionsScale: 0
751758
m_Children: []
752759
m_Father: {fileID: 5418626435377505850}
753-
m_RootOrder: 2
754760
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
755761
m_AnchorMin: {x: 0.5, y: 0.5}
756762
m_AnchorMax: {x: 0.5, y: 0.5}
@@ -828,15 +834,17 @@ MonoBehaviour:
828834
m_lineSpacingMax: 0
829835
m_paragraphSpacing: 0
830836
m_charWidthMaxAdj: 0
831-
m_enableWordWrapping: 1
837+
m_TextWrappingMode: 1
832838
m_wordWrappingRatios: 0.4
833839
m_overflowMode: 0
834840
m_linkedTextComponent: {fileID: 0}
835841
parentLinkedComponent: {fileID: 0}
836842
m_enableKerning: 1
843+
m_ActiveFontFeatures: 6e72656b
837844
m_enableExtraPadding: 0
838845
checkPaddingRequired: 0
839846
m_isRichText: 1
847+
m_EmojiFallbackSupport: 1
840848
m_parseCtrlCharacters: 1
841849
m_isOrthographic: 1
842850
m_isCullingEnabled: 0
@@ -889,7 +897,6 @@ RectTransform:
889897
- {fileID: 5418626434834778437}
890898
- {fileID: 5418626435242200082}
891899
m_Father: {fileID: 5418626435377505850}
892-
m_RootOrder: 0
893900
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
894901
m_AnchorMin: {x: 0.5, y: 1}
895902
m_AnchorMax: {x: 0.5, y: 1}

0 commit comments

Comments
 (0)