提交 26594805 编写于 作者: M Mr.doob

Docs: Added WebGLState page.

上级 4fd018b6
......@@ -235,34 +235,6 @@
<div>If cullFace is false, culling will be disabled.</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>
<h3>[method:null setTexture]( [page:Texture texture], [page:number slot] )</h3>
<div>
texture -- The [page:Texture texture] that needs to be set.<br />
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<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>
......@@ -136,7 +136,8 @@ var list = {
"Renderers / WebGL": [
[ "WebGLProgram", "api/renderers/webgl/WebGLProgram" ],
[ "WebGLShader", "api/renderers/webgl/WebGLShader" ]
[ "WebGLShader", "api/renderers/webgl/WebGLShader" ],
[ "WebGLState", "api/renderers/webgl/WebGLState" ]
],
"Renderers / WebGL / Plugins": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册