forked from serjIII/threejsSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Core.html
78 lines (68 loc) · 2.13 KB
/
Core.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>Core Constants</h1>
<h2>Revision Number</h2>
<code>
THREE.REVISION
</code>
<div id="rev">
The current three.js [link:https://github.com/mrdoob/three.js/releases revision number].
</div>
<h2>Color Spaces</h2>
<code>
THREE.NoColorSpace = ""
THREE.SRGBColorSpace = "srgb"
THREE.LinearSRGBColorSpace = "srgb-linear"
</code>
<p>
[page:NoColorSpace] defines no specific color space. It is commonly used
for textures including normal maps, roughness maps, metalness maps,
ambient occlusion maps, and other non-color data.
</p>
<p>
[page:SRGBColorSpace] (“srgb”) refers to the color space defined by the
Rec. 709 primaries, D65 white point, and nonlinear sRGB transfer
functions. sRGB is the default color space in CSS, and is often found in
color palettes and color pickers. Colors expressed in hexadecimal or CSS
notation are typically in the sRGB color space.
</p>
<p>
[page:LinearSRGBColorSpace] (“srgb-linear”) refers to the sRGB color space
(above) with linear transfer functions. Linear-sRGB is the working color
space in three.js, used throughout most of the rendering process. RGB
components found in three.js materials and shaders are in the Linear-sRGB
color space.
</p>
<p>For further background and usage, see <i>Color management</i>.</p>
<h2>Mouse Buttons</h2>
<code>
THREE.MOUSE.LEFT
THREE.MOUSE.MIDDLE
THREE.MOUSE.RIGHT
THREE.MOUSE.ROTATE
THREE.MOUSE.DOLLY
THREE.MOUSE.PAN
</code>
<p>
The constants LEFT and ROTATE have the same underlying value. The
constants MIDDLE and DOLLY have the same underlying value. The constants
RIGHT and PAN have the same underlying value.
</p>
<h2>Touch Actions</h2>
<code>
THREE.TOUCH.ROTATE THREE.TOUCH.PAN THREE.TOUCH.DOLLY_PAN
THREE.TOUCH.DOLLY_ROTATE
</code>
<h2>Source</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
</p>
</body>
</html>