API

Class InputBlock

Block used to expose an input value

Hierarchy (View Summary)

Index
comments: string = ""

Gets or sets the comments associated with this block

convertToGammaSpace: boolean = false

Gets or sets a boolean indicating if content needs to be converted to gamma space (for color3/4 only)

convertToLinearSpace: boolean = false

Gets or sets a boolean indicating if content needs to be converted to linear space (for color3/4 only)

groupInInspector: string = ""

Gets or sets the group to use to display this block in the Inspector

inputsAreExclusive: boolean = false

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

isBoolean: boolean = false

Gets or set a value indicating that this input can only get 0 and 1 values

isConstant: boolean = false

Gets or sets a boolean indicating that the value of this input will not change after a build

matrixMode: number = 0

Gets or sets a value used by the Node Material editor to determine how to configure the current value if it is a matrix

max: number = 0

Gets or set a value used to limit the range of float values

min: number = 0

Gets or set a value used to limit the range of float values

onCodeIsReadyObservable: any = ...

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

onValueChangedObservable: Observable<InputBlock> = ...

Gets an observable raised when the value is changed

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

  • 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