Renderer.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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>WebGLRenderer Constants</h1>
  12. <h2>Cull Face Modes</h2>
  13. <code>
  14. THREE.CullFaceNone
  15. THREE.CullFaceBack
  16. THREE.CullFaceFront
  17. THREE.CullFaceFrontBack
  18. </code>
  19. <p>
  20. [page:constant CullFaceNone] disables face culling.<br />
  21. [page:constant CullFaceBack] culls back faces (default).<br />
  22. [page:constant CullFaceFront] culls front faces.<br />
  23. [page:constant CullFaceFrontBack] culls both front and back faces.
  24. </p>
  25. <h2>Front Face Direction</h2>
  26. <code>
  27. THREE.FrontFaceDirectionCW
  28. THREE.FrontFaceDirectionCCW
  29. </code>
  30. <p>
  31. [page:constant FrontFaceDirectionCW] sets the winding order for polygons to clockwise.<br />
  32. [page:constant FrontFaceDirectionCCW] sets the winding order for polygons to counter-clockwise (default).
  33. </p>
  34. <h2>Shadow Types</h2>
  35. <code>
  36. THREE.BasicShadowMap
  37. THREE.PCFShadowMap
  38. THREE.PCFSoftShadowMap
  39. THREE.VSMShadowMap
  40. </code>
  41. <p>
  42. These define the WebGLRenderer's [page:WebGLRenderer.shadowMap.type shadowMap.type] property.<br /><br />
  43. [page:constant BasicShadowMap] gives unfiltered shadow maps - fastest, but lowest quality.<br />
  44. [page:constant PCFShadowMap] filters shadow maps using the Percentage-Closer Filtering (PCF) algorithm (default).<br />
  45. [page:constant PCFSoftShadowMap] filters shadow maps using the Percentage-Closer Soft Shadows (PCSS) algorithm.<br />
  46. [page:constant VSMShadowMap] filters shadow maps using the Variance Shadow Map (VSM) algorithm.
  47. </p>
  48. <h2>Tone Mapping</h2>
  49. <code>
  50. THREE.NoToneMapping
  51. THREE.LinearToneMapping
  52. THREE.ReinhardToneMapping
  53. THREE.Uncharted2ToneMapping
  54. THREE.CineonToneMapping
  55. THREE.ACESFilmicToneMapping
  56. </code>
  57. <p>
  58. These define the WebGLRenderer's [page:WebGLRenderer.toneMapping toneMapping] property.
  59. This is used to approximate the appearance of high dynamic range (HDR) on the
  60. low dynamic range medium of a standard computer monitor or mobile device's screen.<br /><br />
  61. [page:constant NoToneMapping] disables tone mapping.<br />
  62. [page:constant LinearToneMapping] is the default.<br /><br />
  63. See the [example:webgl_tonemapping WebGL / tonemapping] example.
  64. </p>
  65. <h2>Source</h2>
  66. <p>
  67. [link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
  68. </p>
  69. </body>
  70. </html>