WebGLState.html 2.6 KB

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