Scene.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. If not null, sets the background used when rendering the scene, and is always rendered first.
  22. Can be set to a [page:Color] which sets the clear color, a [page:Texture] covering the canvas, a cubemap as a [page:CubeTexture] or an equirectangular as a [page:Texture] . Default is null.
  23. </p>
  24. <h3>[property:Float backgroundBlurriness]</h3>
  25. <p>
  26. 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*.
  27. </p>
  28. <h3>[property:Texture environment]</h3>
  29. <p>
  30. If not null, this texture is set as the environment map for all physical materials in the scene.
  31. However, it's not possible to overwrite an existing texture assigned to [page:MeshStandardMaterial.envMap]. Default is null.
  32. </p>
  33. <h3>[property:Fog fog]</h3>
  34. <p>A [page:Fog fog] instance defining the type of fog that affects everything rendered in the scene. Default is null.</p>
  35. <h3>[property:Boolean isScene]</h3>
  36. <p>
  37. Read-only flag to check if a given object is of type [name].
  38. </p>
  39. <h3>[property:Material overrideMaterial]</h3>
  40. <p>If not null, it will force everything in the scene to be rendered with that material. Default is null.</p>
  41. <h2>Methods</h2>
  42. <h3>[method:Object toJSON]( [param:Object meta] )</h3>
  43. <p>
  44. meta -- object containing metadata such as textures or images for the scene.<br />
  45. Convert the scene to three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format].
  46. </p>
  47. <h2>Source</h2>
  48. <p>
  49. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  50. </p>
  51. </body>
  52. </html>