Przeglądaj źródła

Apply suggestions from code review

Co-authored-by: Clay John <[email protected]>
Nathan Lovato 5 lat temu
rodzic
commit
0800225a54
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      tutorials/shaders/introduction_to_shaders.rst

+ 2 - 3
tutorials/shaders/introduction_to_shaders.rst

@@ -112,7 +112,7 @@ Processor functions
 Depending on the shader type, you can override different processor functions.
 Depending on the shader type, you can override different processor functions.
 For ``spatial`` and ``canvas_item``, you have access to ``vertex()``,
 For ``spatial`` and ``canvas_item``, you have access to ``vertex()``,
 ``fragment()``, and ``light()``. For ``particles``, you only have access to
 ``fragment()``, and ``light()``. For ``particles``, you only have access to
-``vertex()``.
+``vertex()``. For ''sky'', you only have access to ''fragment()''.
 
 
 Vertex processor
 Vertex processor
 ^^^^^^^^^^^^^^^^
 ^^^^^^^^^^^^^^^^
@@ -134,9 +134,8 @@ Fragment processor
 ^^^^^^^^^^^^^^^^^^
 ^^^^^^^^^^^^^^^^^^
 
 
 The ``fragment()`` processing function is used to set up the Godot material
 The ``fragment()`` processing function is used to set up the Godot material
-
 parameters per pixel. This code runs on every visible pixel the object or
 parameters per pixel. This code runs on every visible pixel the object or
-primitive draws. It is only available in ``spatial`` and ``canvas_item`` shaders.
+primitive draws. It is only available in ``spatial``, ``canvas_item``, and ``sky`` shaders.
 
 
 The standard use of the fragment function is to set up material properties used
 The standard use of the fragment function is to set up material properties used
 to calculate lighting. For example, you would set values for ``ROUGHNESS``,
 to calculate lighting. For example, you would set values for ``ROUGHNESS``,