1
0

Renderer.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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
  34. lowest quality.<br />
  35. [page:constant PCFShadowMap] filters shadow maps using the
  36. Percentage-Closer Filtering (PCF) algorithm (default).<br />
  37. [page:constant PCFSoftShadowMap] filters shadow maps using the
  38. Percentage-Closer Filtering (PCF) algorithm with better soft shadows
  39. especially when using low-resolution shadow maps.<br />
  40. [page:constant VSMShadowMap] filters shadow maps using the Variance Shadow
  41. Map (VSM) algorithm. When using VSMShadowMap all shadow receivers will
  42. also cast shadows.
  43. </p>
  44. <h2>Tone Mapping</h2>
  45. <code>
  46. THREE.NoToneMapping
  47. THREE.LinearToneMapping
  48. THREE.ReinhardToneMapping
  49. THREE.CineonToneMapping
  50. THREE.ACESFilmicToneMapping
  51. THREE.AgXToneMapping
  52. THREE.NeutralToneMapping
  53. THREE.CustomToneMapping
  54. </code>
  55. <p>
  56. These define the WebGLRenderer's [page:WebGLRenderer.toneMapping toneMapping] property. This is used to approximate the appearance of high
  57. dynamic range (HDR) on the low dynamic range medium of a standard computer
  58. monitor or mobile device's screen.
  59. </p>
  60. <p>
  61. THREE.LinearToneMapping, THREE.ReinhardToneMapping, THREE.CineonToneMapping, THREE.ACESFilmicToneMapping,
  62. THREE.AgXToneMapping and THREE.NeutralToneMapping are built-inimplementations of tone mapping.
  63. THREE.CustomToneMapping expects a custom implementation by modyfing GLSL code of the material's fragment shader.
  64. See the [example:webgl_tonemapping WebGL / tonemapping] example.
  65. </p>
  66. <p>
  67. THREE.NeutralToneMapping is an implementation based on the Khronos 3D Commerce Group standard tone mapping.
  68. </p>
  69. <h2>Source</h2>
  70. <p>
  71. [link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
  72. </p>
  73. </body>
  74. </html>