You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +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:
@@ -1736,6 +1736,8 @@ AnimationPlayerEditor::AnimationPlayerEditor(EditorNode *p_editor, AnimationPlay
|
||||
|
||||
onion.capture.shader = Ref<Shader>(memnew(Shader));
|
||||
onion.capture.shader->set_code(R"(
|
||||
// Animation editor onion skinning shader.
|
||||
|
||||
shader_type canvas_item;
|
||||
|
||||
uniform vec4 bkg_color;
|
||||
|
||||
Reference in New Issue
Block a user