Renderer.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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>WebGLRenderer Constants</h1>
  11. <h2>Cull Face Modes</h2>
  12. <code>
  13. THREE.CullFaceNone
  14. THREE.CullFaceBack
  15. THREE.CullFaceFront
  16. THREE.CullFaceFrontBack
  17. </code>
  18. <p>
  19. [page:constant CullFaceNone] disables face culling.<br />
  20. [page:constant CullFaceBack] culls back faces (default).<br />
  21. [page:constant CullFaceFront] culls front faces.<br />
  22. [page:constant CullFaceFrontBack] culls both front and back faces.
  23. </p>
  24. <h2>Shadow Types</h2>
  25. <code>
  26. THREE.BasicShadowMap
  27. THREE.PCFShadowMap
  28. THREE.PCFSoftShadowMap
  29. THREE.VSMShadowMap
  30. </code>
  31. <p>
  32. These define the WebGLRenderer's [page:WebGLRenderer.shadowMap.type shadowMap.type] property.<br /><br />
  33. [page:constant BasicShadowMap] gives unfiltered shadow maps - fastest, but lowest quality.<br />
  34. [page:constant PCFShadowMap] filters shadow maps using the Percentage-Closer Filtering (PCF) algorithm (default).<br />
  35. [page:constant PCFSoftShadowMap] filters shadow maps using the Percentage-Closer Filtering (PCF) algorithm with better soft shadows especially when using low-resolution shadow maps.<br />
  36. [page:constant VSMShadowMap] filters shadow maps using the Variance Shadow Map (VSM) algorithm. When using VSMShadowMap all shadow receivers will also cast shadows.
  37. </p>
  38. <h2>Tone Mapping</h2>
  39. <code>
  40. THREE.NoToneMapping
  41. THREE.LinearToneMapping
  42. THREE.ReinhardToneMapping
  43. THREE.CineonToneMapping
  44. THREE.ACESFilmicToneMapping
  45. </code>
  46. <p>
  47. These define the WebGLRenderer's [page:WebGLRenderer.toneMapping toneMapping] property.
  48. This is used to approximate the appearance of high dynamic range (HDR) on the
  49. low dynamic range medium of a standard computer monitor or mobile device's screen.<br /><br />
  50. See the [example:webgl_tonemapping WebGL / tonemapping] example.
  51. </p>
  52. <h2>Source</h2>
  53. <p>
  54. [link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
  55. </p>
  56. </body>
  57. </html>