Repository navigation
Expand file tree
/
Copy pathWebGLState.html
More file actions
60 lines (49 loc) · 2.58 KB
/
Copy pathWebGLState.html
File metadata and controls
60 lines (49 loc) · 2.58 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>[name]</h1>
<div class="desc"></div>
<h2>Methods</h2>
<h3>[method:null enable]( [page:integer id], [page:boolean boolean] )</h3>
<div>
TODO
</div>
<h3>[method:null disable]( [page:integer id], [page:boolean boolean] )</h3>
<div>
TODO
</div>
<h3>[method:null setDepthTest]( [page:boolean depthTest] )</h3>
<div>
depthTest -- The boolean to decide if depth of a fragment needs to be tested against the depth buffer . <br />
</div>
<div>
This sets, based on depthTest, whether or not the depth data needs to be tested against the depth buffer.
</div>
<h3>[method:null setDepthWrite]( [page:boolean depthWrite] )</h3>
<div>
depthWrite -- The boolean to decide if depth of a fragment needs to be kept. <br />
</div>
<div>
This sets, based on depthWrite, whether or not the depth data needs to be written in the depth buffer.
</div>
<h3>[method:null setBlending]( [page:number blending], [page:number blendEquation], [page:number blendSrc], [page:number blendDst] )</h3>
<div>
blending -- A number indicating the blending mode. Possible value are THREE.NoBlending, THREE.NormalBlending, THREE.AdditiveBlending, THREE.SubtractiveBlending, THREE.MultiplyBlending or THREE.CustomBlending <br />
blendEquation -- When blending is THREE.CustomBlending, then you can set the blendEquation. Possible values are THREE.AddEquation, THREE.SubtractEquation or THREE.ReverseSubtractEquation.<br />
blendSrc -- When blending is THREE.CustomBlending, then you can set the blendSrc. Possible values are THREE.ZeroFactor, THREE.OneFactor,THREE.SrcColorFactor, THREE.OneMinusSrcColorFactor, THREE.SrcAlphaFactor, THREE.OneMinusSrcAlphaFactor, THREE.DstAlphaFactor, THREE.OneMinusDstAlphaFactor, THREE.DstColorFactor,THREE.OneMinusDstColorFactor or THREE.SrcAlphaSaturateFactor<br />
blendDst -- When blending is THREE.CustomBlending, then you can set the blendDst. Possible values are THREE.ZeroFactor, THREE.OneFactor,THREE.SrcColorFactor, THREE.OneMinusSrcColorFactor, THREE.SrcAlphaFactor, THREE.OneMinusSrcAlphaFactor, THREE.DstAlphaFactor, THREE.OneMinusDstAlphaFactor, THREE.DstColorFactor,THREE.OneMinusDstColorFactor or THREE.SrcAlphaSaturateFactor
</div>
<div>
This method sets the correct blending.
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>