소스 검색

Merge pull request #7104 from LDouglas23/patch-1

Update 2d_lights_and_shadows.rst to fix ref link
Matthew 2 년 전
부모
커밋
708aea71ab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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:`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)
 - Other 2D nodes that receive lighting, such as Sprite2D or TileMap.