HemisphereLight.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. Una sorgente di luce posizionata direttamente sopra la scena, con il colore che sfuma dal
  14. colore del cielo al colore del suolo.<br /><br />
  15. Questa luce non può essere usata per proiettare le ombre.
  16. </p>
  17. <h2>Codice di Esempio</h2>
  18. <code>
  19. const light = new THREE.HemisphereLight( 0xffffbb, 0x080820, 1 );
  20. scene.add( light );
  21. </code>
  22. <h2>Esempi</h2>
  23. <p>
  24. [example:webgl_animation_skinning_blending animation / skinning / blending ]<br />
  25. [example:webgl_lights_hemisphere lights / hemisphere ]<br />
  26. [example:misc_controls_pointerlock controls / pointerlock ]<br />
  27. [example:webgl_loader_collada_kinematics loader / collada / kinematics ]<br />
  28. [example:webgl_loader_stl loader / stl ]
  29. </p>
  30. <h2>Costruttore</h2>
  31. <h3>[name]( [param:Integer skyColor], [param:Integer groundColor], [param:Float intensity] )</h3>
  32. <p>
  33. [page:Integer skyColor] - (opzionale) colore esadecimale del cielo. Il valore predefinito è 0xffffff.<br />
  34. [page:Integer groundColor] - (opzionale) colore esadecimale del suolo. Il valore predefinito è 0xffffff.<br />
  35. [page:Float intensity] - (opzionale) valore numerico della forza/intensità della luce. Il valore predefinito è 1.<br /><br />
  36. Crea un nuova [name].
  37. </p>
  38. <h2>Proprietà</h2>
  39. <p>
  40. Vedi la classe base [page:Light Light] per le proprietà comuni.
  41. </p>
  42. <h3>[property:Float color]</h3>
  43. <p>
  44. Il colore del cielo della luce, come passato nel costruttore.
  45. Il valore predefinito è un nuovo [page:Color] impostato a bianco (0xffffff).
  46. </p>
  47. <h3>[property:Float groundColor]</h3>
  48. <p>
  49. Il colore del suolo della luce, come passato nel costruttore.
  50. Il valore predefinito è un nuovo [page:Color] impostato a bianco (0xffffff).
  51. </p>
  52. <h3>[property:Boolean isHemisphereLight]</h3>
  53. <p>
  54. Flag di sola lettura per verificare se l'oggetto dato è del tipo [name].
  55. </p>
  56. <h3>[property:Vector3 position]</h3>
  57. <p>
  58. Questo è impostato uguale a [page:Object3D.DEFAULT_UP] (0, 1, 0), in modo che la luce risplenda
  59. dall'alto verso il basso.
  60. </p>
  61. <h2>Metodi</h2>
  62. <p>
  63. Vedi la classe base [page:Light Light] per i metodi comuni.
  64. </p>
  65. <h3>[method:this copy]( [param:HemisphereLight source] )</h3>
  66. <p>
  67. Copia i valori di [page:.color color], [page:.intensity intensity] e
  68. [page:.groundColor groundColor] dalla luce della [page:Light sorgente] (source) in questa luce.
  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>