summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2022-11-08 17:57:59 +0300
committerYuri Rubinsky <chaosus89@gmail.com>2022-11-09 21:20:11 +0300
commitc07d13182c7247d3de529e700e6526949b294764 (patch)
treebf87af0c8bb1ad6d9fe28210f3bdfae5c0891e16 /servers
parenta499f7bdc4be5877c75bd898e040937a02b99b85 (diff)
Some fixes for instance shader parameters
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/shader_language.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/rendering/shader_language.cpp b/servers/rendering/shader_language.cpp
index 2f5846f520..14c09c1512 100644
--- a/servers/rendering/shader_language.cpp
+++ b/servers/rendering/shader_language.cpp
@@ -8178,6 +8178,10 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
}
}
#endif // DEBUG_ENABLED
+ if (String(shader_type_identifier) != "spatial") {
+ _set_error(vformat(RTR("Uniform instances are not yet implemented for '%s' shaders."), shader_type_identifier));
+ return ERR_PARSE_ERROR;
+ }
if (uniform_scope == ShaderNode::Uniform::SCOPE_LOCAL) {
tk = _get_token();
if (tk.type != TK_UNIFORM) {