forked from arkin0x/ONOSENDAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
materials.js
132 lines (118 loc) · 2.73 KB
/
materials.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
import {
MeshPhongMaterial,
MeshBasicMaterial,
DoubleSide,
LineBasicMaterial,
AlwaysDepth
} from "three"
// colors
const LOGO_PURPLE = 0x78004e
const LOGO_PURPLE_HIGHLIGHT = 0xb20074
const LOGO_BLUE = 0x0062cd
const LOGO_TEAL = 0x06a4a4
const BITCOIN = 0xff9900
const GRID_COLOR = 0x00006fa//0xf747bc
const ENVIRONMENT_LEFT_COLOR = 0x7029f4
const ENVIRONMENT_RIGHT_COLOR = 0xff07ac
const LEFT_LAMP_COLOR = 0xf747bc
const RIGHT_LAMP_COLOR = 0x7029f4
const CENTER_LAMP_COLOR = 0xffffff
const COORDS = 0xff9123
export const colors = {
LOGO_PURPLE,
LOGO_PURPLE_HIGHLIGHT,
LOGO_BLUE,
LOGO_TEAL,
BITCOIN,
GRID_COLOR,
ENVIRONMENT_LEFT_COLOR,
ENVIRONMENT_RIGHT_COLOR,
LEFT_LAMP_COLOR,
RIGHT_LAMP_COLOR,
CENTER_LAMP_COLOR,
}
export const sunMaterial = new MeshBasicMaterial({
// color: 0xff2323,
// color: 0xff0000
// color: LOGO_PURPLE,
color: 0x2b0c40,
side: DoubleSide,
// fog: false,
})
// sunMaterial.depthFunc = AlwaysDepth
export const whiteMaterial = new MeshPhongMaterial({
color: 0xffffff,
shininess: 30,
specular: 0xffffff,
transparent: true,
opacity: 0.90,
})
export const bookmarkedMaterial = new MeshPhongMaterial({
// color: 0xff2323,
color: 0xff3b3b,
shininess: 50,
specular: 0xffffff,
transparent: true,
opacity: 0.90,
fog: false,
})
export const placeholderMaterial = new MeshPhongMaterial({
color: 0xffffff,
shininess: 50,
specular: 0x333333,
transparent: true,
opacity: 0.20,
})
export const placeholderVisitedMaterial = new MeshPhongMaterial({
color: LOGO_PURPLE,
shininess: 10,
specular: 0x111111,
// transparent: true,
// opacity: 0.90,
})
export const expandedCubeMaterial = new MeshPhongMaterial({
color: LOGO_TEAL,
shininess: 30,
specular: 0xffffff,
transparent: true,
opacity: 0.75,
fog: false,
})
export const expandedBookmarkedCubeMaterial = new MeshPhongMaterial({
color: 0xff3b3b,
shininess: 30,
specular: 0xffffff,
transparent: true,
opacity: 0.75,
fog: false,
})
export const relatedCubeMaterial = new MeshPhongMaterial({
color: LOGO_TEAL,
shininess: 30,
specular: 0x999999,
transparent: true,
opacity: 0.90,
})
// for a note thas was selected but not read
export const selectedMaterial = new MeshPhongMaterial({
color: LOGO_BLUE,
shininess: 30,
specular: 0xffffff,
// transparent: true,
// opacity: 0.90,
})
export const visitedMaterial = new MeshPhongMaterial({
color: LOGO_PURPLE,
shininess: 10,
specular: 0x111111,
// transparent: true,
// opacity: 0.90,
})
export const connectToRoot = new LineBasicMaterial({color: LOGO_BLUE})
export const connectToReplies = new LineBasicMaterial({color: LOGO_PURPLE})
export const speedLineMaterial = new LineBasicMaterial({
color: BITCOIN,
transparent: true,
opacity: 0,
})
export const textMaterial = new MeshBasicMaterial({color: BITCOIN})