Merge pull request #41719 from Chaosus/fix_particle_shader

Fix particles shader to use built-ins
This commit is contained in:
Rémi Verschelde 2020-09-02 23:22:32 +02:00 committed by GitHub
commit 7cc1e2062a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}