Browse Source

Merge pull request #10693 from GlitchCode24/master

Add `else if` to shading reference
Matthew 5 months ago
parent
commit
3d1bd087e9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tutorials/shaders/shader_reference/shading_language.rst

+ 3 - 1
tutorials/shaders/shader_reference/shading_language.rst

@@ -551,9 +551,11 @@ Godot Shading language supports the most common types of flow control:
 
 
 .. code-block:: glsl
 .. code-block:: glsl
 
 
-    // `if` and `else`.
+    // `if`, `else if` and `else`.
     if (cond) {
     if (cond) {
 
 
+    } else if (other_cond) {
+
     } else {
     } else {
 
 
     }
     }