Skip to content

Commit

Permalink
Comment the shader template light function by default
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
reduz committed Nov 7, 2023
1 parent 3e7f638 commit c430ff2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions editor/shader_create_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ void fragment() {
// Called for every pixel the material is visible on.
}
void light() {
//void light() {
// Called for every pixel for every light affecting the material.
}
// Uncomment to replace the default light processing function with this one.
//}
)";
break;
case Shader::MODE_CANVAS_ITEM:
Expand All @@ -190,9 +191,10 @@ void fragment() {
// Called for every pixel the material is visible on.
}
void light() {
//void light() {
// Called for every pixel for every light affecting the CanvasItem.
}
// Uncomment to replace the default light processing function with this one.
//}
)";
break;
case Shader::MODE_PARTICLES:
Expand Down

0 comments on commit c430ff2

Please sign in to comment.