Przeglądaj źródła

Merge pull request #84594 from reduz/default-commented-light-shader

Comment the shader template light function by default
Rémi Verschelde 1 rok temu
rodzic
commit
be585ac644
1 zmienionych plików z 6 dodań i 4 usunięć
  1. 6 4
      editor/shader_create_dialog.cpp

+ 6 - 4
editor/shader_create_dialog.cpp

@@ -175,9 +175,10 @@ void fragment() {
 	// Called for every pixel the material is visible on.
 	// Called for every pixel the material is visible on.
 }
 }
 
 
-void light() {
+//void light() {
 	// Called for every pixel for every light affecting the material.
 	// Called for every pixel for every light affecting the material.
-}
+	// Uncomment to replace the default light processing function with this one.
+//}
 )";
 )";
 						break;
 						break;
 					case Shader::MODE_CANVAS_ITEM:
 					case Shader::MODE_CANVAS_ITEM:
@@ -190,9 +191,10 @@ void fragment() {
 	// Called for every pixel the material is visible on.
 	// Called for every pixel the material is visible on.
 }
 }
 
 
-void light() {
+//void light() {
 	// Called for every pixel for every light affecting the CanvasItem.
 	// Called for every pixel for every light affecting the CanvasItem.
-}
+	// Uncomment to replace the default light processing function with this one.
+//}
 )";
 )";
 						break;
 						break;
 					case Shader::MODE_PARTICLES:
 					case Shader::MODE_PARTICLES: