You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +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:
@@ -79,6 +79,8 @@ void Texture3DEditor::_update_material() {
|
||||
void Texture3DEditor::_make_shaders() {
|
||||
shader.instantiate();
|
||||
shader->set_code(R"(
|
||||
// Texture3DEditor preview shader.
|
||||
|
||||
shader_type canvas_item;
|
||||
|
||||
uniform sampler3D tex;
|
||||
|
||||
Reference in New Issue
Block a user