AmbientLight.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="it">
  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; [page:Light] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. Questa luce illumina globalmente tutti gli oggetti nella scena allo stesso modo.<br /><br />
  14. Questa luce non può essere utilizzata per proiettare ombre in quanto non ha una direzione.
  15. </p>
  16. <h2>Codice di Esempio</h2>
  17. <code>
  18. const light = new THREE.AmbientLight( 0x404040 ); // soft white light
  19. scene.add( light );
  20. </code>
  21. <h2>Costruttore</h2>
  22. <h3>[name]( [param:Integer color], [param:Float intensity] )</h3>
  23. <p>
  24. [page:Integer color] - (opzionale) Valore numerico della componente RGB del colore. Il valore predefinito è 0xffffff.<br />
  25. [page:Float intensity] - (opzionale) Valore numerico della forza/intensità della luce. Il valore predefinito è 1.<br /><br />
  26. Crea una nuova [name].
  27. </p>
  28. <h2>Proprietà</h2>
  29. <p>
  30. Vedi la classe base [page:Light Light] per le proprietà comuni.
  31. </p>
  32. <h3>[property:Boolean isAmbientLight]</h3>
  33. <p>
  34. Flag di sola lettura per verificare se l'oggetto dato è del tipo [name].
  35. </p>
  36. <h2>Metodi</h2>
  37. <p>
  38. Vedi la classe base [page:Light Light] per i metodi comuni.
  39. </p>
  40. <h2>Source</h2>
  41. <p>
  42. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  43. </p>
  44. </body>
  45. </html>