Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NodeMaterialConnectionPoint

Defines a connection point for a block

Hierarchy

Index

Constructors

constructor

Properties

acceptedConnectionPointTypesSearch playground for acceptedConnectionPointTypes

acceptedConnectionPointTypes: NodeMaterialBlockConnectionPointTypes[]

Gets or sets the additional types supported by this connection point

defineSearch playground for define

define: string

Gets or sets a string indicating that this uniform must be defined under a #ifdef

displayNameSearch playground for displayName

displayName: string

Gets or sets the connection point name

excludedConnectionPointTypesSearch playground for excludedConnectionPointTypes

excludedConnectionPointTypes: NodeMaterialBlockConnectionPointTypes[]

Gets or sets the additional types excluded by this connection point

exposedPortPositionSearch playground for exposedPortPosition

exposedPortPosition: number

Gets or sets number indicating the position that the port is exposed to on a frame

isExposedOnFrameSearch playground for isExposedOnFrame

isExposedOnFrame: boolean

Gets or sets a boolean indicating that this connection point is exposed on a frame

isOptionalSearch playground for isOptional

isOptional: boolean

Gets or sets a boolean indicating that this connection point can be omitted

nameSearch playground for name

name: string

Gets or sets the connection point name

needDualDirectionValidationSearch playground for needDualDirectionValidation

needDualDirectionValidation: boolean

Indicates that this connection point needs dual validation before being connected to another point

onConnectionObservableSearch playground for onConnectionObservable

onConnectionObservable: Observable<NodeMaterialConnectionPoint>

Observable triggered when this point is connected

Accessors

associatedVariableName

  • get associatedVariableName(): string
  • set associatedVariableName(value: string): any
  • Gets or sets the associated variable name in the shader

    Returns string

  • Gets or sets the associated variable name in the shader

    Parameters

    • value: string

    Returns any

connectInputBlock

  • Gets a the connected input block (if any)

    Returns Nullable<InputBlock>

connectedBlocks

  • Get the block connected on the endpoints of this connection (if any)

    Returns Array<NodeMaterialBlock>

connectedPoint

direction

endpoints

hasEndpoints

  • get hasEndpoints(): boolean
  • Gets a boolean indicating if that output point is connected to at least one input

    Returns boolean

innerType

isConnected

  • get isConnected(): boolean
  • Gets a boolean indicating that the current point is connected to another NodeMaterialBlock

    Returns boolean

isConnectedInFragmentShader

  • get isConnectedInFragmentShader(): boolean
  • Gets a boolean indicating that this connection will be used in the fragment shader

    Returns boolean

isConnectedInVertexShader

  • get isConnectedInVertexShader(): boolean
  • Gets a boolean indicating that this connection will be used in the vertex shader

    Returns boolean

isConnectedToInputBlock

  • get isConnectedToInputBlock(): boolean
  • Gets a boolean indicating that the current point is connected to an input block

    Returns boolean

isDirectlyConnectedToVertexOutput

  • get isDirectlyConnectedToVertexOutput(): boolean
  • Gets a boolean indicating that this connection has a path to the vertex output

    Returns boolean

ownerBlock

  • Get the block that owns this connection point

    Returns NodeMaterialBlock

sourceBlock

  • Get the block connected on the other side of this connection (if any)

    Returns Nullable<NodeMaterialBlock>

target

  • Gets or sets the target of that connection point

    Returns NodeMaterialBlockTargets

  • Gets or sets the target of that connection point

    Parameters

    Returns any

type

Methods

canConnectToSearch playground for canConnectTo

  • Gets a boolean indicating if the current point can be connected to another point

    Parameters

    Returns boolean

    a boolean

checkCompatibilityStateSearch playground for checkCompatibilityState

connectToSearch playground for connectTo

  • Connect this point to another connection point

    Parameters

    • connectionPoint: NodeMaterialConnectionPoint

      defines the other connection point

    • Optional ignoreConstraints: boolean

      defines if the system will ignore connection type constraints (default is false)

    Returns NodeMaterialConnectionPoint

    the current connection point

createCustomInputBlockSearch playground for createCustomInputBlock

  • Creates a block suitable to be used as an input for this input point. If null is returned, a block based on the point type will be created.

    Returns Nullable<[NodeMaterialBlock, string]>

    The returned string parameter is the name of the output point of NodeMaterialBlock (first parameter of the returned array) that can be connected to the input

disconnectFromSearch playground for disconnectFrom

disposeSearch playground for dispose

  • dispose(): void
  • Release resources

    Returns void

getClassNameSearch playground for getClassName

  • getClassName(): string
  • Gets the current class name e.g. "NodeMaterialConnectionPoint"

    Returns string

    the class name

serializeSearch playground for serialize

  • serialize(isInput?: boolean): any
  • Serializes this point in a JSON representation

    Parameters

    • Optional isInput: boolean

      defines if the connection point is an input (default is true)

    Returns any

    the serialized point object

Static AreEquivalentTypesSearch playground for AreEquivalentTypes

  • AreEquivalentTypes(type1: number, type2: number): boolean
  • Checks if two types are equivalent

    Parameters

    • type1: number

      type 1 to check

    • type2: number

      type 2 to check

    Returns boolean

    true if both types are equivalent, else false

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method