You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Allow usage of discard inside custom shader functions
This commit is contained in:
@@ -934,7 +934,7 @@ private:
|
||||
const char *text;
|
||||
uint32_t flags;
|
||||
const Vector<String> excluded_shader_types;
|
||||
const Vector<String> functions;
|
||||
const Vector<String> excluded_functions;
|
||||
};
|
||||
|
||||
static const KeyWord keyword_list[];
|
||||
@@ -1150,6 +1150,7 @@ private:
|
||||
|
||||
const HashMap<StringName, FunctionInfo> *stages = nullptr;
|
||||
bool is_supported_frag_only_funcs = false;
|
||||
bool is_discard_supported = false;
|
||||
|
||||
bool _get_completable_identifier(BlockNode *p_block, CompletionType p_type, StringName &identifier);
|
||||
static const BuiltinFuncDef builtin_func_defs[];
|
||||
|
||||
Reference in New Issue
Block a user