Skip to content

Commit 5330d91

Browse files
authored
Merge pull request #6784 from Troy-Ferrell/users/trferrel/optimize-handmeshjoints
Create optimize materials for hand joint mesh visualization
2 parents 1e43a8d + 6677cac commit 5330d91

File tree

6 files changed

+360
-2
lines changed

6 files changed

+360
-2
lines changed
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!21 &2100000
4+
Material:
5+
serializedVersion: 6
6+
m_ObjectHideFlags: 0
7+
m_CorrespondingSourceObject: {fileID: 0}
8+
m_PrefabInstance: {fileID: 0}
9+
m_PrefabAsset: {fileID: 0}
10+
m_Name: HandIndexTip
11+
m_Shader: {fileID: 4800000, guid: 5bdea20278144b11916d77503ba1467a, type: 3}
12+
m_ShaderKeywords: _DIRECTIONAL_LIGHT _DISABLE_ALBEDO_MAP
13+
m_LightmapFlags: 4
14+
m_EnableInstancingVariants: 1
15+
m_DoubleSidedGI: 0
16+
m_CustomRenderQueue: 2000
17+
stringTagMap:
18+
RenderType: Opaque
19+
disabledShaderPasses: []
20+
m_SavedProperties:
21+
serializedVersion: 3
22+
m_TexEnvs:
23+
- _BumpMap:
24+
m_Texture: {fileID: 0}
25+
m_Scale: {x: 1, y: 1}
26+
m_Offset: {x: 0, y: 0}
27+
- _ChannelMap:
28+
m_Texture: {fileID: 0}
29+
m_Scale: {x: 1, y: 1}
30+
m_Offset: {x: 0, y: 0}
31+
- _DetailAlbedoMap:
32+
m_Texture: {fileID: 0}
33+
m_Scale: {x: 1, y: 1}
34+
m_Offset: {x: 0, y: 0}
35+
- _DetailMask:
36+
m_Texture: {fileID: 0}
37+
m_Scale: {x: 1, y: 1}
38+
m_Offset: {x: 0, y: 0}
39+
- _DetailNormalMap:
40+
m_Texture: {fileID: 0}
41+
m_Scale: {x: 1, y: 1}
42+
m_Offset: {x: 0, y: 0}
43+
- _EmissionMap:
44+
m_Texture: {fileID: 0}
45+
m_Scale: {x: 1, y: 1}
46+
m_Offset: {x: 0, y: 0}
47+
- _IridescentSpectrumMap:
48+
m_Texture: {fileID: 0}
49+
m_Scale: {x: 1, y: 1}
50+
m_Offset: {x: 0, y: 0}
51+
- _MainTex:
52+
m_Texture: {fileID: 0}
53+
m_Scale: {x: 1, y: 1}
54+
m_Offset: {x: 0, y: 0}
55+
- _MetallicGlossMap:
56+
m_Texture: {fileID: 0}
57+
m_Scale: {x: 1, y: 1}
58+
m_Offset: {x: 0, y: 0}
59+
- _NormalMap:
60+
m_Texture: {fileID: 0}
61+
m_Scale: {x: 1, y: 1}
62+
m_Offset: {x: 0, y: 0}
63+
- _OcclusionMap:
64+
m_Texture: {fileID: 0}
65+
m_Scale: {x: 1, y: 1}
66+
m_Offset: {x: 0, y: 0}
67+
- _ParallaxMap:
68+
m_Texture: {fileID: 0}
69+
m_Scale: {x: 1, y: 1}
70+
m_Offset: {x: 0, y: 0}
71+
m_Floats:
72+
- _AlbedoAlphaMode: 0
73+
- _AlbedoAssignedAtRuntime: 0
74+
- _BlendOp: 0
75+
- _BlendedClippingWidth: 1
76+
- _BorderLight: 0
77+
- _BorderLightOpaque: 0
78+
- _BorderLightOpaqueAlpha: 1
79+
- _BorderLightReplacesAlbedo: 0
80+
- _BorderLightUsesHoverColor: 0
81+
- _BorderMinValue: 0.1
82+
- _BorderWidth: 0.1
83+
- _BumpScale: 1
84+
- _ClippingBorder: 0
85+
- _ClippingBorderWidth: 0.025
86+
- _ColorWriteMask: 15
87+
- _CullMode: 2
88+
- _CustomMode: 0
89+
- _Cutoff: 0.5
90+
- _DetailNormalMapScale: 1
91+
- _DirectionalLight: 1
92+
- _DstBlend: 0
93+
- _EdgeSmoothingValue: 0.002
94+
- _EnableChannelMap: 0
95+
- _EnableEmission: 0
96+
- _EnableHoverColorOverride: 0
97+
- _EnableLocalSpaceTriplanarMapping: 0
98+
- _EnableNormalMap: 0
99+
- _EnableProximityLightColorOverride: 0
100+
- _EnableTriplanarMapping: 0
101+
- _EnvironmentColorIntensity: 0.5
102+
- _EnvironmentColorThreshold: 1.5
103+
- _EnvironmentColoring: 0
104+
- _FadeBeginDistance: 0.85
105+
- _FadeCompleteDistance: 0.5
106+
- _FadeMinValue: 0
107+
- _FluentLightIntensity: 1
108+
- _GlossMapScale: 1
109+
- _Glossiness: 0.5
110+
- _GlossyReflections: 1
111+
- _HoverLight: 0
112+
- _IgnoreZScale: 0
113+
- _InnerGlow: 0
114+
- _InnerGlowPower: 4
115+
- _InstancedColor: 0
116+
- _Iridescence: 0
117+
- _IridescenceAngle: -0.78
118+
- _IridescenceIntensity: 0.5
119+
- _IridescenceThreshold: 0.05
120+
- _Metallic: 0
121+
- _Mode: 0
122+
- _NearLightFade: 0
123+
- _NearPlaneFade: 0
124+
- _NormalMapScale: 1
125+
- _OcclusionStrength: 1
126+
- _Parallax: 0.02
127+
- _ProximityLight: 0
128+
- _ProximityLightSubtractive: 0
129+
- _ProximityLightTwoSided: 0
130+
- _Reflections: 0
131+
- _Refraction: 0
132+
- _RefractiveIndex: 0
133+
- _RenderQueueOverride: -1
134+
- _RimLight: 0
135+
- _RimPower: 0.25
136+
- _RoundCornerMargin: 0.01
137+
- _RoundCornerRadius: 0.25
138+
- _RoundCorners: 0
139+
- _Smoothness: 0.5
140+
- _SmoothnessTextureChannel: 0
141+
- _SpecularHighlights: 0
142+
- _SphericalHarmonics: 0
143+
- _SrcBlend: 1
144+
- _Stencil: 0
145+
- _StencilComparison: 0
146+
- _StencilOperation: 0
147+
- _StencilReference: 0
148+
- _TriplanarMappingBlendSharpness: 4
149+
- _UVSec: 0
150+
- _VertexColors: 0
151+
- _VertexExtrusion: 0
152+
- _VertexExtrusionSmoothNormals: 0
153+
- _VertexExtrusionValue: 0
154+
- _ZOffsetFactor: 0
155+
- _ZOffsetUnits: 0
156+
- _ZTest: 4
157+
- _ZWrite: 1
158+
m_Colors:
159+
- _ClippingBorderColor: {r: 1, g: 0.2, b: 0, a: 1}
160+
- _Color: {r: 0, g: 0.75735295, b: 0.75735295, a: 1}
161+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
162+
- _EmissiveColor: {r: 0, g: 0, b: 0, a: 1}
163+
- _EnvironmentColorX: {r: 1, g: 0, b: 0, a: 1}
164+
- _EnvironmentColorY: {r: 0, g: 1, b: 0, a: 1}
165+
- _EnvironmentColorZ: {r: 0, g: 0, b: 1, a: 1}
166+
- _HoverColorOverride: {r: 1, g: 1, b: 1, a: 1}
167+
- _InnerGlowColor: {r: 1, g: 1, b: 1, a: 0.75}
168+
- _ProximityLightCenterColorOverride: {r: 1, g: 0, b: 0, a: 0}
169+
- _ProximityLightMiddleColorOverride: {r: 0, g: 1, b: 0, a: 0.5}
170+
- _ProximityLightOuterColorOverride: {r: 0, g: 0, b: 1, a: 1}
171+
- _RimColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}

