You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							77 lines
						
					
					
						
							2.2 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							77 lines
						
					
					
						
							2.2 KiB
						
					
					
				
								<!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] →
							 | 
						|
								
							 | 
						|
										<h1>[name]</h1>
							 | 
						|
								
							 | 
						|
										<p class="desc">
							 | 
						|
								      Crea un aiuto visivo costituito da una [page:Mesh] sferica per un [page:HemisphereLight HemisphereLight].
							 | 
						|
										</p>
							 | 
						|
								
							 | 
						|
										<h2>Codice di Esempio</h2>
							 | 
						|
								
							 | 
						|
										<code>
							 | 
						|
										const light = new THREE.HemisphereLight( 0xffffbb, 0x080820, 1 );
							 | 
						|
										const helper = new THREE.HemisphereLightHelper( light, 5 );
							 | 
						|
										scene.add( helper );
							 | 
						|
										</code>
							 | 
						|
								
							 | 
						|
								
							 | 
						|
										<h2>Costruttore</h2>
							 | 
						|
								
							 | 
						|
										<h3>[name]( [param:HemisphereLight light], [param:Number sphereSize], [param:Hex color] )</h3>
							 | 
						|
										<p>
							 | 
						|
											[page:HemisphereLight light] -- La luce da visualizzare. <br /><br />
							 | 
						|
								
							 | 
						|
											[page:Number size] -- La dimensione della mesh utilizzata per visualizzare la luce.<br /><br />
							 | 
						|
								
							 | 
						|
											[page:Hex color] -- (opzionale) se questo non è impostato l'helper avrà il colore della luce.
							 | 
						|
										</p>
							 | 
						|
								
							 | 
						|
								
							 | 
						|
										<h2>Proprietà</h2>
							 | 
						|
										<p>Vedi la classe base [page:Object3D] per le proprietà in comune.</p>
							 | 
						|
								
							 | 
						|
										<h3>[property:HemisphereLight light]</h3>
							 | 
						|
										<p>Riferimento alla HemisphereLight da visualizzare.</p>
							 | 
						|
								
							 | 
						|
										<h3>[property:Object matrix]</h3>
							 | 
						|
										<p>Riferimento alla [page:Object3D.matrixWorld matrixWorld] della hemisphereLight.</p>
							 | 
						|
								
							 | 
						|
										<h3>[property:Object matrixAutoUpdate]</h3>
							 | 
						|
										<p>
							 | 
						|
											Vedi [page:Object3D.matrixAutoUpdate]. In questo caso è impostato su `false`, poiché l'helper sta usando
							 | 
						|
											[page:Object3D.matrixWorld matrixWorld] della telecamera.
							 | 
						|
										</p>
							 | 
						|
								
							 | 
						|
										<h3>[property:hex color]</h3>
							 | 
						|
										<p>
							 | 
						|
								      Il parametro colore passato nel costruttore. Il valore predefinito è `undefined`. 
							 | 
						|
								      Se viene modificato, il colore dell'helper sarà aggiornato la prossima volta che il metodo [page:.update update] venga chiamato.
							 | 
						|
										</p>
							 | 
						|
								
							 | 
						|
								
							 | 
						|
										<h2>Metodi</h2>
							 | 
						|
										<p>Vedi la classe base [page:Object3D] per i metodi comuni.</p>
							 | 
						|
								
							 | 
						|
										<h3>[method:undefined dispose]()</h3>
							 | 
						|
										<p>Elimina l'hemisphereLightHelper.</p>
							 | 
						|
								
							 | 
						|
										<h3>[method:undefined update]()</h3>
							 | 
						|
										<p>Aggiorna l'helper in modo che corrisponda alla posizione e alla direzione della [page:.light luce].</p>
							 | 
						|
								
							 | 
						|
								
							 | 
						|
										<h2>Source</h2>
							 | 
						|
								
							 | 
						|
										<p>
							 | 
						|
											[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
							 | 
						|
										</p>
							 | 
						|
									</body>
							 | 
						|
								</html>
							 | 
						|
								
							 |