From 0e1c66d9fced8f9d3a8fbd87ddfd2c29a9ed2679 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 16 Apr 2020 23:52:00 -0300 Subject: 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. --- scene/scene_string_names.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene/scene_string_names.cpp') diff --git a/scene/scene_string_names.cpp b/scene/scene_string_names.cpp index ad996e7d50..5e3f8b803b 100644 --- a/scene/scene_string_names.cpp +++ b/scene/scene_string_names.cpp @@ -202,4 +202,7 @@ SceneStringNames::SceneStringNames() { parameters_base_path = "parameters/"; tracks_changed = "tracks_changed"; + + shader_overrides_group = StaticCString::create("_shader_overrides_group_"); + shader_overrides_group_active = StaticCString::create("_shader_overrides_group_active_"); } -- cgit v1.2.3