123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!DOCTYPE html>
- <html lang="it">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- [page:Object3D] → [page:Light] →
- <h1>[name]</h1>
- <p class="desc">
- Una sorgente di luce posizionata direttamente sopra la scena, con il colore che sfuma dal
- colore del cielo al colore del suolo.<br /><br />
- Questa luce non può essere usata per proiettare le ombre.
- </p>
- <h2>Codice di Esempio</h2>
- <code>
- const light = new THREE.HemisphereLight( 0xffffbb, 0x080820, 1 );
- scene.add( light );
- </code>
- <h2>Esempi</h2>
- <p>
- [example:webgl_animation_skinning_blending animation / skinning / blending ]<br />
- [example:webgl_lights_hemisphere lights / hemisphere ]<br />
- [example:misc_controls_pointerlock controls / pointerlock ]<br />
- [example:webgl_loader_collada_kinematics loader / collada / kinematics ]<br />
- [example:webgl_loader_stl loader / stl ]
- </p>
- <h2>Costruttore</h2>
- <h3>[name]( [param:Integer skyColor], [param:Integer groundColor], [param:Float intensity] )</h3>
- <p>
- [page:Integer skyColor] - (opzionale) colore esadecimale del cielo. Il valore predefinito è 0xffffff.<br />
- [page:Integer groundColor] - (opzionale) colore esadecimale del suolo. Il valore predefinito è 0xffffff.<br />
- [page:Float intensity] - (opzionale) valore numerico della forza/intensità della luce. Il valore predefinito è 1.<br /><br />
- Crea un nuova [name].
- </p>
- <h2>Proprietà</h2>
- <p>
- Vedi la classe base [page:Light Light] per le proprietà comuni.
- </p>
- <h3>[property:Float color]</h3>
- <p>
- Il colore del cielo della luce, come passato nel costruttore.
- Il valore predefinito è un nuovo [page:Color] impostato a bianco (0xffffff).
- </p>
- <h3>[property:Float groundColor]</h3>
- <p>
- Il colore del suolo della luce, come passato nel costruttore.
- Il valore predefinito è un nuovo [page:Color] impostato a bianco (0xffffff).
- </p>
- <h3>[property:Boolean isHemisphereLight]</h3>
- <p>
- Flag di sola lettura per verificare se l'oggetto dato è del tipo [name].
- </p>
- <h3>[property:Vector3 position]</h3>
- <p>
- Questo è impostato uguale a [page:Object3D.DEFAULT_UP] (0, 1, 0), in modo che la luce risplenda
- dall'alto verso il basso.
- </p>
- <h2>Metodi</h2>
- <p>
- Vedi la classe base [page:Light Light] per i metodi comuni.
- </p>
- <h3>[method:this copy]( [param:HemisphereLight source] )</h3>
- <p>
- Copia i valori di [page:.color color], [page:.intensity intensity] e
- [page:.groundColor groundColor] dalla luce della [page:Light sorgente] (source) in questa luce.
- </p>
- <h2>Source</h2>
- <p>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </p>
- </body>
- </html>
|