summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-09-02 23:22:32 +0200
committerGitHub <noreply@github.com>2020-09-02 23:22:32 +0200
commit7cc1e2062a996fea4005f84cef841092bb98916f (patch)
treed344a204ef37ed8c6cf740cd43cb9eae87b0452d
parent21907011c1f805219cfa11dfbd35954d9d40360b (diff)
parent2a00c868de2a3800a4ff4f4e3af0101f73c7fb82 (diff)
Merge pull request #41719 from Chaosus/fix_particle_shader
Fix particles shader to use built-ins
-rw-r--r--servers/rendering/shader_language.cpp5
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;
}