Assets/MixedRealityToolkit.SDK/Features/UX/Materials/HandIndexTip.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: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!21 &2100000
4+
Material:
5+
serializedVersion: 6
6+
m_ObjectHideFlags: 0
7+
m_CorrespondingSourceObject: {fileID: 0}
8+
m_PrefabInstance: {fileID: 0}
9+
m_PrefabAsset: {fileID: 0}
10+
m_Name: HandJoint
11+
m_Shader: {fileID: 4800000, guid: 5bdea20278144b11916d77503ba1467a, type: 3}
12+
m_ShaderKeywords: _DIRECTIONAL_LIGHT _DISABLE_ALBEDO_MAP _SPECULAR_HIGHLIGHTS
13+
m_LightmapFlags: 4
14+
m_EnableInstancingVariants: 0
15+
m_DoubleSidedGI: 0
16+
m_CustomRenderQueue: 2000
17+
stringTagMap:
18+
RenderType: Opaque
19+
disabledShaderPasses: []
20+
m_SavedProperties:
21+
serializedVersion: 3
22+
m_TexEnvs:
23+
- _BumpMap:
24+
m_Texture: {fileID: 0}
25+
m_Scale: {x: 1, y: 1}
26+
m_Offset: {x: 0, y: 0}
27+
- _ChannelMap:
28+
m_Texture: {fileID: 0}
29+
m_Scale: {x: 1, y: 1}
30+
m_Offset: {x: 0, y: 0}
31+
- _DetailAlbedoMap:
32+
m_Texture: {fileID: 0}
33+
m_Scale: {x: 1, y: 1}
34+
m_Offset: {x: 0, y: 0}
35+
- _DetailMask:
36+
m_Texture: {fileID: 0}
37+
m_Scale: {x: 1, y: 1}
38+
m_Offset: {x: 0, y: 0}
39+
- _DetailNormalMap:
40+
m_Texture: {fileID: 0}
41+
m_Scale: {x: 1, y: 1}
42+
m_Offset: {x: 0, y: 0}
43+
- _EmissionMap:
44+
m_Texture: {fileID: 0}
45+
m_Scale: {x: 1, y: 1}
46+
m_Offset: {x: 0, y: 0}
47+
- _IridescentSpectrumMap:
48+
m_Texture: {fileID: 0}
49+
m_Scale: {x: 1, y: 1}
50+
m_Offset: {x: 0, y: 0}
51+
- _MainTex:
52+
m_Texture: {fileID: 0}
53+
m_Scale: {x: 1, y: 1}
54+
m_Offset: {x: 0, y: 0}
55+
- _MetallicGlossMap:
56+
m_Texture: {fileID: 0}
57+
m_Scale: {x: 1, y: 1}
58+
m_Offset: {x: 0, y: 0}
59+
- _NormalMap:
60+
m_Texture: {fileID: 0}
61+
m_Scale: {x: 1, y: 1}
62+
m_Offset: {x: 0, y: 0}
63+
- _OcclusionMap:
64+
m_Texture: {fileID: 0}
65+
m_Scale: {x: 1, y: 1}
66+
m_Offset: {x: 0, y: 0}
67+
- _ParallaxMap:
68+
m_Texture: {fileID: 0}
69+
m_Scale: {x: 1, y: 1}
70+
m_Offset: {x: 0, y: 0}
71+
m_Floats:
72+
- _AlbedoAlphaMode: 0
73+
- _AlbedoAssignedAtRuntime: 0
74+
- _BlendOp: 0
75+
- _BlendedClippingWidth: 1
76+
- _BorderLight: 0
77+
- _BorderLightOpaque: 0
78+
- _BorderLightOpaqueAlpha: 1
79+
- _BorderLightReplacesAlbedo: 0
80+
- _BorderLightUsesHoverColor: 0
81+
- _BorderMinValue: 0.1
82+
- _BorderWidth: 0.1
83+
- _BumpScale: 1
84+
- _ClippingBorder: 0
85+
- _ClippingBorderWidth: 0.025
86+
- _ColorWriteMask: 15
87+
- _CullMode: 2
88+
- _CustomMode: 0
89+
- _Cutoff: 0.5
90+
- _DetailNormalMapScale: 1
91+
- _DirectionalLight: 1
92+
- _DstBlend: 0
93+
- _EdgeSmoothingValue: 0.002
94+
- _EnableChannelMap: 0
95+
- _EnableEmission: 0
96+
- _EnableHoverColorOverride: 0
97+
- _EnableLocalSpaceTriplanarMapping: 0
98+
- _EnableNormalMap: 0
99+
- _EnableProximityLightColorOverride: 0
100+
- _EnableTriplanarMapping: 0
101+
- _EnvironmentColorIntensity: 0.5
102+
- _EnvironmentColorThreshold: 1.5
103+
- _EnvironmentColoring: 0
104+
- _FadeBeginDistance: 0.85
105+
- _FadeCompleteDistance: 0.5
106+
- _FadeMinValue: 0
107+
- _FluentLightIntensity: 1
108+
- _GlossMapScale: 1
109+
- _Glossiness: 0.5
110+
- _GlossyReflections: 1
111+
- _HoverLight: 0
112+
- _IgnoreZScale: 0
113+
- _InnerGlow: 0
114+
- _InnerGlowPower: 4
115+
- _InstancedColor: 0
116+
- _Iridescence: 0
117+
- _IridescenceAngle: -0.78
118+
- _IridescenceIntensity: 0.5
119+
- _IridescenceThreshold: 0.05
120+
- _Metallic: 0
121+
- _Mode: 0
122+
- _NearLightFade: 0
123+
- _NearPlaneFade: 0
124+
- _NormalMapScale: 1
125+
- _OcclusionStrength: 1
126+
- _Parallax: 0.02
127+
- _ProximityLight: 0
128+
- _ProximityLightSubtractive: 0
129+
- _ProximityLightTwoSided: 0
130+
- _Reflections: 0
131+
- _Refraction: 0
132+
- _RefractiveIndex: 0
133+
- _RenderQueueOverride: -1
134+
- _RimLight: 0
135+
- _RimPower: 0.25
136+
- _RoundCornerMargin: 0.01
137+
- _RoundCornerRadius: 0.25
138+
- _RoundCorners: 0
139+
- _Smoothness: 0.5
140+
- _SmoothnessTextureChannel: 0
141+
- _SpecularHighlights: 1
142+
- _SphericalHarmonics: 0
143+
- _SrcBlend: 1
144+
- _Stencil: 0
145+
- _StencilComparison: 0
146+
- _StencilOperation: 0
147+
- _StencilReference: 0
148+
- _TriplanarMappingBlendSharpness: 4
149+
- _UVSec: 0
150+
- _VertexColors: 0
151+
- _VertexExtrusion: 0
152+
- _VertexExtrusionSmoothNormals: 0
153+
- _VertexExtrusionValue: 0
154+
- _ZOffsetFactor: 0
155+
- _ZOffsetUnits: 0
156+
- _ZTest: 4
157+
- _ZWrite: 1
158+
m_Colors:
159+
- _ClippingBorderColor: {r: 1, g: 0.2, b: 0, a: 1}
160+
- _Color: {r: 0.5019608, g: 0.5019608, b: 0.5019608, a: 1}
161+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
162+
- _EmissiveColor: {r: 0, g: 0, b: 0, a: 1}
163+
- _EnvironmentColorX: {r: 1, g: 0, b: 0, a: 1}
164+
- _EnvironmentColorY: {r: 0, g: 1, b: 0, a: 1}
165+
- _EnvironmentColorZ: {r: 0, g: 0, b: 1, a: 1}
166+
- _HoverColorOverride: {r: 1, g: 1, b: 1, a: 1}
167+
- _InnerGlowColor: {r: 1, g: 1, b: 1, a: 0.75}
168+
- _ProximityLightCenterColorOverride: {r: 1, g: 0, b: 0, a: 0}
169+
- _ProximityLightMiddleColorOverride: {r: 0, g: 1, b: 0, a: 0.5}
170+
- _ProximityLightOuterColorOverride: {r: 0, g: 0, b: 1, a: 1}
171+
- _RimColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}

