mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
disable discard and frag errors in gdshaderinc
This commit is contained in:
parent
6fd949a6dc
commit
b2e87ed27f
1 changed files with 2 additions and 2 deletions
|
|
@ -9220,8 +9220,8 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
|
||||||
|
|
||||||
stages = &p_functions;
|
stages = &p_functions;
|
||||||
|
|
||||||
is_discard_supported = shader_type_identifier == "canvas_item" || shader_type_identifier == "spatial";
|
is_discard_supported = shader_type_identifier == "canvas_item" || shader_type_identifier == "spatial" || shader_type_identifier == StringName();
|
||||||
is_supported_frag_only_funcs = is_discard_supported || shader_type_identifier == "sky";
|
is_supported_frag_only_funcs = is_discard_supported || shader_type_identifier == "sky" || shader_type_identifier == StringName();
|
||||||
|
|
||||||
const FunctionInfo &constants = p_functions.has("constants") ? p_functions["constants"] : FunctionInfo();
|
const FunctionInfo &constants = p_functions.has("constants") ? p_functions["constants"] : FunctionInfo();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue