2
0
Эх сурвалжийг харах

Update DirectionalLightHelper.html (#27122)

Add scene.add(light) to fix example code
Amin darabniya 1 жил өмнө
parent
commit
df3b760563

+ 1 - 0
docs/api/en/helpers/DirectionalLightHelper.html

@@ -22,6 +22,7 @@
 		<code>
 		const light = new THREE.DirectionalLight( 0xFFFFFF );
 		const helper = new THREE.DirectionalLightHelper( light, 5 );
+		scene.add( light );
 		scene.add( helper );
 		</code>