Browse Source

Merge pull request #7104 from LDouglas23/patch-1

Update 2d_lights_and_shadows.rst to fix ref link
Matthew 2 years ago
parent
commit
708aea71ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/2d/2d_lights_and_shadows.rst

+ 1 - 1
tutorials/2d/2d_lights_and_shadows.rst

@@ -36,7 +36,7 @@ There are several nodes involved in a complete 2D lighting setup:
 
 
 - :ref:`CanvasModulate <class_CanvasModulate>` (to darken the rest of the scene)
 - :ref:`CanvasModulate <class_CanvasModulate>` (to darken the rest of the scene)
 - :ref:`PointLight2D <class_PointLight2D>` (for omnidirectional or spot lights)
 - :ref:`PointLight2D <class_PointLight2D>` (for omnidirectional or spot lights)
-- :ref:`DirectionalLight2D <class_PointLight2D>` (for sunlight or moonlight)
+- :ref:`DirectionalLight2D <class_DirectionalLight2D>` (for sunlight or moonlight)
 - :ref:`LightOccluder2D <class_LightOccluder2D>` (for light shadow casters)
 - :ref:`LightOccluder2D <class_LightOccluder2D>` (for light shadow casters)
 - Other 2D nodes that receive lighting, such as Sprite2D or TileMap.
 - Other 2D nodes that receive lighting, such as Sprite2D or TileMap.