Skip to content

Commit b5c0116

Browse files
authored
Merge pull request godotengine#7531 from Skyvastern/patch-3
Minor grammar correction in your_first_3d_shader.rst
2 parents 45c4250 + f050e6b commit b5c0116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/shaders/your_first_shader/your_first_3d_shader.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ texture as the second argument. We use the ``x`` and ``z`` channels of
197197
``VERTEX`` to determine where on the texture to look up. Note that the PlaneMesh
198198
coordinates are within the [-1,1] range (for a size of 2), while the texture
199199
coordinates are within [0,1], so to normalize we divide by the size of the
200-
PlaneMesh 2.0 and add 0.5. ``texture()`` returns a ``vec4`` of the ``r, g, b,
200+
PlaneMesh by 2.0 and add 0.5. ``texture()`` returns a ``vec4`` of the ``r, g, b,
201201
a`` channels at the position. Since the noise texture is grayscale, all of the
202202
values are the same, so we can use any one of the channels as the height. In
203203
this case we'll use the ``r``, or ``x`` channel.
@@ -325,7 +325,7 @@ explained in more detail in the next part of this tutorial.
325325
326326
When we have normals that correspond to a specific vertex we set ``NORMAL``, but
327327
if you have a normalmap that comes from a texture, set the normal using
328-
``NORMAL_MAP``. This way Godot will handle the wrapping the texture around the
328+
``NORMAL_MAP``. This way Godot will handle the wrapping of texture around the
329329
mesh automatically.
330330

331331
Lastly, in order to ensure that we are reading from the same places on the noise

0 commit comments

Comments
 (0)