Core.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!DOCTYPE html>
  2. <html lang="zh">
  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>核心常量(Core Constants)</h1>
  11. <h2>修订版本号</h2>
  12. <code>
  13. THREE.REVISION
  14. </code>
  15. <div id="rev">
  16. 当前three.js的修订版本号( [link:https://github.com/mrdoob/three.js/releases revision number])。
  17. </div>
  18. <h2>Color Spaces</h2>
  19. <code>
  20. THREE.SRGBColorSpace
  21. THREE.LinearSRGBColorSpace
  22. </code>
  23. <p>
  24. [page:SRGBColorSpace] (“srgb”) refers to the color space defined by the Rec. 709 primaries, D65
  25. white point, and nonlinear sRGB transfer functions. sRGB is the default color space in
  26. CSS, and is often found in color palettes and color pickers. Colors expressed in
  27. hexadecimal or CSS notation are typically in the sRGB color space.
  28. </p>
  29. <p>
  30. [page:LinearSRGBColorSpace] (“srgb-linear”) refers to the sRGB color space (above) with
  31. linear transfer functions. Linear-sRGB is the working color space in three.js, used
  32. throughout most of the rendering process. RGB components found in three.js materials
  33. and shaders are in the Linear-sRGB color space.
  34. D</p>
  35. <p>
  36. For further background and usage, see <i>Color management</i>.
  37. </p>
  38. <h2>鼠标按钮</h2>
  39. <code>
  40. THREE.MOUSE.LEFT
  41. THREE.MOUSE.MIDDLE
  42. THREE.MOUSE.RIGHT
  43. </code>
  44. <h2>源代码</h2>
  45. <p>
  46. [link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]
  47. </p>
  48. </body>
  49. </html>