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

This commit is contained in:
hpnrep6
2021-06-25 13:12:03 -04:00
committed by GitHub
parent 8b4f8d1ec3
commit d4a42c9776
2 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -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.