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. <p class="desc"></p>
  13. <h2>Methods</h2>
  14. <h3>[method:null enable]( [param:integer id], [param:boolean boolean] )</h3>
  15. <p>
  16. TODO
  17. </p>
  18. <h3>[method:null disable]( [param:integer id], [param:boolean boolean] )</h3>
  19. <p>
  20. TODO
  21. </p>
  22. <h3>[method:null setDepthTest]( [param:boolean depthTest] )</h3>
  23. <p>
  24. depthTest -- The boolean to decide if depth of a fragment needs to be tested against the depth buffer . <br />
  25. </p>
  26. <p>
  27. This sets, based on depthTest, whether or not the depth data needs to be tested against the depth buffer.
  28. </p>
  29. <h3>[method:null setDepthWrite]( [param:boolean depthWrite] )</h3>
  30. <p>
  31. depthWrite -- The boolean to decide if depth of a fragment needs to be kept. <br />
  32. </p>
  33. <p>
  34. This sets, based on depthWrite, whether or not the depth data needs to be written in the depth buffer.
  35. </p>
  36. <h3>[method:null setBlending]( [param:number blending], [param:number blendEquation], [param:number blendSrc], [param:number blendDst] )</h3>
  37. <p>
  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. </p>
  43. <p>
  44. This method sets the correct blending.
  45. </p>
  46. <h2>Source</h2>
  47. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  48. </body>
  49. </html>