You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +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:
@@ -708,6 +708,11 @@ void EditorNode::_sources_changed(bool p_exist) {
|
||||
if (waiting_for_first_scan) {
|
||||
waiting_for_first_scan = false;
|
||||
|
||||
// Reload the global shader variables, but this time
|
||||
// loading texures, as they are now properly imported.
|
||||
print_line("done scanning, reload textures");
|
||||
RenderingServer::get_singleton()->global_variables_load_settings(true);
|
||||
|
||||
// Start preview thread now that it's safe.
|
||||
if (!singleton->cmdline_export_mode) {
|
||||
EditorResourcePreview::get_singleton()->start();
|
||||
|
||||
Reference in New Issue
Block a user