WebGLState.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html lang="en">
  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>Methods</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 -- The boolean to decide if depth of a fragment needs to be tested against the depth buffer . <br />
  24. </p>
  25. <p>
  26. This sets, based on depthTest, whether or not the depth data needs to be tested against the depth buffer.
  27. </p>
  28. <h3>[method:null setDepthWrite]( [param:Boolean depthWrite] )</h3>
  29. <p>
  30. depthWrite -- The boolean to decide if depth of a fragment needs to be kept. <br />
  31. </p>
  32. <p>
  33. This sets, based on depthWrite, whether or not the depth data needs to be written in the depth buffer.
  34. </p>
  35. <h3>[method:null setBlending]( [param:number blending], [param:number blendEquation], [param:number blendSrc], [param:number blendDst] )</h3>
  36. <p>
  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. </p>
  42. <p>
  43. This method sets the correct blending.
  44. </p>
  45. <h2>Source</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>