Scene.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. [page:Object3D] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. Scenes allow you to set up what and where is to be rendered by three.js.
  14. This is where you place objects, lights and cameras.
  15. </p>
  16. <h2>Constructor</h2>
  17. <h3>[name]()</h3>
  18. <p>Create a new scene object.</p>
  19. <h2>Properties</h2>
  20. <h3>[property:Object background]</h3>
  21. <p>
  22. Defines the background of the scene. Default is `null`. Valid inputs are:
  23. </p>
  24. <ul>
  25. <li>A [page:Color] for defining a uniform colored background.</li>
  26. <li>A [page:Texture] for defining a (flat) textured background.</li>
  27. <li>
  28. Texture cubes ([page:CubeTexture]) or equirectangular textures for
  29. defining a skybox.
  30. </li>
  31. </ul>
  32. Note: Any camera related configurations like `zoom` or `view` are ignored.
  33. <h3>[property:Float backgroundBlurriness]</h3>
  34. <p>
  35. Sets the blurriness of the background. Only influences environment maps
  36. assigned to [page:Scene.background]. Valid input is a float between `0`
  37. and `1`. Default is `0`.
  38. </p>
  39. <h3>[property:Float backgroundIntensity]</h3>
  40. <p>
  41. Attenuates the color of the background. Only applies to background
  42. textures. Default is `1`.
  43. </p>
  44. <h3>[property:Texture environment]</h3>
  45. <p>
  46. Sets the environment map for all physical materials in the scene. However,
  47. it's not possible to overwrite an existing texture assigned to
  48. [page:MeshStandardMaterial.envMap]. Default is `null`.
  49. </p>
  50. <h3>[property:Fog fog]</h3>
  51. <p>
  52. A [page:Fog fog] instance defining the type of fog that affects everything
  53. rendered in the scene. Default is `null`.
  54. </p>
  55. <h3>[property:Boolean isScene]</h3>
  56. <p>Read-only flag to check if a given object is of type [name].</p>
  57. <h3>[property:Material overrideMaterial]</h3>
  58. <p>
  59. Forces everything in the scene to be rendered with the defined material.
  60. Default is `null`.
  61. </p>
  62. <h2>Methods</h2>
  63. <h3>[method:Object toJSON]( [param:Object meta] )</h3>
  64. <p>
  65. meta -- object containing metadata such as textures or images for the
  66. scene.<br />
  67. Convert the scene to three.js
  68. [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format].
  69. </p>
  70. <h2>Source</h2>
  71. <p>
  72. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  73. </p>
  74. </body>
  75. </html>