You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Implement global and per instance shader uniforms.
Adds two keywords to shader language for uniforms: -'global' -'instance' This allows them to reference values outside the material.
This commit is contained in:
@@ -2135,6 +2135,11 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
|
||||
tab_container->add_child(autoload_settings);
|
||||
autoload_settings->connect("autoload_changed", callable_mp(this, &ProjectSettingsEditor::_settings_changed));
|
||||
|
||||
shaders_global_variables_editor = memnew(ShaderGlobalsEditor);
|
||||
shaders_global_variables_editor->set_name(TTR("Shader Globals"));
|
||||
tab_container->add_child(shaders_global_variables_editor);
|
||||
shaders_global_variables_editor->connect("globals_changed", callable_mp(this, &ProjectSettingsEditor::_settings_changed));
|
||||
|
||||
plugin_settings = memnew(EditorPluginSettings);
|
||||
plugin_settings->set_name(TTR("Plugins"));
|
||||
tab_container->add_child(plugin_settings);
|
||||
|
||||
Reference in New Issue
Block a user