浏览代码

Update DirectionalLightHelper.html (#27122)

Add scene.add(light) to fix example code
Amin darabniya 1 年之前
父节点
当前提交
df3b760563
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      docs/api/en/helpers/DirectionalLightHelper.html

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

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