Skip to content

Commit 2d29725

Browse files
committed
Initial Commit
0 parents  commit 2d29725

75 files changed

Lines changed: 46669 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Assets/HoloLensWithOpenCVForUnityExample.meta

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

Assets/HoloLensWithOpenCVForUnityExample/Materials.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
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_PrefabParentObject: {fileID: 0}
8+
m_PrefabInternal: {fileID: 0}
9+
m_Name: AnonymousRectQuadMaterial
10+
m_Shader: {fileID: 10750, guid: 0000000000000000f000000000000000, type: 0}
11+
m_ShaderKeywords:
12+
m_LightmapFlags: 5
13+
m_CustomRenderQueue: -1
14+
stringTagMap: {}
15+
m_SavedProperties:
16+
serializedVersion: 2
17+
m_TexEnvs:
18+
- first:
19+
name: _BumpMap
20+
second:
21+
m_Texture: {fileID: 0}
22+
m_Scale: {x: 1, y: 1}
23+
m_Offset: {x: 0, y: 0}
24+
- first:
25+
name: _DetailAlbedoMap
26+
second:
27+
m_Texture: {fileID: 0}
28+
m_Scale: {x: 1, y: 1}
29+
m_Offset: {x: 0, y: 0}
30+
- first:
31+
name: _DetailMask
32+
second:
33+
m_Texture: {fileID: 0}
34+
m_Scale: {x: 1, y: 1}
35+
m_Offset: {x: 0, y: 0}
36+
- first:
37+
name: _DetailNormalMap
38+
second:
39+
m_Texture: {fileID: 0}
40+
m_Scale: {x: 1, y: 1}
41+
m_Offset: {x: 0, y: 0}
42+
- first:
43+
name: _EmissionMap
44+
second:
45+
m_Texture: {fileID: 0}
46+
m_Scale: {x: 1, y: 1}
47+
m_Offset: {x: 0, y: 0}
48+
- first:
49+
name: _MainTex
50+
second:
51+
m_Texture: {fileID: 2800000, guid: d59d2b4cb4feaee44850a4e28bc7741e, type: 3}
52+
m_Scale: {x: 1, y: 1}
53+
m_Offset: {x: 0, y: 0}
54+
- first:
55+
name: _MetallicGlossMap
56+
second:
57+
m_Texture: {fileID: 0}
58+
m_Scale: {x: 1, y: 1}
59+
m_Offset: {x: 0, y: 0}
60+
- first:
61+
name: _OcclusionMap
62+
second:
63+
m_Texture: {fileID: 0}
64+
m_Scale: {x: 1, y: 1}
65+
m_Offset: {x: 0, y: 0}
66+
- first:
67+
name: _ParallaxMap
68+
second:
69+
m_Texture: {fileID: 0}
70+
m_Scale: {x: 1, y: 1}
71+
m_Offset: {x: 0, y: 0}
72+
m_Floats:
73+
- first:
74+
name: _BumpScale
75+
second: 1
76+
- first:
77+
name: _Cutoff
78+
second: 0.5
79+
- first:
80+
name: _DetailNormalMapScale
81+
second: 1
82+
- first:
83+
name: _DstBlend
84+
second: 0
85+
- first:
86+
name: _EmissionScaleUI
87+
second: 0
88+
- first:
89+
name: _Glossiness
90+
second: 0.5
91+
- first:
92+
name: _LineWidth
93+
second: 0.1
94+
- first:
95+
name: _Metallic
96+
second: 0
97+
- first:
98+
name: _Mode
99+
second: 0
100+
- first:
101+
name: _OcclusionStrength
102+
second: 1
103+
- first:
104+
name: _Parallax
105+
second: 0.02
106+
- first:
107+
name: _SrcBlend
108+
second: 1
109+
- first:
110+
name: _UVSec
111+
second: 0
112+
- first:
113+
name: _ZWrite
114+
second: 1
115+
m_Colors:
116+
- first:
117+
name: _Color
118+
second: {r: 1, g: 1, b: 1, a: 1}
119+
- first:
120+
name: _EmissionColor
121+
second: {r: 0, g: 0, b: 0, a: 1}
122+
- first:
123+
name: _EmissionColorUI
124+
second: {r: 1, g: 1, b: 1, a: 1}
125+
- first:
126+
name: _GridColor
127+
second: {r: 1, g: 1, b: 1, a: 0}
128+
- first:
129+
name: _LineColor
130+
second: {r: 1, g: 0, b: 0, a: 1}

Assets/HoloLensWithOpenCVForUnityExample/Materials/AnonymousRectQuadMaterial.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: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
Shader "Custom/WireFrame"
2+
{
3+
Properties
4+
{
5+
_LineColor ("Line Color", Color) = (1,1,1,1)
6+
_GridColor ("Grid Color", Color) = (1,1,1,0)
7+
_LineWidth ("Line Width", float) = 0.01
8+
}
9+
SubShader
10+
{
11+
12+
Tags
13+
{
14+
"Queue" = "Transparent"
15+
"IgnoreProjector" = "True"
16+
"RenderType" = "Transparent"
17+
"PreviewType"="Plane"
18+
}
19+
Lighting Off
20+
ZWrite Off
21+
Blend SrcAlpha OneMinusSrcAlpha
22+
23+
Pass
24+
{
25+
26+
CGPROGRAM
27+
#pragma vertex vert
28+
#pragma fragment frag
29+
30+
uniform float4 _LineColor;
31+
uniform float4 _GridColor;
32+
uniform float _LineWidth;
33+
34+
// vertex input: position, uv1, uv2
35+
struct appdata
36+
{
37+
float4 vertex : POSITION;
38+
float4 texcoord1 : TEXCOORD0;
39+
float4 color : COLOR;
40+
};
41+
42+
struct v2f
43+
{
44+
float4 pos : POSITION;
45+
float4 texcoord1 : TEXCOORD0;
46+
float4 color : COLOR;
47+
};
48+
49+
v2f vert (appdata v)
50+
{
51+
v2f o;
52+
o.pos = mul( UNITY_MATRIX_MVP, v.vertex);
53+
o.texcoord1 = v.texcoord1;
54+
o.color = v.color;
55+
return o;
56+
}
57+
58+
fixed4 frag(v2f i) : COLOR
59+
{
60+
fixed4 answer;
61+
62+
float lx = step(_LineWidth, i.texcoord1.x);
63+
float ly = step(_LineWidth, i.texcoord1.y);
64+
float hx = step(i.texcoord1.x, 1 - _LineWidth);
65+
float hy = step(i.texcoord1.y, 1 - _LineWidth);
66+
67+
answer = lerp(_LineColor, _GridColor, lx*ly*hx*hy);
68+
69+
return answer;
70+
}
71+
ENDCG
72+
}
73+
}
74+
Fallback "Vertex Colored", 1
75+
}
76+

Assets/HoloLensWithOpenCVForUnityExample/Materials/WierFrameShader.shader.meta

Lines changed: 9 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)