Skip to content

Commit

Permalink
Update DirectionalLightHelper.html (#27122)
Browse files Browse the repository at this point in the history
Add scene.add(light) to fix example code
  • Loading branch information
amin-da authored Nov 7, 2023
1 parent 7e7830e commit df3b760
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/api/en/helpers/DirectionalLightHelper.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ <h2>Code Example</h2>
<code>
const light = new THREE.DirectionalLight( 0xFFFFFF );
const helper = new THREE.DirectionalLightHelper( light, 5 );
scene.add( light );
scene.add( helper );
</code>

Expand Down

0 comments on commit df3b760

Please sign in to comment.