Skip to content

Commit 6c28167

Browse files
Merge pull request #5 from hj-cpdm-son/main
Added the XRController sample.
2 parents 360b36f + 4b65016 commit 6c28167

36 files changed

+3117
-0
lines changed

Samples~/XRController/Material.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.
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &-5121006237457058402
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: 9
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: Controller
24+
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
25+
m_Parent: {fileID: 0}
26+
m_ModifiedSerializedProperties: 0
27+
m_ValidKeywords:
28+
- _METALLICGLOSSMAP
29+
- _NORMALMAP
30+
m_InvalidKeywords:
31+
- _METALLICSPECGLOSSMAP
32+
- _OCCLUSIONMAP
33+
m_LightmapFlags: 4
34+
m_EnableInstancingVariants: 0
35+
m_DoubleSidedGI: 0
36+
m_CustomRenderQueue: -1
37+
stringTagMap: {}
38+
disabledShaderPasses:
39+
- MOTIONVECTORS
40+
m_LockedProperties:
41+
m_SavedProperties:
42+
serializedVersion: 3
43+
m_TexEnvs:
44+
- _AO:
45+
m_Texture: {fileID: 2800000, guid: 86bcd70ff1fc9d542b1bbf038888893a, type: 3}
46+
m_Scale: {x: 1, y: 1}
47+
m_Offset: {x: 0, y: 0}
48+
- _BaseColor:
49+
m_Texture: {fileID: 2800000, guid: 0bce9db852d150a46abc1386096610a7, type: 3}
50+
m_Scale: {x: 1, y: 1}
51+
m_Offset: {x: 0, y: 0}
52+
- _BaseMap:
53+
m_Texture: {fileID: 2800000, guid: 0bce9db852d150a46abc1386096610a7, type: 3}
54+
m_Scale: {x: 1, y: 1}
55+
m_Offset: {x: 0, y: 0}
56+
- _BumpMap:
57+
m_Texture: {fileID: 2800000, guid: d1c4ec6d57a3cc7428cc3f89e4cb9ac2, type: 3}
58+
m_Scale: {x: 1, y: 1}
59+
m_Offset: {x: 0, y: 0}
60+
- _DetailAlbedoMap:
61+
m_Texture: {fileID: 0}
62+
m_Scale: {x: 1, y: 1}
63+
m_Offset: {x: 0, y: 0}
64+
- _DetailMask:
65+
m_Texture: {fileID: 0}
66+
m_Scale: {x: 1, y: 1}
67+
m_Offset: {x: 0, y: 0}
68+
- _DetailNormalMap:
69+
m_Texture: {fileID: 0}
70+
m_Scale: {x: 1, y: 1}
71+
m_Offset: {x: 0, y: 0}
72+
- _EmissionMap:
73+
m_Texture: {fileID: 0}
74+
m_Scale: {x: 1, y: 1}
75+
m_Offset: {x: 0, y: 0}
76+
- _MainTex:
77+
m_Texture: {fileID: 2800000, guid: 0bce9db852d150a46abc1386096610a7, type: 3}
78+
m_Scale: {x: 1, y: 1}
79+
m_Offset: {x: 0, y: 0}
80+
- _Metallic:
81+
m_Texture: {fileID: 2800000, guid: 0d4e4e18e326ea34a9555ce353ba4203, type: 3}
82+
m_Scale: {x: 1, y: 1}
83+
m_Offset: {x: 0, y: 0}
84+
- _MetallicGlossMap:
85+
m_Texture: {fileID: 2800000, guid: 0d4e4e18e326ea34a9555ce353ba4203, type: 3}
86+
m_Scale: {x: 1, y: 1}
87+
m_Offset: {x: 0, y: 0}
88+
- _Normal:
89+
m_Texture: {fileID: 2800000, guid: d1c4ec6d57a3cc7428cc3f89e4cb9ac2, type: 3}
90+
m_Scale: {x: 1, y: 1}
91+
m_Offset: {x: 0, y: 0}
92+
- _OcclusionMap:
93+
m_Texture: {fileID: 2800000, guid: 86bcd70ff1fc9d542b1bbf038888893a, type: 3}
94+
m_Scale: {x: 1, y: 1}
95+
m_Offset: {x: 0, y: 0}
96+
- _ParallaxMap:
97+
m_Texture: {fileID: 0}
98+
m_Scale: {x: 1, y: 1}
99+
m_Offset: {x: 0, y: 0}
100+
- _Roughness:
101+
m_Texture: {fileID: 2800000, guid: ae2912a83fccc5f4f94484e407ee8c24, type: 3}
102+
m_Scale: {x: 1, y: 1}
103+
m_Offset: {x: 0, y: 0}
104+
- _SpecGlossMap:
105+
m_Texture: {fileID: 0}
106+
m_Scale: {x: 1, y: 1}
107+
m_Offset: {x: 0, y: 0}
108+
- unity_Lightmaps:
109+
m_Texture: {fileID: 0}
110+
m_Scale: {x: 1, y: 1}
111+
m_Offset: {x: 0, y: 0}
112+
- unity_LightmapsInd:
113+
m_Texture: {fileID: 0}
114+
m_Scale: {x: 1, y: 1}
115+
m_Offset: {x: 0, y: 0}
116+
- unity_ShadowMasks:
117+
m_Texture: {fileID: 0}
118+
m_Scale: {x: 1, y: 1}
119+
m_Offset: {x: 0, y: 0}
120+
m_Ints: []
121+
m_Floats:
122+
- _AddPrecomputedVelocity: 0
123+
- _AlphaClip: 0
124+
- _AlphaToMask: 0
125+
- _Blend: 0
126+
- _BlendModePreserveSpecular: 1
127+
- _BumpScale: 1
128+
- _ClearCoatMask: 0
129+
- _ClearCoatSmoothness: 0
130+
- _Cull: 2
131+
- _Cutoff: 0.5
132+
- _DetailAlbedoMapScale: 1
133+
- _DetailNormalMapScale: 1
134+
- _DstBlend: 0
135+
- _DstBlendAlpha: 0
136+
- _EnvironmentReflections: 1
137+
- _GlossMapScale: 0.5
138+
- _Glossiness: 0
139+
- _GlossyReflections: 1
140+
- _Metallic: 0
141+
- _Mode: 0
142+
- _OcclusionStrength: 1
143+
- _Parallax: 0.005
144+
- _QueueControl: 0
145+
- _QueueOffset: 0
146+
- _ReceiveShadows: 1
147+
- _Smoothness: 0.5
148+
- _SmoothnessTextureChannel: 0
149+
- _SpecularHighlights: 1
150+
- _SrcBlend: 1
151+
- _SrcBlendAlpha: 1
152+
- _Surface: 0
153+
- _UVSec: 0
154+
- _WorkflowMode: 1
155+
- _ZWrite: 1
156+
m_Colors:
157+
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
158+
- _Color: {r: 1, g: 1, b: 1, a: 1}
159+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
160+
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
161+
m_BuildTextureStacks: []
162+
m_AllowLocking: 1

