|
@@ -13,47 +13,47 @@
|
|
|
<p class="desc"></p>
|
|
|
|
|
|
|
|
|
- <h2>Methods</h2>
|
|
|
+ <h2>方法</h2>
|
|
|
|
|
|
<h3>[method:null enable]( [param:integer id], [param:boolean boolean] )</h3>
|
|
|
<p>
|
|
|
- TODO
|
|
|
+ 未完成
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:null disable]( [param:integer id], [param:boolean boolean] )</h3>
|
|
|
<p>
|
|
|
- TODO
|
|
|
+ 未完成
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:null setDepthTest]( [param:boolean depthTest] )</h3>
|
|
|
<p>
|
|
|
- depthTest -- The boolean to decide if depth of a fragment needs to be tested against the depth buffer . <br />
|
|
|
+ depthTest -- 决定是否需要基于深度缓存对片元进行深度测试的布尔值<br />
|
|
|
</p>
|
|
|
<p>
|
|
|
- This sets, based on depthTest, whether or not the depth data needs to be tested against the depth buffer.
|
|
|
+ 该方法设置了depthTest的值,故可决定是否需要基于深度缓存测试深度数据
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:null setDepthWrite]( [param:boolean depthWrite] )</h3>
|
|
|
<p>
|
|
|
- depthWrite -- The boolean to decide if depth of a fragment needs to be kept. <br />
|
|
|
+ depthWrite -- 决定是否需要保持片元深度的布尔值<br />
|
|
|
</p>
|
|
|
<p>
|
|
|
- This sets, based on depthWrite, whether or not the depth data needs to be written in the depth buffer.
|
|
|
+ 该方法设置depthWrite的值,故可决定是否要将深度数据写入深度缓存中
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:null setBlending]( [param:number blending], [param:number blendEquation], [param:number blendSrc], [param:number blendDst] )</h3>
|
|
|
<p>
|
|
|
- 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
|
|
|
+ blending -- 一个表示混合模式的数字。可能的值有THREE.NoBlending, THREE.NormalBlending, THREE.AdditiveBlending, THREE.SubtractiveBlending, THREE.MultiplyBlending 和 THREE.CustomBlending <br />
|
|
|
+ blendEquation -- 如果blending的值是THREE.CustomBlending,那么你可以设置blendEquation. 可能的值有THREE.AddEquation, THREE.SubtractEquation 和 THREE.ReverseSubtractEquation.<br />
|
|
|
+ blendSrc -- 如果blending的值是THREE.CustomBlending, 那么你可以设置blendSrc.可能的值有THREE.ZeroFactor, THREE.OneFactor,THREE.SrcColorFactor, THREE.OneMinusSrcColorFactor, THREE.SrcAlphaFactor, THREE.OneMinusSrcAlphaFactor, THREE.DstAlphaFactor, THREE.OneMinusDstAlphaFactor, THREE.DstColorFactor,THREE.OneMinusDstColorFactor 和 THREE.SrcAlphaSaturateFactor<br />
|
|
|
+ blendDst -- 如果blending的值是THREE.CustomBlending, 那么你可以设置blendDst. 可能的值有THREE.ZeroFactor, THREE.OneFactor,THREE.SrcColorFactor, THREE.OneMinusSrcColorFactor, THREE.SrcAlphaFactor, THREE.OneMinusSrcAlphaFactor, THREE.DstAlphaFactor, THREE.OneMinusDstAlphaFactor, THREE.DstColorFactor,THREE.OneMinusDstColorFactor or THREE.SrcAlphaSaturateFactor
|
|
|
</p>
|
|
|
<p>
|
|
|
- This method sets the correct blending.
|
|
|
+ 该方法设置正确的混合
|
|
|
</p>
|
|
|
|
|
|
|
|
|
- <h2>Source</h2>
|
|
|
+ <h2>源码</h2>
|
|
|
|
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
|
</body>
|