API

Class LightBlock

Block used to add light in the fragment shader

Hierarchy (View Summary)

Index
comments: string = ""

Gets or sets the comments associated with this block

generateOnlyFragmentCode: boolean = false

Indicates that no code should be generated in the vertex shader. Can be useful in some specific circumstances (like when doing ray marching for eg)

inputsAreExclusive: boolean = false

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

light: Nullable<Light>

Gets or sets the light associated with this block

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

  • 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