From f7cfcacc58d9b35e971b4e05dec87608e9f68986 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 21 May 2020 14:38:01 +0200 Subject: [PATCH] Fix numbering in the ordering section of Shader language style guide --- .../godot_shader_language_style_guide.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tutorials/shading/godot_shader_language_style_guide.rst b/tutorials/shading/godot_shader_language_style_guide.rst index 37d34eea8..81018efb7 100644 --- a/tutorials/shading/godot_shader_language_style_guide.rst +++ b/tutorials/shading/godot_shader_language_style_guide.rst @@ -326,16 +326,16 @@ We suggest to organize shader code this way: 01. shader type declaration 02. render mode declaration - 02. // docstring + 03. // docstring - 03. uniforms - 04. constants - 05. varyings + 04. uniforms + 05. constants + 06. varyings - 06. other functions - 07. vertex() function - 08. fragment() function - 09. light() function + 07. other functions + 08. vertex() function + 09. fragment() function + 10. light() function We optimized the order to make it easy to read the code from top to bottom, to help developers reading the code for the first time understand how it works, and