mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Added sampler port type for visual shaders
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user