Skip to content

Commit 6362bf6

Browse files
committed
lit wireframe
1 parent 0c4abd2 commit 6362bf6

14 files changed

+1159
-1933
lines changed

Materials/AudioMat.mat.meta renamed to Editor.meta

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "SmartAssistant.Audio.Editor",
3+
"rootNamespace": "",
4+
"references": [
5+
"GUID:f6de75c8c8333464eb7d3caa037de423"
6+
],
7+
"includePlatforms": [
8+
"Editor"
9+
],
10+
"excludePlatforms": [],
11+
"allowUnsafeCode": false,
12+
"overrideReferences": false,
13+
"precompiledReferences": [],
14+
"autoReferenced": true,
15+
"defineConstraints": [],
16+
"versionDefines": [],
17+
"noEngineReferences": false
18+
}

Editor/SmartAssistant.Audio.Editor.asmdef.meta

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

Editor/WireframeGUI.cs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
This program is free software; you can redistribute it and/or
3+
modify it under the terms of the GNU General Public License
4+
as published by the Free Software Foundation; either version 2
5+
of the License, or (at your option) any later version.
6+
7+
This program is distributed in the hope that it will be useful,
8+
but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
GNU General Public License for more details.
11+
12+
You should have received a copy of the GNU General Public License
13+
along with this program; if not, write to the Free Software Foundation,
14+
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15+
16+
The Original Code is Copyright (C) 2020 Voxell Technologies.
17+
All rights reserved.
18+
*/
19+
20+
using UnityEditor;
21+
// TODO: create custom shader gui for wire frame, add in wireframe thickness and wireframe color
22+
23+
namespace SmartAssistant.Audio.Editor
24+
{
25+
public class WireframeGUI: ShaderGUI
26+
{
27+
public override void OnGUI (MaterialEditor materialEditor, MaterialProperty[] properties)
28+
{
29+
base.OnGUI (materialEditor, properties);
30+
}
31+
}
32+
}

Editor/WireframeGUI.cs.meta

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

Materials/AudioMat.mat

Lines changed: 0 additions & 127 deletions
This file was deleted.

Materials/WireFrame.mat

Lines changed: 93 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,112 @@ Material:
77
m_CorrespondingSourceObject: {fileID: 0}
88
m_PrefabInstance: {fileID: 0}
99
m_PrefabAsset: {fileID: 0}
10-
m_Name: WireFrame
10+
m_Name: Wireframe
1111
m_Shader: {fileID: 4800000, guid: 232c95391ae79b947b22ce3c216bae9d, type: 3}
1212
m_ShaderKeywords:
1313
m_LightmapFlags: 4
1414
m_EnableInstancingVariants: 0
15-
m_DoubleSidedGI: 0
16-
m_CustomRenderQueue: -1
17-
stringTagMap: {}
15+
m_DoubleSidedGI: 1
16+
m_CustomRenderQueue: 2000
17+
stringTagMap:
18+
RenderType: Opaque
1819
disabledShaderPasses: []
1920
m_SavedProperties:
2021
serializedVersion: 3
2122
m_TexEnvs:
23+
- _BaseMap:
24+
m_Texture: {fileID: 0}
25+
m_Scale: {x: 1, y: 1}
26+
m_Offset: {x: 0, y: 0}
27+
- _BumpMap:
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}
2247
- _MainTex:
2348
m_Texture: {fileID: 0}
2449
m_Scale: {x: 1, y: 1}
2550
m_Offset: {x: 0, y: 0}
51+
- _MetallicGlossMap:
52+
m_Texture: {fileID: 0}
53+
m_Scale: {x: 1, y: 1}
54+
m_Offset: {x: 0, y: 0}
55+
- _OcclusionMap:
56+
m_Texture: {fileID: 0}
57+
m_Scale: {x: 1, y: 1}
58+
m_Offset: {x: 0, y: 0}
59+
- _ParallaxMap:
60+
m_Texture: {fileID: 0}
61+
m_Scale: {x: 1, y: 1}
62+
m_Offset: {x: 0, y: 0}
63+
- _SpecGlossMap:
64+
m_Texture: {fileID: 0}
65+
m_Scale: {x: 1, y: 1}
66+
m_Offset: {x: 0, y: 0}
67+
- unity_Lightmaps:
68+
m_Texture: {fileID: 0}
69+
m_Scale: {x: 1, y: 1}
70+
m_Offset: {x: 0, y: 0}
71+
- unity_LightmapsInd:
72+
m_Texture: {fileID: 0}
73+
m_Scale: {x: 1, y: 1}
74+
m_Offset: {x: 0, y: 0}
75+
- unity_ShadowMasks:
76+
m_Texture: {fileID: 0}
77+
m_Scale: {x: 1, y: 1}
78+
m_Offset: {x: 0, y: 0}
2679
m_Ints: []
2780
m_Floats:
28-
- _WireThickness: 500
81+
- _AlphaClip: 0
82+
- _Blend: 0
83+
- _BumpScale: 1
84+
- _ClearCoatMask: 0
85+
- _ClearCoatSmoothness: 0
86+
- _Cull: 0
87+
- _Cutoff: 0.5
88+
- _DetailAlbedoMapScale: 1
89+
- _DetailNormalMapScale: 1
90+
- _DstBlend: 0
91+
- _EnvironmentReflections: 1
92+
- _GlossMapScale: 0
93+
- _Glossiness: 0
94+
- _GlossinessSource: 0
95+
- _GlossyReflections: 0
96+
- _Metallic: 0.8
97+
- _OcclusionStrength: 1
98+
- _Parallax: 0.005
99+
- _QueueOffset: 0
100+
- _ReceiveShadows: 1
101+
- _Shininess: 0
102+
- _Smoothness: 0.6
103+
- _SmoothnessSource: 1
104+
- _SmoothnessTextureChannel: 0
105+
- _SpecSource: 0
106+
- _SpecularHighlights: 1
107+
- _SrcBlend: 1
108+
- _Surface: 0
109+
- _WireThickness: 300
110+
- _WorkflowMode: 1
111+
- _ZWrite: 1
29112
m_Colors:
30-
- _BaseColor: {r: 0, g: 0, b: 0, a: 0}
31-
- _WireColor: {r: 0, g: 5.992157, b: 5.9607844, a: 1}
113+
- _BaseColor: {r: 0, g: 0.24289697, b: 0.4811321, a: 1}
114+
- _Color: {r: 1, g: 1, b: 1, a: 1}
115+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
116+
- _SpecColor: {r: 1, g: 1, b: 1, a: 0.5}
117+
- _WireColor: {r: 0, g: 3, b: 3, a: 1}
32118
m_BuildTextureStacks: []

0 commit comments

Comments
 (0)