summaryrefslogtreecommitdiff
path: root/scene/resources/visual_shader_nodes.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-27 11:23:03 +0200
committerGitHub <noreply@github.com>2020-07-27 11:23:03 +0200
commit8965ec124d6b2985537a53f8aad315b26358e4f8 (patch)
tree76dd2758a3376c9978bf7c22cf9fc076a5bfe378 /scene/resources/visual_shader_nodes.h
parenta5c0ee012883ff2a0b97f7222fce853bb75d2eba (diff)
parent167f033782e2a1a731ce2aa4f4ce856615db6ed4 (diff)
Merge pull request #40744 from Chaosus/vs_optimize_fresnel
Optimize code generation for fresnel node in visual shaders
Diffstat (limited to 'scene/resources/visual_shader_nodes.h')
-rw-r--r--scene/resources/visual_shader_nodes.h1
1 files changed, 1 insertions, 0 deletions
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();