Sfoglia il codice sorgente

Fix hyperlink usage in Your first 2D/3D shaders (#5048)

hpnrep6 4 anni fa
parent
commit
78878aa661

+ 3 - 3
tutorials/shaders/your_first_shader/your_first_2d_shader.rst

@@ -22,9 +22,9 @@ fragment functions. This tutorial targets absolute beginners to shaders.
 Setup
 -----
 
-:ref:`CanvasItem <doc_canvas_item_shader>` shaders are used to draw all 2D
-     objects in Godot, while :ref:`Spatial <doc_spatial_shader>` shaders are
-     used to draw all 3D objects.
+:ref:`CanvasItem shaders <doc_canvas_item_shader>` are used to draw all 2D
+objects in Godot, while :ref:`Spatial <doc_spatial_shader>` shaders are used 
+to draw all 3D objects.
 
 In order to use a shader it must be attached inside a :ref:`Material
 <class_material>` which must be attached to an object. Materials are a type of

+ 5 - 5
tutorials/shaders/your_first_shader/your_first_3d_shader.rst

@@ -87,9 +87,9 @@ and thus allow us to add more detail.
 .. image:: img/plane-sub.png
 
 :ref:`PrimitiveMeshes <class_primitivemesh>`, like PlaneMesh, only have one
-     surface, so instead of an array of materials there is only one. Click
-     beside "Material" where it says "[empty]" and select "New ShaderMaterial".
-     Then click the sphere that appears.
+surface, so instead of an array of materials there is only one. Click
+beside "Material" where it says "[empty]" and select "New ShaderMaterial".
+Then click the sphere that appears.
 
 Now click beside "Shader" where it says "[empty]" and select "New Shader".
 
@@ -181,8 +181,8 @@ Click beside it where it says "[empty]" and select "New NoiseTexture". Then in
 your NoiseTexture click beside where it says "Noise" and select "New
 OpenSimplexNoise".
 
-:ref:`OpenSimplexNoise <class_opensimplexnoise>` is used by the NoiseTexture to
-     generate a heightmap.
+.. note:: :ref:`OpenSimplexNoise <class_opensimplexnoise>` is used by the NoiseTexture to
+          generate a heightmap.
 
 Once you set it up and should look like this.