Skip to content

Commit

Permalink
Merge pull request #41719 from Chaosus/fix_particle_shader
Browse files Browse the repository at this point in the history
Fix particles shader to use built-ins
  • Loading branch information
akien-mga authored Sep 2, 2020
2 parents 2190701 + 2a00c86 commit 7cc1e20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions servers/rendering/shader_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7cc1e20

Please sign in to comment.