Assets/MixedRealityToolkit.SDK/Features/UX/Materials/HandJoint.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/MixedRealityToolkit.SDK/Features/UX/Prefabs/Hands/HandJointSmall.prefab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ MeshRenderer:
5757
m_RenderingLayerMask: 4294967295
5858
m_RendererPriority: 0
5959
m_Materials:
60-
- {fileID: 2100000, guid: 9921ca73d1b94b24aba7726b9df6db8c, type: 2}
60+
- {fileID: 2100000, guid: ebb63c2ee13723441a43c91c9dad413b, type: 2}
6161
m_StaticBatchInfo:
6262
firstSubMesh: 0
6363
subMeshCount: 0

Assets/MixedRealityToolkit.SDK/Features/UX/Prefabs/Hands/HandJointSphere.prefab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ MeshRenderer:
5757
m_RenderingLayerMask: 4294967295
5858
m_RendererPriority: 0
5959
m_Materials:
60-
- {fileID: 2100000, guid: b0fcdc3322e34d9ea83e8399bd9f4031, type: 2}
60+
- {fileID: 2100000, guid: 45b288c2aa5c87d41af05c57a5f49acb, type: 2}
6161
m_StaticBatchInfo:
6262
firstSubMesh: 0
6363
subMeshCount: 0

0 commit comments

Comments
 (0)