2
0

Scene.html 2.4 KB

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