From a139e58f8c804d97ecff57b24911840305510687 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 18 Aug 2021 03:09:22 +0200 Subject: 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. --- servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp') diff --git a/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp b/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp index f8aefdb29c..3af5047854 100644 --- a/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp +++ b/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp @@ -2575,6 +2575,8 @@ RendererCanvasRenderRD::RendererCanvasRenderRD(RendererStorageRD *p_storage) { storage->shader_initialize(default_canvas_group_shader); storage->shader_set_code(default_canvas_group_shader, R"( +// Default CanvasGroup shader. + shader_type canvas_item; void fragment() { -- cgit v1.2.3