2
0

WebGLState.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <p class="desc"></p>
  12. <h2>方法</h2>
  13. <h3>[method:null enable]( [param:Integer id], [param:Boolean boolean] )</h3>
  14. <p>
  15. TODO
  16. </p>
  17. <h3>[method:null disable]( [param:Integer id], [param:Boolean boolean] )</h3>
  18. <p>
  19. TODO
  20. </p>
  21. <h3>[method:null setDepthTest]( [param:Boolean depthTest] )</h3>
  22. <p>
  23. depthTest -- 决定是否需要基于深度缓存对片元进行深度测试的布尔值<br />
  24. </p>
  25. <p>
  26. 该方法设置了depthTest的值,故可决定是否需要基于深度缓存测试深度数据
  27. </p>
  28. <h3>[method:null setDepthWrite]( [param:Boolean depthWrite] )</h3>
  29. <p>
  30. depthWrite -- 决定是否需要保持片元深度的布尔值<br />
  31. </p>
  32. <p>
  33. 该方法设置depthWrite的值,故可决定是否要将深度数据写入深度缓存中
  34. </p>
  35. <h3>[method:null setBlending]( [param:number blending], [param:number blendEquation], [param:number blendSrc], [param:number blendDst] )</h3>
  36. <p>
  37. blending -- 一个表示混合模式的数字。可能的值有THREE.NoBlending, THREE.NormalBlending, THREE.AdditiveBlending, THREE.SubtractiveBlending, THREE.MultiplyBlending 和 THREE.CustomBlending <br />
  38. blendEquation -- 如果blending的值是THREE.CustomBlending,那么你可以设置blendEquation. 可能的值有THREE.AddEquation, THREE.SubtractEquation 和 THREE.ReverseSubtractEquation.<br />
  39. 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 />
  40. 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
  41. </p>
  42. <p>
  43. 该方法设置正确的混合
  44. </p>
  45. <h2>源码</h2>
  46. <p>
  47. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  48. </p>
  49. </body>
  50. </html>