1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Comment the shader template light function by default

This is a minor usability tweak.

The light functions replace the default ones, so even if empty
they will avoid the current shader to have proper lighting and
users will have no idea why.

Code was changed to have the shader function commented by default,
indicating that uncommenting replaces the default function.

(cherry picked from commit c430ff2396)
This commit is contained in:
Juan Linietsky
2023-11-07 23:20:45 +01:00
committed by Rémi Verschelde
parent fc7cc46b02
commit bd2cad52ed

View File

@@ -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: