From c07d13182c7247d3de529e700e6526949b294764 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Tue, 8 Nov 2022 17:57:59 +0300 Subject: Some fixes for instance shader parameters --- servers/rendering/shader_language.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'servers') 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 &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) { -- cgit v1.2.3