From 167f033782e2a1a731ce2aa4f4ce856615db6ed4 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Mon, 27 Jul 2020 09:18:37 +0300 Subject: Optimize code generation for fresnel node in visual shaders --- scene/resources/visual_shader_nodes.h | 1 + 1 file changed, 1 insertion(+) (limited to 'scene/resources/visual_shader_nodes.h') diff --git a/scene/resources/visual_shader_nodes.h b/scene/resources/visual_shader_nodes.h index b82d5c65c9..6c6e7b7580 100644 --- a/scene/resources/visual_shader_nodes.h +++ b/scene/resources/visual_shader_nodes.h @@ -1877,6 +1877,7 @@ public: virtual String get_output_port_name(int p_port) const override; virtual String get_input_port_default_hint(int p_port) const override; + virtual bool is_generate_input_var(int p_port) const override; virtual String generate_code(Shader::Mode p_mode, VisualShader::Type p_type, int p_id, const String *p_input_vars, const String *p_output_vars, bool p_for_preview = false) const override; VisualShaderNodeFresnel(); -- cgit v1.2.3