API

Class VectorMergerBlock

Block used to create a Vector2/3/4 out of individual inputs (one for each component)

Hierarchy (View Summary)

Index
comments: string = ""

Gets or sets the comments associated with this block

inputsAreExclusive: boolean = false

Gets or sets a boolean indicating that only one input can be connected at a time

onCodeIsReadyObservable: any = ...

Observable raised when the block code is ready (if the code loading is async)

uniqueId: number

Gets or sets the unique id of the node

visibleInInspector: boolean = false

Gets or sets a boolean indicating that this input can be edited in the Inspector (false by default)

visibleOnFrame: boolean = false

Gets or sets a boolean indicating that this input can be edited from a collapsed frame

wSwizzle: "x" | "y" | "z" | "w" = "w"

Gets or sets the swizzle for w (meaning which component to affect to the output.w)

xSwizzle: "x" | "y" | "z" | "w" = "x"

Gets or sets the swizzle for x (meaning which component to affect to the output.x)

ySwizzle: "x" | "y" | "z" | "w" = "y"

Gets or sets the swizzle for y (meaning which component to affect to the output.y)

zSwizzle: "x" | "y" | "z" | "w" = "z"

Gets or sets the swizzle for z (meaning which component to affect to the output.z)

  • get willBeGeneratedIntoVertexShaderFromFragmentShader(): boolean

    Gets a boolean indicating that the code of this block will be promoted to vertex shader even if connected to fragment output

    Returns boolean

  • Add uniforms, samplers and uniform buffers at compilation time

    Parameters

    • state: NodeMaterialBuildState

      defines the state to update

    • nodeMaterial: NodeMaterial

      defines the node material requesting the update

    • defines: NodeMaterialDefines

      defines the material defines to update

    • uniformBuffers: string[]

      defines the list of uniform buffer names

    Returns void