diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2020-09-02 22:02:04 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2020-09-02 22:54:41 +0300 |
commit | 2a00c868de2a3800a4ff4f4e3af0101f73c7fb82 (patch) | |
tree | d4ae97fbfc9b6bb2de4b94e38118a3be1973c978 | |
parent | d3ab536a0acb0af6c444ee95bec48f005913364d (diff) |
Fix particles shader to use built-ins
-rw-r--r-- | servers/rendering/shader_language.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/servers/rendering/shader_language.cpp b/servers/rendering/shader_language.cpp index d6acad83f7..a282f10402 100644 --- a/servers/rendering/shader_language.cpp +++ b/servers/rendering/shader_language.cpp @@ -6979,6 +6979,11 @@ bool ShaderLanguage::has_builtin(const Map<StringName, ShaderLanguage::FunctionI return true; } } + if (p_functions.has("compute")) { + if (p_functions["compute"].built_ins.has(p_name)) { + return true; + } + } return false; } |