|
@@ -25,7 +25,7 @@ For this demo we use four textures: two for the lights, one for the shadow caste
|
|
and one for the background. I've included links to them all here if you want to download them
|
|
and one for the background. I've included links to them all here if you want to download them
|
|
separately from the demo.
|
|
separately from the demo.
|
|
|
|
|
|
-The first is the background image (`bg.png <https://raw.githubusercontent.com/godotengine/godot-demo-projects/master/2d/lights_and_shadows/bg.png>`_)
|
|
|
|
|
|
+The first is the background image (`background.png <https://raw.githubusercontent.com/godotengine/godot-demo-projects/master/2d/lights_and_shadows/background.png>`_)
|
|
used in the demo. You do not necessarily need a background, but we use one for the demo.
|
|
used in the demo. You do not necessarily need a background, but we use one for the demo.
|
|
|
|
|
|
The second is a plain black image (`caster.png <https://raw.githubusercontent.com/godotengine/godot-demo-projects/master/2d/lights_and_shadows/caster.png>`_)
|
|
The second is a plain black image (`caster.png <https://raw.githubusercontent.com/godotengine/godot-demo-projects/master/2d/lights_and_shadows/caster.png>`_)
|
|
@@ -110,7 +110,7 @@ Step by step
|
|
Now that we have covered the basics of the nodes being used, we can now walk step by step through
|
|
Now that we have covered the basics of the nodes being used, we can now walk step by step through
|
|
the process of making a scene like the one found in the demo.
|
|
the process of making a scene like the one found in the demo.
|
|
|
|
|
|
-First add a :ref:`Sprite <class_Sprite>` and set its texture to the `background image <https://raw.githubusercontent.com/godotengine/godot-demo-projects/master/2d/lights_and_shadows/bg.png>`_. For your game this can be any
|
|
|
|
|
|
+First add a :ref:`Sprite <class_Sprite>` and set its texture to the `background image <https://raw.githubusercontent.com/godotengine/godot-demo-projects/master/2d/lights_and_shadows/background.png>`_. For your game this can be any
|
|
background you choose. For this style of shadow it is most likely to be a floor texture.
|
|
background you choose. For this style of shadow it is most likely to be a floor texture.
|
|
|
|
|
|
.. image:: img/light_shadow_background.png
|
|
.. image:: img/light_shadow_background.png
|