Samples~/XRController/Material/Controller.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.
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &-5121006237457058402
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: 9
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: ControllerButton
24+
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
25+
m_Parent: {fileID: 0}
26+
m_ModifiedSerializedProperties: 0
27+
m_ValidKeywords:
28+
- _METALLICGLOSSMAP
29+
- _NORMALMAP
30+
m_InvalidKeywords:
31+
- _METALLICSPECGLOSSMAP
32+
- _OCCLUSIONMAP
33+
m_LightmapFlags: 4
34+
m_EnableInstancingVariants: 0
35+
m_DoubleSidedGI: 0
36+
m_CustomRenderQueue: -1
37+
stringTagMap: {}
38+
disabledShaderPasses:
39+
- MOTIONVECTORS
40+
m_LockedProperties:
41+
m_SavedProperties:
42+
serializedVersion: 3
43+
m_TexEnvs:
44+
- _AO:
45+
m_Texture: {fileID: 2800000, guid: 86bcd70ff1fc9d542b1bbf038888893a, type: 3}
46+
m_Scale: {x: 1, y: 1}
47+
m_Offset: {x: 0, y: 0}
48+
- _BaseColor:
49+
m_Texture: {fileID: 2800000, guid: 0bce9db852d150a46abc1386096610a7, type: 3}
50+
m_Scale: {x: 1, y: 1}
51+
m_Offset: {x: 0, y: 0}
52+
- _BaseMap:
53+
m_Texture: {fileID: 2800000, guid: 0bce9db852d150a46abc1386096610a7, type: 3}
54+
m_Scale: {x: 1, y: 1}
55+
m_Offset: {x: 0, y: 0}
56+
- _BumpMap:
57+
m_Texture: {fileID: 2800000, guid: d1c4ec6d57a3cc7428cc3f89e4cb9ac2, type: 3}
58+
m_Scale: {x: 1, y: 1}
59+
m_Offset: {x: 0, y: 0}
60+
- _DetailAlbedoMap:
61+
m_Texture: {fileID: 0}
62+
m_Scale: {x: 1, y: 1}
63+
m_Offset: {x: 0, y: 0}
64+
- _DetailMask:
65+
m_Texture: {fileID: 0}
66+
m_Scale: {x: 1, y: 1}
67+
m_Offset: {x: 0, y: 0}
68+
- _DetailNormalMap:
69+
m_Texture: {fileID: 0}
70+
m_Scale: {x: 1, y: 1}
71+
m_Offset: {x: 0, y: 0}
72+
- _EmissionMap:
73+
m_Texture: {fileID: 0}
74+
m_Scale: {x: 1, y: 1}
75+
m_Offset: {x: 0, y: 0}
76+
- _MainTex:
77+
m_Texture: {fileID: 2800000, guid: 0bce9db852d150a46abc1386096610a7, type: 3}
78+
m_Scale: {x: 1, y: 1}
79+
m_Offset: {x: 0, y: 0}
80+
- _Metallic:
81+
m_Texture: {fileID: 2800000, guid: 0d4e4e18e326ea34a9555ce353ba4203, type: 3}
82+
m_Scale: {x: 1, y: 1}
83+
m_Offset: {x: 0, y: 0}
84+
- _MetallicGlossMap:
85+
m_Texture: {fileID: 2800000, guid: 0d4e4e18e326ea34a9555ce353ba4203, type: 3}
86+
m_Scale: {x: 1, y: 1}
87+
m_Offset: {x: 0, y: 0}
88+
- _Normal:
89+
m_Texture: {fileID: 2800000, guid: d1c4ec6d57a3cc7428cc3f89e4cb9ac2, type: 3}
90+
m_Scale: {x: 1, y: 1}
91+
m_Offset: {x: 0, y: 0}
92+
- _OcclusionMap:
93+
m_Texture: {fileID: 2800000, guid: 86bcd70ff1fc9d542b1bbf038888893a, type: 3}
94+
m_Scale: {x: 1, y: 1}
95+
m_Offset: {x: 0, y: 0}
96+
- _ParallaxMap:
97+
m_Texture: {fileID: 0}
98+
m_Scale: {x: 1, y: 1}
99+
m_Offset: {x: 0, y: 0}
100+
- _Roughness:
101+
m_Texture: {fileID: 2800000, guid: ae2912a83fccc5f4f94484e407ee8c24, type: 3}
102+
m_Scale: {x: 1, y: 1}
103+
m_Offset: {x: 0, y: 0}
104+
- _SpecGlossMap:
105+
m_Texture: {fileID: 0}
106+
m_Scale: {x: 1, y: 1}
107+
m_Offset: {x: 0, y: 0}
108+
- unity_Lightmaps:
109+
m_Texture: {fileID: 0}
110+
m_Scale: {x: 1, y: 1}
111+
m_Offset: {x: 0, y: 0}
112+
- unity_LightmapsInd:
113+
m_Texture: {fileID: 0}
114+
m_Scale: {x: 1, y: 1}
115+
m_Offset: {x: 0, y: 0}
116+
- unity_ShadowMasks:
117+
m_Texture: {fileID: 0}
118+
m_Scale: {x: 1, y: 1}
119+
m_Offset: {x: 0, y: 0}
120+
m_Ints: []
121+
m_Floats:
122+
- _AddPrecomputedVelocity: 0
123+
- _AlphaClip: 0
124+
- _AlphaToMask: 0
125+
- _Blend: 0
126+
- _BlendModePreserveSpecular: 1
127+
- _BumpScale: 1
128+
- _ClearCoatMask: 0
129+
- _ClearCoatSmoothness: 0
130+
- _Cull: 2
131+
- _Cutoff: 0.5
132+
- _DetailAlbedoMapScale: 1
133+
- _DetailNormalMapScale: 1
134+
- _DstBlend: 0
135+
- _DstBlendAlpha: 0
136+
- _EnvironmentReflections: 1
137+
- _GlossMapScale: 1
138+
- _Glossiness: 0
139+
- _GlossyReflections: 1
140+
- _Metallic: 0
141+
- _Mode: 0
142+
- _OcclusionStrength: 1
143+
- _Parallax: 0.005
144+
- _QueueControl: 0
145+
- _QueueOffset: 0
146+
- _ReceiveShadows: 1
147+
- _Smoothness: 1
148+
- _SmoothnessTextureChannel: 0
149+
- _SpecularHighlights: 1
150+
- _SrcBlend: 1
151+
- _SrcBlendAlpha: 1
152+
- _Surface: 0
153+
- _UVSec: 0
154+
- _WorkflowMode: 1
155+
- _ZWrite: 1
156+
m_Colors:
157+
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
158+
- _Color: {r: 1, g: 1, b: 1, a: 1}
159+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
160+
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
161+
m_BuildTextureStacks: []
162+
m_AllowLocking: 1

Samples~/XRController/Material/ControllerButton.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.

0 commit comments

Comments
 (0)