You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Add comments at the top of each built-in shader to ease debugging
When a shader error is printed about a built-in shader, the origin of the shader will now be recognizable immediately by looking at the top of the printed shader code.
This commit is contained in:
@@ -9398,6 +9398,8 @@ RendererStorageRD::RendererStorageRD() {
|
||||
particles_shader.default_shader = shader_allocate();
|
||||
shader_initialize(particles_shader.default_shader);
|
||||
shader_set_code(particles_shader.default_shader, R"(
|
||||
// Default particles shader.
|
||||
|
||||
shader_type particles;
|
||||
|
||||
void process() {
|
||||
|
||||
Reference in New Issue
Block a user