mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Fix hyperlink usage in Your first 2D/3D shaders (#5048)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user