WebGLState.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <div class="desc"></div>
  13. <h2>Methods</h2>
  14. <h3>[method:null enable]( [page:integer id], [page:boolean boolean] )</h3>
  15. <div>
  16. TODO
  17. </div>
  18. <h3>[method:null disable]( [page:integer id], [page:boolean boolean] )</h3>
  19. <div>
  20. TODO
  21. </div>
  22. <h3>[method:null setDepthTest]( [page:boolean depthTest] )</h3>
  23. <div>
  24. depthTest -- The boolean to decide if depth of a fragment needs to be tested against the depth buffer . <br />
  25. </div>
  26. <div>
  27. This sets, based on depthTest, whether or not the depth data needs to be tested against the depth buffer.
  28. </div>
  29. <h3>[method:null setDepthWrite]( [page:boolean depthWrite] )</h3>
  30. <div>
  31. depthWrite -- The boolean to decide if depth of a fragment needs to be kept. <br />
  32. </div>
  33. <div>
  34. This sets, based on depthWrite, whether or not the depth data needs to be written in the depth buffer.
  35. </div>
  36. <h3>[method:null setBlending]( [page:number blending], [page:number blendEquation], [page:number blendSrc], [page:number blendDst] )</h3>
  37. <div>
  38. blending -- A number indicating the blending mode. Possible value are THREE.NoBlending, THREE.NormalBlending, THREE.AdditiveBlending, THREE.SubtractiveBlending, THREE.MultiplyBlending or THREE.CustomBlending <br />
  39. blendEquation -- When blending is THREE.CustomBlending, then you can set the blendEquation. Possible values are THREE.AddEquation, THREE.SubtractEquation or THREE.ReverseSubtractEquation.<br />
  40. 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 />
  41. 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
  42. </div>
  43. <div>
  44. This method sets the correct blending.
  45. </div>
  46. <h2>Source</h2>
  47. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  48. </body>
  49. </html>