summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-10-01 13:59:27 +0200
committerGitHub <noreply@github.com>2019-10-01 13:59:27 +0200
commitb60fdb21e9be16d96ae6b419db751140738d80ce (patch)
tree229d3e6f456b488f8b1b16867b1e997171e5d858 /doc/classes
parenta4c03ff965b8e77bc438053001c5c0541f18fbfb (diff)
parentf14bcd8cc5b05a1a31dcab6cb080252ff5adda2f (diff)
Merge pull request #32461 from Chaosus/vs_sampler_type
Added sampler port type for visual shaders
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/VisualShaderNode.xml7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/classes/VisualShaderNode.xml b/doc/classes/VisualShaderNode.xml
index 3e80349b13..9b0c6b2604 100644
--- a/doc/classes/VisualShaderNode.xml
+++ b/doc/classes/VisualShaderNode.xml
@@ -51,8 +51,11 @@
<constant name="PORT_TYPE_TRANSFORM" value="3" enum="PortType">
Transform type. Translated to [code]mat4[/code] type in shader code.
</constant>
- <constant name="PORT_TYPE_ICON_COLOR" value="4" enum="PortType">
- Color type. Can be used for return icon type in members dialog (see [method VisualShaderNodeCustom._get_return_icon_type]) - do not use it in other cases!
+ <constant name="PORT_TYPE_SAMPLER" value="4" enum="PortType">
+ Sampler type. Translated to reference of sampler uniform in shader code. Can only be used for input ports in non-uniform nodes.
+ </constant>
+ <constant name="PORT_TYPE_MAX" value="5" enum="PortType">
+ Represents the size of the [enum PortType] enum.
</constant>
</constants>
</class>