mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Visual Shaders are back.
This commit is contained in:
parent
1fc7973a00
commit
f6ce73f724
32 changed files with 6368 additions and 93 deletions
|
|
@ -130,9 +130,9 @@ void ShaderTextEditor::_load_theme_settings() {
|
|||
}
|
||||
}
|
||||
|
||||
for (const Set<String>::Element *E = ShaderTypes::get_singleton()->get_modes(VisualServer::ShaderMode(shader->get_mode())).front(); E; E = E->next()) {
|
||||
for (int i = 0; i < ShaderTypes::get_singleton()->get_modes(VisualServer::ShaderMode(shader->get_mode())).size(); i++) {
|
||||
|
||||
keywords.push_back(E->get());
|
||||
keywords.push_back(ShaderTypes::get_singleton()->get_modes(VisualServer::ShaderMode(shader->get_mode()))[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue