VisualShaderNode

Inherits: Resource < Reference < Object

Inherited By: VisualShaderNodeBooleanConstant, VisualShaderNodeColorConstant, VisualShaderNodeColorFunc, VisualShaderNodeColorOp, VisualShaderNodeCompare, VisualShaderNodeCubeMap, VisualShaderNodeCustom, VisualShaderNodeDeterminant, VisualShaderNodeDotProduct, VisualShaderNodeFaceForward, VisualShaderNodeFresnel, VisualShaderNodeGroupBase, VisualShaderNodeIf, VisualShaderNodeInput, VisualShaderNodeIs, VisualShaderNodeOuterProduct, VisualShaderNodeOutput, VisualShaderNodeScalarClamp, VisualShaderNodeScalarConstant, VisualShaderNodeScalarDerivativeFunc, VisualShaderNodeScalarFunc, VisualShaderNodeScalarInterp, VisualShaderNodeScalarOp, VisualShaderNodeScalarSmoothStep, VisualShaderNodeSwitch, VisualShaderNodeTexture, VisualShaderNodeTransformCompose, VisualShaderNodeTransformConstant, VisualShaderNodeTransformDecompose, VisualShaderNodeTransformFunc, VisualShaderNodeTransformMult, VisualShaderNodeTransformVecMult, VisualShaderNodeUniform, VisualShaderNodeVec3Constant, VisualShaderNodeVectorClamp, VisualShaderNodeVectorCompose, VisualShaderNodeVectorDecompose, VisualShaderNodeVectorDerivativeFunc, VisualShaderNodeVectorDistance, VisualShaderNodeVectorFunc, VisualShaderNodeVectorInterp, VisualShaderNodeVectorLen, VisualShaderNodeVectorOp, VisualShaderNodeVectorRefract, VisualShaderNodeVectorScalarMix, VisualShaderNodeVectorScalarSmoothStep, VisualShaderNodeVectorScalarStep, VisualShaderNodeVectorSmoothStep

Category: Core

Brief Description

Properties

Array default_input_values [ 0, Vector3( 0, 0, 0 ) ]
int output_port_for_preview -1

Signals

  • editor_refresh_request ( )

Enumerations

enum PortType:

  • PORT_TYPE_SCALAR = 0 — Floating-point scalar. Translated to float type in shader code.
  • PORT_TYPE_VECTOR = 1 — 3D vector of floating-point values. Translated to vec3 type in shader code.
  • PORT_TYPE_BOOLEAN = 2 — Boolean type. Translated to bool type in shader code.
  • PORT_TYPE_TRANSFORM = 3 — Transform type. Translated to mat4 type in shader code.
  • PORT_TYPE_SAMPLER = 4 — Sampler type. Translated to reference of sampler uniform in shader code. Can only be used for input ports in non-uniform nodes.
  • PORT_TYPE_MAX = 5 — Represents the size of the PortType enum.

Property Descriptions

  • Array default_input_values
Default [ 0, Vector3( 0, 0, 0 ) ]

  • int output_port_for_preview
Default -1
Setter set_output_port_for_preview(value)
Getter get_output_port_for_preview()

Method Descriptions

  • Variant get_input_port_default_value ( int port ) const

  • void set_input_port_default_value ( int port, Variant value )