mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 12:14:44 +00:00
Some fixes for instance shader parameters
This commit is contained in:
parent
a499f7bdc4
commit
c07d13182c
3 changed files with 21 additions and 19 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue